Replacing System Files Using a Modified Emergency Repair DiskLast reviewed: November 18, 1997Article ID: Q164471 |
The information in this article applies to:
SUMMARYThe Windows NT Setup program and Emergency Repair Disk (ERD) can be used to replace operating system files that cannot be copied by simpler means. This procedure is most useful if an installation of Windows NT is on an NTFS partition that has been rendered unbootable. This procedure can also be used to replace files on a mirrored partition without first breaking the mirror.
MORE INFORMATIONThis procedure can be used to replace any Windows NT system file. In this example we replace the file \WINNT\system32\drivers\beep.sys. Note that the file Beep.sys is just an example. Any other Windows NT system file can be replaced if the correct path and filename is used. An Emergency Repair Disk from the installation of Windows NT that we are replacing the file on is required for this operation. It is possible to use an ERD from an identical installation of Windows NT on another computer, but this invites unforeseen problems if there is even a minor difference between installations. NOTE: To use the NT V4.0 Emergency Repair Disk utility, you must have the updated version of Setupdd.sys. The updated version is contained in NT v4.0 Service Pack 2 or later. To update your version of Setupdd.sys, you must copy Setupdd.sys from the Service Pack to your NT v4.0 Setup disk 2. This replaces the previous version of Setupdd.sys with the updated version. For more information, please see the following article(s) in the Microsoft Knowledge Base:
ARTICLE-ID: Q168015 TITLE : Files Not Replaced When Running Emergency Repair. This can easily be done by finding and modifying the original line for the target file in the [Files.WinNT] section. The original line in the Setup.log will be similar to:
\WINNT\system32\drivers\beep.sys = "beep.sys","f7fb" Modified to replace the file from the ERD instead of the CD it looks like (this line is wrapped for appearances only):
\WINNT\system32\drivers\beep.sys = "beep.sys","99999","\","ERD disk","beep.sys" The entry 99999 replaces the checksum f7fb that the original ERD used. This insures that the repair process will prompt you to replace this file. The "\" indicates that the repair process should look to the Root of the disk to copy the file from. "ERD disk" is used to prompt the user for the ERD if it is not in the drive when Setup needs to copy it. The last entry in the line is the file name as it appears on the ERD and is used as a tag file to ensure the proper disk is inserted to copy the files from. Here is an example of the entire contents of a Setup.log file after it has been modified: [Paths] TargetDirectory = "\WINNT" TargetDevice = "\Device\Harddisk1\partition1" SystemPartitionDirectory = "\" SystemPartition = "\Device\Harddisk0\partition1" [Signature] Version = "WinNt4.0" [Files.SystemPartition] NTBOOTDD.SYS = "sparrow.sys","b4a3" ntldr = "ntldr","2a36b" NTDETECT.COM = "NTDETECT.COM","b69e" [Files.WinNt] \WINNT\system32\drivers\tcpip.sys = "beep.sys","99999","\","ERD disk","beep.sys" NOTE: The above line will replace Tcpip.sys with the file Beep.sys thus overwriting the original Tcpip.sys file. This example demonstrates the added capability of the ERD to replace any file with any other file.
ARTICLE-ID: Q158423 TITLE : WinNT 4.0 ERD Won't Allow Repair w/out Compact Disc Installed If the procedure fails check for these common errors:
|
Additional query words: 4.00 prodnt
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |