Re: Installing grub for a different computer

From: Kevin Freeman (kfreem02_at_comcast.net)
Date: 11/17/04

  • Next message: Peter Boy: "Re: WYSIWYG editors for linux"
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    Date: Tue, 16 Nov 2004 19:35:28 -0600
    
    

    On Tue, 2004-11-16 at 07:55 +0000, Colin Paul Adams wrote:
    > root (hd0,4)
    > configfile /etc/grub.conf
    >
    > (Disk has FC1 on it, if that is relevanet).
    >
    > This then attempts to boot a kernel (I'm not presented with a grub
    > menu - I guess there's only one kernel present).
    >
    > But fails with a message something like:
    >
    > Disk (hd1,4) not found.
    >

    OK, so this time Murphy's Law is working overtime. Boot with the floppy
    and this time enter:
    root (hd0,4)
    cat /etc/grub.conf #if this does not work, cat /boot/grub/menu.lst
    or /grub/menu.lst

    Now you need to duplicate the kernel and initrd lines that were printed
    by the cat command:
    kernel /vmlinuz-some-version and some params
    initrd /initrd-some-version.img

    Note: use tab completion to save some typing and prevent mistakes.

    After entering the commands above for root, kernel and initrd grub is
    now ready to resurrect your FC installation. Enter the command boot and
    press enter.

    Once the system boots, edit grub.conf (the HD version) and replace hd1
    with hd0. Also, enter a nonzero value for timeout (5 or 10 seconds is
    fine) so that if you have to use a boot floppy in the future, the menu
    can be displayed (and then modified) with the configfile option. It
    would be a good idea to test the grub floppy again with the commands:
    root (hd0,4)
    configfile /etc/grub.conf

    If this brings up the working grub menu then you know your "emergency
    recovery" procedures will work in the future.

    > There used to be ANOTHER hard disk in this machine, before that one
    > proved to be unusable, so I'm guessing that this hard disk must have
    > been the primary IDE slave (is that what hd1 is?).

    That is the source of your problem. If you swap, move or replace drives
    you need to be careful with grub.conf to ensure that you still have a
    bootable system. Now that you are armed with a grub floppy (and know
    how to use it) this is less of a concern.

    Kevin Freeman

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Peter Boy: "Re: WYSIWYG editors for linux"

    Relevant Pages

    • Re: Naming harddisks (Linux)
      ... But I also see that for an USB drive it uses /dev/sdas the ... Does GRUB recognize SCSI drives? ... The first step in understanding the boot process is to ... The bootloader's job is to load the OSs kernel. ...
      (comp.os.linux.misc)
    • Re: Etch on USB-HD wont boot - race condition?
      ... notebook but the kernel cannot find the root filesystem. ... I had an initial problem that I think I got solved: On boot, ... Begin: Mounting root file system... ... SCSI device sda: 78140159 512-byte hdwr sectors ...
      (Debian-User)
    • Re: changing default os in grub
      ... > I've just installed a 2.6.8 kernel in Sarge and was ... > hoping the adjustment to grub would return Sarge to ... # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST ... # This entry automatically added by the Debian installer for an existing ...
      (Debian-User)
    • Re: booting linux using a floppy
      ... which kernel of the list to boot from. ... Note that this will at this point remove your ability to boot into windows. ... I think I recall that you said the grub loader... ... and grub will search for a partition containing grub's stage2 file ...
      (comp.os.linux.misc)
    • Re: Debian bootable on external USB-harddisk
      ... > They are all on the external harddisk since I want to boot from this ... >> fail if you have placed the kernel and initrd on the external ... >> available from BIOS. ... >> grub stage one on the external disk. ...
      (comp.os.linux.setup)