Friday, March 21, 2008

When Linux disturbs your Window Boot Manager

All Linux distributions come with their own boot managers, usually LiLo or Grub. When you install any Linux OS they overwrite the Master Boot Record (MBR) on the hard disk. If you want the familiar Windows boot manager back, you will have to repair the boot sector with the Windows setup CD.

Boot from you Windows CD( you can do this only if your OS CD is a bootable version) at the start up of your computer, and select "Recovery console" at the first menu. There enter the command 'fixmbr'. In most of the cases Windows recognizes the Linux partition and adds it to the boot manager. If that doesn't happen, start the recovery console again and enter the following commands( assuming "C:" is the Windows partition) :
  1. cd..
  2. fixboot c:
  3. fixmbr
  4. bootcfg/rebuild
With this rebuild of your boot sector, the Windows boot files will be written back again, the MBR will be repaired and the file "boot.ini" is recreated. And you are back to square one......with your favorite Windows boot manager back you will feel relaxed even though there is a Linux box along with your Windows habitat.

No comments: