[Novalug] VDQ Grub (cleverness, wages of)
Ed T. Toton III
bones at necrobones.net
Mon Jan 15 13:59:28 EST 2007
Thus spake Beartooth:
>>> title CentOS (2.6.9-42.0.3.EL)
>>> root (hd0,0)
>>> kernel /vmlinuz-2.6.9-42.0.3.EL ro root=LABEL=/
>>> initrd /initrd-2.6.9-42.0.3.EL.img
>>> title CentOS-4 i386 (2.6.9-42.EL)
>>> root (hd0,0)
>>> kernel /vmlinuz-2.6.9-42.EL ro root=LABEL=/
>>> initrd /initrd-2.6.9-42.EL.img
>>> title Fedora Core (2.6.18-1.2869.fc6)
>>> root (hd1,0)
>>> kernel /boot/vmlinuz-2.6.18-1.2869.fc6 ro root=LABEL=/
>>> initrd /boot/initrd-2.6.18-1.2869.fc6.img
> Well, I've heard of fstab ...
Each OS will have a file /etc/fstab that lists all of the filesystems it
will use. You'll probably see similar 'LABEL' tags in there.
> Are you saying, in grub.conf, replace "root (hd,0" in both places
> with /dev/hda1 for CentOS and /dev/hdb1 for Fedora? Or replace the names
> "Fedora" and "CentOS" with those things??
No, the 'root=LABEL=/' parts would need to be changed to something like
'root=/dev/hda1'... The names on the 'title' lines are just what gets
displayed to tell them apart. The 'root (hd0,0)' statement tells grub that
it's going to use (in the case with 0,0) the first disk and first
partition on that disk to find the kernel and initrd. The kernel also
needs to know where the filesystem is, which is why it gets a "root="
parameter.
> Dunno if any of the FC stuff it has is correct. It originally had
> none at all; I pasted in an entry I had copied from another machine. I
> have since twoke that some.
OK, if it's wrong, it won't work. :)
> Hmmm... From what little I've seen, I supposed chainloader to be
> some M$ thing ..
Yes, you pretty much have to use it for non-linux OSes, but for linux it
can be optional depending on how you want to manage your various boot
configurations.
------------------------------------------------------------------
- Ed T. Toton III, RHCE --|-- www.necrobones.com -- ed.toton.org -
------------------------------------------------------------------
Militant Agnostic: I don't know, and neither do you.
More information about the Novalug
mailing list