Grappling with Grub

From: Tom F. (furtom2001_at_india.com)
Date: 01/27/05


Date: 27 Jan 2005 05:37:26 -0800

I've been following the other thread on installing grub. Now that I may
need it, I've broken out the info pages myself. I'm a little unclear on
a few points:

I have a separate /boot partition. So then I need to tell grub so like
this?
# grub-install --root-directory=/boot (hd2,0)

But of course I want to install onto the MBR on my first disk. If so
then I should use:
# grub-install (hd0,0)

But that can't be it, because how do I tell grub where the kernel is?
As I said, /boot is on hdc1.

Do I need to use both commands? That doesn't make sense at all.

Grub gets it's info from the grub.conf. So can I just install on the
MBR with
"# grub-install (hd0,0)" and let the config file handle the rest? If
so:

When the info page uses the term "root" is it referring to "/" or
"/boot"?

The info page configuration example has the line:
"kernel (hd1,0)/vmlinuz root=/dev/hdb1"
So in this case, it's looking for /vmlinuz in /dev/hdb1? Wouldn't that
mean "root" is the partition hdb1 mounted as /boot? Otherwise wouldn't
it be /boot/vmlinuz?

In my case, hdc1 is mounted as /boot and / is hdc3. So would my config
file look like this?
title Linux
kernel (hd2,0)/boot/vmlinuz root=/dev/hdb3

I know grub won't understand filesystems at this point, but the "root="
is throwing me.

I'd appreciate any help or explanation.
Thanks.
Tom F.



Relevant Pages

  • Re: FC4 installaion bogged up WINXP
    ... Can't copy/paste it right now but it's a simple debian's default grub having ... root ... > I already have debian installed with WinXP as dual boot. ... > fedora but did not let it install grub when asked. ...
    (Fedora)
  • Re: HELP!! /dev/root mount failure
    ... It's a pretty standard looking output for grub, as it's the install default. ... title Fedora Core ... Creating root device. ...
    (Fedora)
  • Re: multi-booting without screwing up my current grub settings == A bit more ==
    ... it is a good idea to save the MBR (master boot record), in a safe place, ... and use dd for this (as root) ... Windows XP, and FC5, you may want to read the *info grub* which is quite ... Whenever you install a new software just do not install the boot ...
    (alt.os.linux.suse)
  • Re: Help 10.3 a mess After YOU Upgrade
    ... GRUB stage1. ... The stage1 goes in boot sector of system root partition. ... sda6=/1st SUSE install ... and kernel as defined for selected menu item. ...
    (alt.os.linux.suse)
  • Re: GRUB, MBR and NTLDR confusion
    ... that GRUB can be loaded on to the boot partition instead of the MBR ... What you want is to install it to the MBR of /dev/hda. ...
    (Ubuntu)