This article was previously published under Q150497
This article has been archived. It is offered "as is" and will no longer be updated.
If you perform a Windows NT Setup from a non-supported CD-ROM drive, or youset up Windows NT over the network by doing a WINNT or WINNT /B setup, youwill not be able to repair system files during the emergency repairprocess without a supported CD-ROM attached.
If you choose "Verify Windows NT System Files" on the repair menu, therepair process will read the Setup.log located on the emergency repairdisk (ERD). This file contains the name of the Windows NT system files tocheck along with the cyclical redundancy check (CRC) value of each file.
If the repair process finds a system file that is corrupted or missing, itwill prompt you, asking if the file should be repaired. If you reply yes,and your system contains no CD-ROM drive, the repair process will promptyou for a Windows NT Setup floppy disk that contains the file that needsrepair.
Because Windows NT server only ships on compact disc, it will not bepossible to provide a valid Windows NT Setup disk to repair the file.
Before proceeding, please review the following Knowledge base articles ifany Windows NT Service Pack is installed:
146887Repairing Windows NT After the Application of Service Pack 3
162837Replacing TCPIP after SP2 causes STOP 0x00000050
148262Removing Windows NT 3.51 SP4 or SP5 May Cause Logon Failures
To correct this problem you will need to run through the repair processtwice. The first time through, choose not to replace the files that arefound to be missing or corrupt, but write down a list of these files. Next,modify the Setup.log file on the ERD as outlined below, and then performanother repair process, this time choosing to replace the files.
**NOTE** - NT V4.0 requires that the setupdd.sys located on setup diskette #2 be replaced with one from NT V4.0 Service pack#2 or later in order to perform a repair without a cd-rom attached.
Make a copy of the hidden read-only file called Setup.log found on the ERD.
Remove the hidden read-only attributes.
Using Notepad, modify the entry for each file that needs repair by adding a "path","media name","tag file name" entry at the end of each line.
On a separate disk, make a file called the same name as the "tag file name" at the end of the files you modified (in the example above, this file will be called d1.txt) and place it in the root directory of the diskette.
Finally, on a machine that has a CD-ROM drive installed, copy the files that need repair from the Windows NT Setup compact disc to the floppy disk.
If multiple diskettes are required use a different tag file name in thesetup.log to correspond to the different diskettes IE: d1.txt, d2.txt ...
Now perform another repair process, and this time choose to repair thefiles.
The repair process should prompt you to insert the floppy disk that you made, which contains the files to repair.
If the files cannot all fit on a single disk, simply delete from the disk the files that have already been repaired and copy the additional files onto the same disk and continue with the repair process or use different diskettes with different tag file on each one to match the tag file entry in the setup.log.
Note: This Process assumes that the system can still boot at this timeor the system is in a dual boot environment with access to the sourcemedia. This process also assumes adequate disk space to be availableof approximately 100mb.
With some proactive planning, one could have a copy of theinstallation CD-ROM \i386 directory on the hard disk of the system.When the repair process is runs it refers to those repair filesalready located on the local hard disk.
To run the repair process off the Hard disk, please use the followingsteps.
Create a directory on any Hard disk to hold the system files. For this example c:\repair.
Copy the system files from the retail CD-ROM to the Hard Dive keeping the directory structure intact. The platform directory (i386) and the CDROM_W.40 file for Workstation or CDROM_S.40 file for Server must be copied at the very minimum.Upon completion your c:\repair directory should contain the following:
\repair \i386 (directory containing all the system files)CDROM_W.40 (For Workstation in the root of \repair)orCDROM_S.40 (For Server in the root of \repair)
Create the three setup boot floppies using the following commands on the Windows NT installation CD-ROM:
- For Win95/DOS = CD to \i386 directory then Winnt /ox - For Windows NT = CD to \i386 directory then Winnt32 /oxNote: Make sure to replace the file setupdd.sys on disk #2 with theupdated file from the Windows NT Service Pack-2 or later.
168015Files Not Replaced When Running Emergency Repair
Using any text editor make the following changes to the txtsetup.sif file on your first setup boot disk.The lines that you must change are commented with a ";***" on the previouslines.
[SetupData];; SetupSourceDevice is optional and specifies the nt device path; of the device to be used as the setup source. This overrides; the CD-ROM or winnt local source.;;***remove the semicolon from the following line and make sure it;***references the physical location of the system files.;***In the example this will be partition1 since C: is the first;*** partition on the disk.;SetupSourceDevice = \device\harddisk0\partition1;; SetupSourcePath specifies the path relative to the source device; where the setup source tree is to be found.; All media descriptors are relative to this.;;*** Change the "SetupSourcePath" line to the path of your system;*** repair files.;*** In the example, I would change the variable to equal \repair.;SetupSourcePath=\repairMajorVersion = 4MinorVersion = 0DefaultPath=\WINNTOsLoadOptions = "/nodebug"
Save the changes to the floppy and start the repair process by booting the system using the modified setup boot disk. The repair process will operate as normal but will not prompt the user for a CD-ROM.
Note: Again that this process assumes that the flat already exists onthe hard disk or user can boot to another OS and copy the files over.If you are in a situation where the system cannot boot or cannotafford the extra HD space that the system files will take up, you maywant to use the above process to create the structure on a spare HD orremovable media (Jazz drive, etc...). In the event of a failure thatrequires the system files to be repaired, you can attach the drive tothe system.
Microsoft Windows NT Workstation 3.5, Microsoft Windows NT Workstation 3.51, Microsoft Windows NT Workstation 4.0 Developer Edition, Microsoft Windows NT Server 3.5, Microsoft Windows NT Server 3.51, Microsoft Windows NT Server 4.0 Standard Edition