Repairing Windows XP with Six Simple Commands
okay, just realized I had dugg an article earlier that had the same information from Information weeks Fred Langa, here. Changing links in the blog to point to that article instead.
Article describing how to repair Windows XP when your PC is inaccessible from the standard boot procedures, and you have to use the recovery console as your last resort!
Nice rundown of what to do when you experience some of these Windows boot errors. Uses the BOOTCFG /Rebuild to rebuild the boot.ini and the Fixboot command to write the new boot sector. Written by a guy who worked at Bestbuy and saw many of these Windows errors and wanted a better way to fix them than doing a system restore.
Windows could not start because the following file is missing or corrupt.
Windows NT could not start because the below file is missing or corrupt: C:\WINNT\System32\Ntoskrnl.exe
Windows NT could not start because the below file is missing or corrupt: C:\WINNT\System32\HAL.dll
NTLDR is Missing
Press any key to restart
Invalid boot.ini
Press any key to restart
In short the commands are
Boot from your XP Setup CD and enter the Recovery Console
attrib -H -R -S boot.ini
del boot.ini
bootcfg /Rebuild
chkdsk /R /F
fixboot
And these are all run at the c prompt c:\>
read more