Grub

From Admin-SIG

Recovering an over-written MBR entry

Sometimes, like after a windows (re-)install, the GRUB entry on the MBR will get wiped. To re-install the GRUB hooks into the MBR, do the following:

  1. Start up Ubuntu in cd-image live mode
  2. Mount your old / or /boot partition (/boot if you had a seperate /boot partition)
  3. Note what the root entries are in ...boot/grub/menu.lst
  4. Start up GRUB (sudo grub)
  5. Type the grub command root (hd?,?)
    Where the hd?,? refers to the disk and partition where grub resides
  6. Type the grub command setup (hd?) to set up the MBR on the boot drive