Repairing GRUB after imaging Ubuntu with Symantec Ghost

Dan Wieringa
The Geeklimit Archives
1 min readJun 2, 2008

The GRUB bootloader sometimes doesn’t survive imaging with Symantec Ghost.

After applying an image of Ubuntu Linux to a target machine, GRUB may need to be repaired before the machine will boot properly. To repair GRUB, do the following:

  1. Load the Live CD, boot from it until you reach the desktop.
  2. Open a terminal window.
  3. Type “sudo grub”
  4. Type “root (hd0,0)”, or whatever your harddisk + boot partition numbers are.
  5. You can easily look up the boot partition for the version of Ubuntu on the hard drive by browsing to the hard disk from the LiveCD desktop.
  6. Open /boot/grub/menu.lst in a text editor.Scroll to the bottom and look up which partition the menu choice for Ubuntu points to. (hd0,0 by default)
  7. Type “setup (hd0)”, or whatever your harddisk number is.
  8. Quit grub by typing “quit”.
  9. Reboot the machine.

(tested with 64-bit Ubuntu Linux 8.04)

--

--