Recreate boot loader

From Skytech
Jump to navigation Jump to search


Re-creating boot loader in windows

For instance after a dd of a complete windows partition to another disk coming from former grub to standalone windows it might be nessesary to re-create the windows boot loader. It is easily done but requires an install disk:

Windows 2000/XP/Server 2003 Installation CD

Boot the computer from the installation CD, start Recovery Console and run

  • fixmbr
  • fixboot

commands.

Further information is available at:

Windows 2000: http://support.microsoft.com/kb/229716/

Windows XP: http://support.microsoft.com/kb/307654/

Windows Server 2003: http://support.microsoft.com/kb/326215/

(!) If the system partition was not restored to its original position, then the boot.ini file needs to be updated.

This can be done with the Recovery Console command bootcfg /rebuild

Creating a Windows XP Boot Disk

Windows XP: http://support.microsoft.com/kb/291980/

Windows Server 2003: http://support.microsoft.com/kb/317521/

Creating a for Windows 2000

Create a boot disk first: http://support.microsoft.com/kb/301680/

Then change the boot.ini from Windows: http://support.microsoft.com/kb/311578/

Windows Vista or Windows 7 installation CD/DVD

Boot from Windows Vista installation disc, select language and keyboard or input method, click Next and choose to Repair your computer. Then you will need to select the operating system that you want to repair. In the System Recovery Options dialog box click Command Prompt and type the following:

  • Bootrec.exe /FixMbr
  • Bootrec.exe /FixBoot

If you want to completely rebuild Windows Vista Boot Configuration Data, then you should issue the following command:

  • Bootrec.exe /RebuildBcd

This command scans all disks for installations that are compatible with Windows Vista. Additionally, this option also allows select the installations that you want to add to the Boot Configuration Data store.

Further information is available at http://support.microsoft.com/kb/927392/