Windows 2000 Registry Recovery Using Repair Folder
This article explains how Microsoft Windows 2000 recovers from
critical system registry corruption using the backup hives stored in the
system Repair folder. It covers the structure and purpose of the
%SystemRoot%\Repair directory, the role of the Recovery
Console and the Emergency Repair Process, the exact manual recovery
procedures, and the post-restoration implications for system state and
installed software.
The
%SystemRoot%\Repair Directory in Windows 2000
When Windows 2000 is installed, the setup routine creates baseline
copies of the core registry hives and stores them in the
%SystemRoot%\Repair directory (typically
C:\WINNT\Repair). These hives include:
SYSTEMSOFTWARESAMSECURITYDEFAULT
These files represent a snapshot of the operating system's registry
hives in their pristine, initial state. If an administrator subsequently
uses the Backup utility (ntbackup.exe) to create an
Emergency Repair Disk (ERD) and checks the option to "Also backup the
registry to the repair directory," these files are updated to reflect
the system's current configuration. If this backup routine is never
executed, the files in the Repair folder remain in their clean,
post-installation state.
Symptoms of Registry Hive Corruption
When registry files located in
%SystemRoot%\System32\Config become physically corrupt,
unreadable, or missing, Windows 2000 halts during early boot. Common
failure indications include:
- A Blue Screen of Death (BSOD) displaying
STOP: 0xc0000218 {Registry File Failure}. - A boot error stating:
Windows 2000 could not start because the following file is missing or corrupt: \WINNT\SYSTEM32\CONFIG\SYSTEM.
Because the operating system cannot mount the hives required to load device drivers, identify hardware, or load user security databases, normal boot and Safe Mode are inaccessible.
Recovery Methods Using the Repair Folder
Windows 2000 provides two primary mechanisms to utilize the Repair folder to replace damaged hives: the automated Emergency Repair Process and the manual Recovery Console method.
1. The Emergency Repair Process (ERD)
The Emergency Repair Process is accessible directly from the Windows 2000 installation media:
- Boot the machine using the Windows 2000 Setup CD-ROM or the four setup boot floppies.
- At the "Welcome to Setup" screen, press R to repair a Windows 2000 installation.
- Press R again to select the Emergency Repair Process.
- Choose either Manual Repair (allows selecting registry repair specifically) or Fast Repair.
- When prompted, provide the Emergency Repair Disk if available. If no
floppy disk is available, Setup searches for the repair directory at
%SystemRoot%\Repairon the local hard drive. - The utility validates system files and copies the registry hives
from the Repair folder directly into
%SystemRoot%\System32\Config.
2. Manual Restoration via the Recovery Console
When fine-grained control is required, administrators use the Recovery Console to replace corrupted hives manually:
- Boot from the Windows 2000 Setup media, press R to repair, then press C to launch the Recovery Console.
- Select the appropriate Windows installation (typically
1: C:\WINNT) and enter the local Administrator password. - Navigate to the active registry directory:
cd system32\config - Rename the damaged hive files to preserve them for forensic
analysis:
ren system system.bad ren software software.bad ren sam sam.bad ren security security.bad ren default default.bad - Copy the replacement hives from the Repair folder:
copy c:\winnt\repair\system c:\winnt\system32\config\system copy c:\winnt\repair\software c:\winnt\system32\config\software copy c:\winnt\repair\sam c:\winnt\system32\config\sam copy c:\winnt\repair\security c:\winnt\system32\config\security copy c:\winnt\repair\default c:\winnt\system32\config\default - Type
exitand restart the computer.
System Impact and Post-Recovery Steps
Restoring hives from the Repair folder successfully brings the operating system back to an operational state, but it reverts system configuration:
- State Reversion: If the Repair folder was never
updated using
ntbackup.exe, the registry returns to the state it was in when Windows 2000 was first installed. - User Accounts and Security: User accounts, domain
associations, and permission changes made after the last repair backup
are removed because the
SAMandSECURITYhives are rolled back. - Hardware and Drivers: Any hardware installed after the hive snapshot may need to be redetected or have its drivers reinstalled.
- Installed Applications: Software installations made
after the snapshot will leave orphan files on the disk, as their
registry keys in the
SOFTWAREhive will no longer exist. Reinstalling these applications is required to restore correct shortcuts and COM registrations.