From: Chris Knadle <Chris.Knadle@coredump.us>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: grub and root=label=
Date: Mon, 8 Sep 2008 14:18:08 -0400 [thread overview]
Message-ID: <200809081418.08117.Chris.Knadle@coredump.us> (raw)
In-Reply-To: <BAY118-W5495B5D8067090D0E5C0BFDB550@phx.gbl>
On Monday 08 September 2008 12:02:27 pm Greg White wrote:
> Hi,
>
> I was wondering if support for root=label= is coming to grub anytime soon?
> I found someone who wrote a patch that did this back in 2004
> (http://osdir.com/ml/boot-loaders.grub.bugs/2004-02/msg00105.html). I
> really need a way to do root=label WITHOUT an initrd. I have a portable
> USB hard drive that I boot on a variety of systems. Sometimes root is sda,
> sometimes sdb, or even sdf. Manually editing the root=line takes time, and
> more time is spent on figuring out where root is. I am using grub 0.97 and
> would be willing to switch to grub 2 if it will help me. I did try
> root=LABEL=WD320G in my menu.lst and it didn't work, (I checked the label
> of the hard drive it is WD320G).
As far as I know, the "root=" line is passed as one of the parameters to the
booting kernel, so it shouldn't matter what version of Grub you're using.
For instance, if you're running Linux, look at the Linux kernel documentation
for the kernel in /Documentation/kernel-paraemeters.txt -- you'll see that
one of the parameters the kernel takes is the "root=" parameter -- and that
support is there regardless of you use an initrd image or not.
The label that you need to enter in "root=LABEL=" is the label on the desired
PARTITION, not the drive's VOLUME label. 'cfdisk' can list the partition
labels along with the device names on the disk. For doing a double-check,
have a look at the 'findfs' command.
-- Chris
--
Chris Knadle
Chris.Knadle@coredump.us
next prev parent reply other threads:[~2008-09-08 18:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-08 16:02 grub and root=label= Greg White
2008-09-08 18:18 ` Chris Knadle [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-09-09 1:26 Greg White
2008-09-09 4:31 ` Chris Knadle
2008-09-09 14:55 ` Greg White
2008-09-09 15:01 ` Felix Zielcke
2008-09-09 15:09 ` Javier Martín
2008-09-09 15:14 ` Felix Zielcke
2008-09-09 16:00 ` Robert Millan
2008-09-10 0:11 ` Chris Knadle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200809081418.08117.Chris.Knadle@coredump.us \
--to=chris.knadle@coredump.us \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.