From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KclJj-0008Ay-HQ for mharc-grub-devel@gnu.org; Mon, 08 Sep 2008 14:18:27 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KclJh-00089Y-Az for grub-devel@gnu.org; Mon, 08 Sep 2008 14:18:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KclJf-00087d-NL for grub-devel@gnu.org; Mon, 08 Sep 2008 14:18:24 -0400 Received: from [199.232.76.173] (port=39124 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KclJf-00087W-8a for grub-devel@gnu.org; Mon, 08 Sep 2008 14:18:23 -0400 Received: from lethe.ofobscurity.com ([64.85.165.57]:51022) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KclJe-0005ps-MY for grub-devel@gnu.org; Mon, 08 Sep 2008 14:18:23 -0400 Received: from [96.56.121.228] (helo=trelane.local) by lethe.ofobscurity.com with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1KclJR-0008Hz-Eo for grub-devel@gnu.org; Mon, 08 Sep 2008 14:18:09 -0400 From: Chris Knadle Organization: Coredump To: The development of GRUB 2 Date: Mon, 8 Sep 2008 14:18:08 -0400 User-Agent: KMail/1.9.9 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200809081418.08117.Chris.Knadle@coredump.us> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: grub and root=label= X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2008 18:18:25 -0000 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