How to Recover from an Infinitely Looping Startup Repair Loop without Reinstalling Windows
If you've ever experienced a Startup Repair that continously loops and fails to fix the problem of not being able to load windows, even in safe mode, then you'll know that usually the only way to recover from this when System Restore does not work is to do a clean install of Windows.
Until now.
This tutorial will show you how to use the System Recovery Options provided by Windows to recover your system to a working state so that you don't have to risk losing data by performing a clean install.
Warning
The instructions presented withing this tutorial must be followed correctly, or you can damage your Windows 7 installation even further. This tutorial is designed to help recover from a bad registry that is causing the startup repair loop. You should note that there may still be some issues remaining that cannot be fixed by manually restoring the registry.
If Windows automatically opens Startup Repair, and subsequently fails to fix a problem, you can skip ahead to step 4 below.
In the System Recovery Options screen, click Startup Repair:
Windows will search for an attempt to repair startup problems:
If startup problems could not be repaired, you will receive the message Windows cannot repair this computer automatically. Click View advanced options for system recovery and support:
Click View advanced options for system recovery and support, which which bring you back to the main System Recovery Options screen.
Click Command Prompt:
Command Prompt should open to X:, which is an internal ram disk use by System Repair:
Now you need to find your system drive. Depending on how your system is setup, this could be either C: or D:.
Type C: and press <ENTER>.
Verify that this is your system drive by typing DIR and pressing <ENTER>. If you see the Program Files, Users and Windows folders, then you have found your system drive, and can continue to step 9 below.
If the drive is not your system drive, repeat steps I and II above, changing the drive letter to D, E or some other letter until the system drive is located.
When you have located your Windows system drive, type CD \windows\system32\config and press <ENTER>:
Type DIR and press <ENTER>, and verify that the following files and folders exist in the config folder:
RegBack (which is a folder)
DEFAULT
SAM
SECURITY
SOFTWARE
SYSTEM
Type MD mybackup and press <ENTER> to create a backup folder that you can use incase this procedure does not work as expected.
Type copy *.* mybackup and press <ENTER>.
If you are prompted to overwrite existing files, press A to allow all backups to be overwritten.
Now you need to check if you can use the automatic Windows backups to restore your registry:
Type CD RegBack and press <ENTER> to go to the RegBack folder.
Type DIR and press <ENTER> to view the contents of the folder. All the following files must exist:
The DEFAULT, SAM and SECURITY files should each be about 262,000 bytes in size.
The SOFTWARE file should be about 26,000,000 bytes.
The SYSTEM file should be about 9,900,000 bytes.
The file sizes presented here are approximate estimations, and may vary depending on your system. If any one of them are 0 bytes, then you should stop what you're doing now and seek an alternative method of recovering your system, because Windows cannot function with a 0-byte size registry hive.
If the hive files listed in RegBack are ok, then proceed to step 14 of the tutorial.
Type copy *.* .. and press <ENTER> to copy the backup hive files to \Windows\System32\config.
If you are prompted to overwrite existing files, press A to allow all file to be overwritten.
Type exit and press <ENTER> to close the command prompt.
Click the Restart button to reboot your computer. If all goes well, your system will boot normally.
Reference Information
This tutorial was made possible after learning how to manualy replace the Windows 7 Registry Hives after reading the Recovering Windows 7 Registry Hives/Files article on Microsoft Technet.
System Manufacturer/Model Number Self Built OS Windows 7 ultimate 64 bit / XP Home sp3 CPU intel Core 2 Duo E8400 3.0ghz Motherboard Asus P5ND bios 1401 Memory 8 gigs 1066 OCZ Fata1ty Graphics Card EVGA GTX 580 Call of Duty Black Ops Edition Sound Card Creative Soundblaster Audigy 2zs Monitor(s) Displays Asus 24in LCD's 2MS X2 Screen Resolution 1920x1080p @60Hz
Keyboard Logitech Bluetooth Wireless MX5000 Mouse Logitech Bluetooth Wireless MX1000 PSU OCZ 700W GameXtreme Case NZXT Apollo Cooling Corsair H50 CPU/120mm x3 /60mm x2 /Corsair Dominator Ram Hard Drives WD Caviar 500 Black/ WD Caviar 200 Blue Internet Speed Download 19.83 Upload 0.97 Other Info Logitech Z2300 Speakers/ Bose Noise Cancelling Headphones/Avermedia PCI-e Hybrid TV Bravo/Epson NX415 all in one/ 4 Port Powered USB Hub/ LG 10x Bluray Burner /TSST Corp DVDRW External
System Manufacturer/Model Number OWN BUILT OS 7 CPU Q6700 Motherboard Foxconn G31MX-K Memory 4GB DDR2 RENDITION Graphics Card Inno 3D 9800GT 1GB DDR3 Sound Card REALTEK HD Monitor(s) Displays LG 22"
PSU 550 Silent Zoostorm PSU Case Coolermaster Caliver Cooling AKASA Hard Drives 3 x 500GB Hitiachi Internet Speed 16MB ADSL +2
You do know doing a chkdsk normally repairs this or if you go to F8 and disable automatic restarts on system failure.
work on a help desk and this normally resolves the issue
CHKDSK is actually part of what Startup Repair does, but normally resolves the issue is not the same as always resolves the issue. I developed the tutorial after all attempts at solving the infinite repair loop on a customer laptop failed, attempts which included running a manual CHKDSK from the command line 3 times, 2 of which with scanning for and re-evaluating bad clusters enabled.
I eventually adapted a technique I used often with Windows XP as a last ditch effort before performing a data backup and re-install of Windows 7. And I'm pleased to say that it worked perfectly, the results of which led directly to the creation of this tutorial.
System Manufacturer/Model Number Custom Build OS Windows 7 Ultimate x64 CPU AMD Phenom 9600 Quad Core Motherboard ASUS MB-M3A32-MVP Deluxe/WiFi Memory 2 x A-Data 2GB DDR2-800 Graphics Card ASUS ATI Radeon HD 2400PRO Sound Card C-Media 7.1 Surround Monitor(s) Displays Sahara 19" Screen Resolution 1600x1200
Keyboard Mercury Mouse Logitech PSU 800W Case Thermaltake Tai-Chi Cooling Tai-Chi Water Cooler Hard Drives 1 x 80GB Seagate (IDE)
2 x 120GB Seagate (IDE/Sata)
2 x 200GB Seagate (IDE/Sata)
1 x 250GB Seagate (Sata)
1 x 320GB Seagate (Sata)
2 x 1TB Seagate (Sata)
1 x 1.5TB Seagate (Sata) Internet Speed 384kbps
Peter, looks good all the way to the end when I get to RegBack Dir hive files are there but they are all much larger than you state, there is also a file = all. When I go to copy in step 18 I get "all The file cannot be copied onto itself. 0 files copied. On rebooting I still can not repair nor boot Windows 7. Many thanks Alex.
Peter, looks good all the way to the end when I get to RegBack Dir hive files are there but they are all much larger than you state, there is also a file = all. When I go to copy in step 18 I get "all The file cannot be copied onto itself. 0 files copied. On rebooting I still can not repair nor boot Windows 7. Many thanks Alex.
Did you include the double-dot destination that appears after the wilcards source specification?
To clarify:
COPY[SPACE]*.*[SPACE]..<ENTER>
Forgetting to include the double-dot for the destination is the only things that can result in the "The file cannot be copied onto itself. 0 file(s) copied." error...
System Manufacturer/Model Number Custom Build OS Windows 7 Ultimate x64 CPU AMD Phenom 9600 Quad Core Motherboard ASUS MB-M3A32-MVP Deluxe/WiFi Memory 2 x A-Data 2GB DDR2-800 Graphics Card ASUS ATI Radeon HD 2400PRO Sound Card C-Media 7.1 Surround Monitor(s) Displays Sahara 19" Screen Resolution 1600x1200
Keyboard Mercury Mouse Logitech PSU 800W Case Thermaltake Tai-Chi Cooling Tai-Chi Water Cooler Hard Drives 1 x 80GB Seagate (IDE)
2 x 120GB Seagate (IDE/Sata)
2 x 200GB Seagate (IDE/Sata)
1 x 250GB Seagate (Sata)
1 x 320GB Seagate (Sata)
2 x 1TB Seagate (Sata)
1 x 1.5TB Seagate (Sata) Internet Speed 384kbps
Peter many thanks for your reply, I was worried this thread / tutorial might have archived.
Ah, I think it was the space that I missed, bother. Things however have deteriorated, one thread I followed mentioned the problem with the dual core creating a confusion when booting Windows 7, so I de-activated one of the partitions, not a good move, all I get now is the Windows Boot Manager crash screen telling me Windows failed to start. 1. Insert Windows disk and restart you pc. 2. Choose language. 3. Repair you pc. I thought blow it sounds like a re-install, it's a laptop so not much on it give it a go but no, even with the disc in it boots to the WBM, if I use f10 it starts the re-install but then dies. Any ideas on how to get back to command prompt? Alex.
Using the DVD I managed to kick start the system after many attempts, got back to system recovery, tried the tutorial above, got all the way through this time, rebooted, did start up repair x 3 but still no luck, any further ideas? Alex.