bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using label for Grub root (*not* os root)


From: Roger Binns
Subject: Using label for Grub root (*not* os root)
Date: Sun, 18 Feb 2007 10:36:33 -0800
User-agent: Thunderbird 1.5.0.9 (X11/20070103)

Is there any way to specify a filesystem label for Grub, in particular
for the root entry?  Note that I am not looking for how to do it for my
OS - that already works fine.

I couldn't find anything in the doc, and past questions seem to have
gone unanswered such as this one:

http://lists.gnu.org/archive/html/bug-grub/2002-07/msg00088.html

At the moment I have this:

title           Gentoo
root            (hd1,0)
kernel          /kernel-genkernel-x86_64-2.6.19-gentoo-r4
real_root=LABEL=nforce_root vga=791
initrd          /initramfs-genkernel-x86_64-2.6.19-gentoo-r4

I'd like to replace the root (hd1,0) bit with something like:

root (LABEL=nforce_boot).

I have 3 different chips doing hard drives in my machine (two different
ones for SATA, one for PATA) each of which has a number of controllers
on it.  If all are enabled, it becomes no fun at all to work out exactly
what drives get mapped to, and it can change as drives are unplugged and
replugged.

I also considered the "find" command.  eg I could put a sentinel file in
the correct partition and let Grub search to find that.  But I couldn't
figure out how to make that part of the normal boot process as above.

Roger





reply via email to

[Prev in Thread] Current Thread [Next in Thread]