I ghosted a red hat 9 box and put the drive into another system and when it starts loading it stops with text - GRUB

Posted on 2005-04-20
Last Modified: 2013-12-06
I ghosted a red hat 9 box and put the drive into another system and when it starts loading it stops with text - GRUB
Is this fixable?
Question by:Brendle
    LVL 7

    Accepted Solution

    Older versions of Ghost do not support GRUB properly, and grub (or lilo) needs to be reinstalled after the ghost.  It's also possible that the drive map changed such that GRUB is no longer working, but I'm guessing the former.  IIRC, Ghost 7.5 does not support GRUB and Ghost 8.0 does.

    You'll need to boot from a rescue cd environment, chroot to the mount drive, and install grub or lilo.

    Assuming you're using redhat CD's for the rescue, enter rescue mode (follow the instructions when booting off the CD.. I believe F5 for the rescue screen), then once it's booted up "chroot /mnt/sysimage"

    To install LILO (Ghost compatible), "mv /etc/lilo.conf.anaconda /etc/lilo.conf && /sbin/lilo".  To reinstall grub, "grub-install /dev/DEVICE_NAME" where DEVICE_NAME is the hard drive (e.g. /dev/hda, /dev/sda, etc.); check the output of "mount" before doing the chroot.
    LVL 3

    Expert Comment

    by:Mike R.
    I had the exact same problem using Mondo to image a linux system.  Wesley Chen gave me the answer at this link!

    LVL 1

    Expert Comment

    Another option would be to boot from the original hard drive with the ghost copy as a slave drive.

    At the console run grub to enter the grub shell.
    $> grub

    Then set root as the ghost copy.
    grub>root (hd1,0)
                     ^ Change as necessary.

    Then setup grub on the ghost copy.
    grub>setup (hd1)
                      ^ Change as necessary.

    As long as /boot/grub/ or /grub/ exists on the device you set a root, with menu.lst, stage1, stage2 and your file system stage1.5 in the directory, it should all work out OK.    
    LVL 38

    Expert Comment

    Glad to know my post help.

    Another way to rebuild the Grub if you don't have floppy drive.
    (Macker has mentioned) Here is the details:
    Boot the clone disk machine from RedHat 9 first CD and type
    boot: linux rescue      ("linux rescue"  and enter.  boot: is the prompt)
    chroot /mnt/sysimage
    /sbin/grub-install  /dev/hda

    Then it will re-install Grub in MBR.

    For disk clone, I'll always have boot floppy (I created from the original system) and bootable Linux CD on hand
    for in case.....
    LVL 3

    Expert Comment

    by:Mike R.
    Always try to give credit due :-)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
    1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now