Repair Windows XP Options
- Lost admin password Use Linux boot disk to reset admin password: “http://home.eunet.no/~pnordahl/ntpasswd/”
- Try to boot the system into the “Last Known Good Configuration”.
- Boot into Safe Mode and try fixing from there first (disable services, or drivers ).
- Run CHKDSK /R /P to repair disk errors.
- Run Windows Systems Restore if XP boots.
- Replace corrupt NTLDR file, From Recovery Console type: COPY E:i386NTLDR C:
- Run System Restore from cmd prompt, type: %systemroot%system32 restore strui.exe
- Insert windows XP Disk and try to do a repair install “Bypass the recovery console”.
- Recovery Console: run BOOTCFG /Rebuild to repair Boot.ini. (follow the steps below)
Ø C: ATTRIB -H C:boot.ini
Ø C: ATTRIB -S C:boot.ini
Ø C: ATTRIB -R C:boot.ini
Ø C: del boot.ini
Ø C: bootcfg /rebuild
Add installation to boot list? (Yes/No/All): Type: Y Enter Load Identifier: Type in any description you want that will identify the installation of Windows (e.g., Windows XP SP2) Enter OS Load Options, Type in: "/fastdetect" and/or "/NoExecute=OptIn" without the quotes
Ø C: fixboot
Typical boot.ini looks like this:
[boot loader]
timeout=30default=multi(0)disk(0)rdisk(0)partition(1)WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)WINDOWS="Microsoft Windows XP Professional" /fastdetect
- Recovery Console: run FIXBOOT to write a new partition boot sector to the system partition
- Recovery console: run FIXMBR to repair the master boot record.
- Recover the registry: (press ENTER after you type each line)
md tmp
copy c:windowssystem32configsystem c:windows mpsystem.bak
copy c:windowssystem32configsoftware c:windows mpsoftware.bak
copy c:windowssystem32configsam c:windows mpsam.bak
copy c:windowssystem32configsecurity c:windows mpsecurity.bak
copy c:windowssystem32configdefault c:windows mpdefault.bak
delete c:windowssystem32configsystem
delete c:windowssystem32configsoftware
delete c:windowssystem32configsam
delete c:windowssystem32configsecurity
delete c:windowssystem32configdefault
copy c:windows epairsystem c:windowssystem32configsystem
copy c:windows epairsoftware c:windowssystem32configsoftware
copy c:windows epairsam c:windowssystem32configsam
copy c:windows epairsecurity c:windowssystem32configsecurity
copy c:windows epairdefault c:windowssystem32configdefault
