search cancel

Cannot start Linux with GRUB boot loader after restoring an image of a disk or partition

book

Article ID: 151703

calendar_today

Updated On:

Products

Ghost Solution Suite

Issue/Introduction

You cloned a hard drive containing the Linux operating system, or you created and restored an image of a hard drive containing the Linux operating system. After restoring the image or cloning, the destination computer cannot boot into Linux. This version of Linux uses the GRUB boot loader.

Resolution


Before you begin: Symantec Ghost 8.0 and newer are currently the only versions of Ghost that support the GRUB boot loader. Symantec does not provide support for using Norton Ghost 2003 or earlier, or Symantec Ghost 7.5 or earlier with a Linux version that uses the GRUB boot loader. The following information is provided as a convenience only. For more information, read the document Ghost compatibility with Linux.

To make the destination computer bootable, run the Linux GRUB boot loader utility to reinstall the boot loader:
  1. Start the computer from the Linux rescue disk.
  2. Log in as "root" (without the quote marks).
  3. Run the GRUB boot loader. This displays the GRUB prompt, grub>
  4. Type:

    find /boot/grub/stage1

    This will prompt GRUB to display the location of the GRUB boot files. For instance, GRUB might display (hd0,1) where hd0 represents the first hard drive in the computer (either IDE or SCSI) and the ",1" represents the partition where the /boot/grub/stage1 file is located. In this example, the stage1 file is located on the second partition of the first hard drive (where drive and partition numbering start at 0).
  5. Type the word root, followed by the location of the file from the previous step:

    root (hd0,1)

    The file location, (hd0,1) may be different on your computer.
  6. Type:

    setup (hd0)

    This will write the boot loader to the Master Boot Record on the first hard drive on the computer.

The GRUB boot loader should now be properly re-installed, and you should be able to restart the computer from the hard drive.





Attachments