From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JLXsF-0001Dw-Ib for mharc-grub-devel@gnu.org; Sun, 03 Feb 2008 00:58:39 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JLXsB-0001DC-Rp for grub-devel@gnu.org; Sun, 03 Feb 2008 00:58:36 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JLXs9-0001Ce-PW for grub-devel@gnu.org; Sun, 03 Feb 2008 00:58:35 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLXs9-0001Cb-LI for grub-devel@gnu.org; Sun, 03 Feb 2008 00:58:33 -0500 Received: from c60.cesmail.net ([216.154.195.49]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1JLXs9-0002bk-8z for grub-devel@gnu.org; Sun, 03 Feb 2008 00:58:33 -0500 Received: from unknown (HELO relay.cesmail.net) ([192.168.1.81]) by c60.cesmail.net with ESMTP; 03 Feb 2008 00:58:32 -0500 Received: from [192.168.1.21] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by relay.cesmail.net (Postfix) with ESMTP id 3BB31619055 for ; Sun, 3 Feb 2008 00:58:32 -0500 (EST) From: Pavel Roskin To: The development of GRUB 2 In-Reply-To: <20080202143446.GA6583@io.com> References: <20080131160805.GA6114@io.com> <1201886730.7586.22.camel@dv> <20080201184413.GA9474@io.com> <200802021311.19111.okuji@enbug.org> <20080202143446.GA6583@io.com> Content-Type: text/plain Date: Sun, 03 Feb 2008 00:58:31 -0500 Message-Id: <1202018311.28138.7.camel@dv> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-1.fc8) Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: Does grub2 solve this problem I am having with grub1? RE: usbsticks. 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: Sun, 03 Feb 2008 05:58:36 -0000 On Sat, 2008-02-02 at 08:34 -0600, Paul Elliott wrote: > On Sat, Feb 02, 2008 at 01:11:18PM +0100, Yoshinori K. Okuji wrote: > > > > It is already there. GRUB 2 already supports setting a root based on a > > filesystem label or a path. Indeed! That's much easier that LVM :-) > What is the syntax? How do I set it up? Are there example grub2 setups? grub> help search Usage: search [-f|-l|-s] NAME Search devices by a file or a filesystem label. If --set is specified, the first device found is set to a variable. If no variable name is specified, "root" is used. -f, --file search devices by a file (default) -l, --label search devices by a filesystem label -s, --set=VAR set a variable to the first device found -h, --help display this help and exit -u, --usage display the usage of this command and exit grub> That means, you can use unique labels like "usbstick-fedora8" and then use: search -f usbstick-fedora8 linux /boot/vmlinuz-2.6.24-f8 initrd /boot/initrd-2.6.24-f8.img or something like that. -- Regards, Pavel Roskin