xbsd.nl

Grub recovery

29 May 2007

Need to recover your Grub bootloader after Windows has overwritten the MBR on a dualboot system? Here's the howto in a few quick steps.

  1. boot from a Linux LiveCD like one of these.

  2. type 'sudo grub' to open the grub prompt (e.g., "grub>")
  3. type 'find /boot/grub/stage1' to find a installable location (e.g., hd0,2).
  4. type 'root (hd*,*)' ... and replace the asterisks with the output from step 2.
  5. type 'setup (hd0)' to install grub to the mbr.
  6. type 'quit' to exit grub.



blog comments powered by Disqus