Re: Installed FC4 all I get is grub>... Help

From: Mike McCarty (mike.mccarty_at_sbcglobal.net)
Date: 07/03/05

  • Next message: Stelian Iancu: "Re: yum repomd.xml error message"
    Date: Sun, 03 Jul 2005 08:29:13 -0500
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    Don wrote:

    > I tried setup (hd1,10 and got
    > Checking if "/boot/grub/stage1" exists... no
    >
    > How do I know what the parameters should be?
    > Thanks

    This is indeed a sticky question, as the only answer is "however
    you set up your machine".

    GRUB has the ability to do some "find" operations.

    You need to

    find /boot/grub/stage1
    and
    find /boot/grub/stage2

    Your BIOS loads only one sector from disc, and jumps to it.
    This is not enough room for GRUB to do its job, so it loads
    stage1 which can read more file system stuff, and which then
    loads stage2 which does more of the real work. Without those
    two stages, GRUB can't work. So you need to find where they are.

    We can't possibly tell you where to look, because we don't know
    your setup. And if you knew your setup, you wouldn't have a problem.

    However, I can possibly help you find out what your setup is, and
    get past this.

    You have to tell GRUB where to look on your hard drive. You do this
    with the "root" command. But to use that, you need to know how
    GRUB names discs.

    Your first drive is named (hd0). Your second drive is named (hd1).
    Partition names are like disc names, but they have a partition number
    in them, like this "(hd0,0)". This is the name of the first partition
    on disc 1. The third partition on disc 2 would be named "(hd1,2)".

    So, set the root of your file system to each partition you have and try
    the "find" command, like this:

    root (hd0,0)
    find /boot/grub/stage1

    If this fails, then try

    root (hd0,1)
    find /boot/grub/stage1

    Keep trying each partition of your first hard disc. If you run off
    your first hard disc, then try your second hard disc like this

    root (hd1,0)
    find /boot/grub/stage1

    root (hd1,1)
    find /boot/grub/stage1

    until you get a hit.

    If you never find /boot/grub/stage1 then you have an incomplete
    install of GRUB, and you won't be able to get off the ground.

    Now, you may not know what your partition setup is. I suggest
    you use a rescue disc of some sort. Can you boot from CDROM?
    If so, then boot a rescue disc and use whatever utilities are present
    to find out what your hard disc setup is.

    Now, supposing that you find a hit, and you can find both
    /boot/grub/stage1 and /boot/grub/stage2 then you are nearly
    there.

    You next need to load a kernel. You do this with the kernel
    command. First, issue the "root" command which worked with
    the "find" above. Then

    kernel /vmlinuz...

    Where the "..." represents stuff that is peculiar to your kernel distro.
    I don't know what to put there, but I believe that GRUB will try
    auto-completion if you use the TAB key. After the name of the kernel,
    you need to put whatever arguments to the kernel it needs. On my
    machine, for example, I need "acpi=off".

     If that works, then you need to load your initial RAM disc

    initrd /initrd...

    where again you probably need to use auto-completion to find the exact
    name.

    At this point, you are ready to go, and can issue the "boot" command.

    boot

    A complete set of commands for my machine, which boots FC2 is:

    root (hd0,2)
    kernel /vmlinuz-2.6.10-1.771_FC2 ro root=LABEL=/ acpi=off rhgb quiet
    initrd initrd-2.6.10-1.771_FC2.img
    boot

    You probably need the "ro", you probably need the "root=LABEL=/", you
    may or may not need the "acpi=off", and "rhgb quiet" just makes things
    a little less noisy.

    Hope that helped some.

    Mike

    -- 
    p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
    This message made from 100% recycled bits.
    I can explain it for you, but I can't understand it for you.
    I speak only for myself, and I am unanimous in that!
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Stelian Iancu: "Re: yum repomd.xml error message"

    Relevant Pages

    • fixing grub : mbr fix when windows install after linux
      ... "There is not a boot manager screen at all, ... windows but GRUB boot window does not appear. ... "I forgot to install GRUB, I didn't install GRUB in the MBR, I chose ... Fedora but that was not an active primary partition". ...
      (comp.os.linux.misc)
    • Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesnt work
      ... grub is installed on the /root partition, which is the first partition on hdc: hdc1, or in grub notation. ... Stage1 is the unpatched 512-byte file, that is patched and copied to the boot record during setup. ... This byte is initialized to 0xff in the stage1 file, but patched to 0x81 in your setup, to say "we are booting from disk." ...
      (comp.os.linux.setup)
    • Re: [opensuse] Yast & Grub bootloader different.
      ... My Grub bootup menu is different than the bootloader ... that shows up on the logon screen aat boot time. ... any boot loader for that matter, can only operate on one /boot partition at ... Grub doesn't scour the all hard drives on each install ...
      (SuSE)
    • Re: [Fwd: Re: [opensuse] Boot magic]
      ... Since I installed some milestones I can no longer boot the partition I want. ... I installed on part3 milestone 6 with its own boot directory in the rootdir. ... I only use the milestone 6 grub environment against my will. ...
      (SuSE)
    • Re: Boot manager for Windows only
      ... And also is GRUB capable of booting any ... > Windows partition or will it always hand over to the XP boot loader? ...
      (comp.os.linux.setup)