Discussion Locked

How to fix a damaged security file

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
A PC running WinNT4 SP5 cannot get past the logon screen ... no error message. After booting from A: and running Scandisk, it was discovered that the "size of C:\Winnt\System32\config\security file is being misreported...". Scandisk proceeded to "fix" the file and initially I was able to logon but a subsequent logon resulted in the same error and the subsequent "fix" did not fix it. Any suggestions aside from re-installing WinNt? The system has 128MB ram, only 183MB avail on C:, tons of space on D:

7 replies

by stillatit

That particular file is where the registry tree:
HKEY_LOCAL_MACHINE \SECURITY
lives.

First try - give "last known good configuration" a try on bootup. If it works, get into the registry with reegedt32. Give yourself full permissions to the key and its children, and try to save it to a file. If the file is really damaged this may not work, but it is worth a shot.

Dig out your Emergency Repair Disk and your three Win NT boot disks, and use the "R" option to replace this part of the registry. Note that if you cannot find your ERD, a copy of the file is in \winnt\repair as well.

Next option: Do a new install of NT into a diferent directory (like on Drive D). From the new copy of NT you can get to the file in the old area, and replace it or try to repair it.

If your winnt folder is on a FAT partition (bad idea, but it happens), boot from a floppy and go after the file. Grab a copy of the "bad" file before you do anything else, and stash it somewhere else on the disk -- you may need to look at it later. If you can grab the same file off a working machine and use it to replace the one on the sick machine, that should work.

If open of these does not work you have to spend some money. www.wininternals.com sells a program that lets you boot from a floppy and read and write an ntfs partition. You can go after the file this way.

Good luck.

by lmayeda

More info... each time I logoff, I am unable to logon again until I run Scandisk from DOS and "fix" the security file.

by rkelly

Instead of using scandisk, which is a dos application try using the Windows NT equivalent

chkdsk /F /R - this will run a check disk that fixes any problems and scans for bad areas of the disk.

If all else fails then delete the security file, this is a backup copy of the Security info stored in the registry and let NT recreate it by rebooting. When ypou have rebooted run rdisk on your machine and this will create a backup copy again.

by lmayeda

Could not run chkdsk (system simply ignored the command). When I deleted the SECURITY file and rebooted, a new security file was created but I still could not get past the logon screen until I restored the original SECURITY file and used scandisk to 'fix' it. In the interim after numerous attempts at trying different things, the security problem seems to have been resolved though I don't know exactly what fixed it. Thanks for your suggestions ...

by frobo

Hi,

just dig this:
1.) Install a scond NT on the Machine , in BAKUPNT or any path you like.
2.) Mak an copy from current files under winbootdir\system32\config (your registry)to somewhere else.
The idea is very simple, a copy of the scurity files is on \winbootdir\repair.
If you had run ever rdisk -s, the copy would be fresh, if not so you have the one from the installion there.

3.) Open an CMD, and go to \WINNT\REPAIR
Enter : Expand security._ to Security and copy the file to WINNT\system32\config.

If you had Luck, it will work.

Frobo

This discussion is closed to new replies.