Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JLHDT-00005q-7f for mharc-grub-devel@gnu.org; Sat, 02 Feb 2008 07:11:27 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JLHDR-0008Ut-TB for grub-devel@gnu.org; Sat, 02 Feb 2008 07:11:25 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JLHDR-0008TJ-3c for grub-devel@gnu.org; Sat, 02 Feb 2008 07:11:25 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLHDQ-0008T1-V1 for grub-devel@gnu.org; Sat, 02 Feb 2008 07:11:24 -0500 Received: from ns39764.ovh.net ([91.121.25.85] helo=nexedi.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JLHDQ-00019n-R2 for grub-devel@gnu.org; Sat, 02 Feb 2008 07:11:25 -0500 Received: from [10.8.0.46] (unknown [10.8.0.46]) by nexedi.com (Postfix) with ESMTP id 103963EB26 for ; Sat, 2 Feb 2008 13:18:05 +0100 (CET) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Sat, 2 Feb 2008 13:11:18 +0100 User-Agent: KMail/1.9.4 References: <20080131160805.GA6114@io.com> <1201886730.7586.22.camel@dv> <20080201184413.GA9474@io.com> In-Reply-To: <20080201184413.GA9474@io.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802021311.19111.okuji@enbug.org> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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: Sat, 02 Feb 2008 12:11:26 -0000 On Friday 01 February 2008 19:44, Paul Elliott wrote: > > Would not the boot device be hd0? > > No, usually the first hard disk is hd0, the second hard disk > is hd1, and the usb sticks come after that. At least that is > how it works under my computer. Usually it is because the number > of hard disks differ that causes you not to know which device > the usb stick is. Nope. If you boot from a usb disk, it is always hd0. This is the PC BIOS. > The Problem does not have to involve usbsticks. One can imagine > a situation in which to device one is booting from is always > the first scsi disk. But some computers have one or more IDE > drives wich are recognized by the bios as hd0, hd1, ect. No. If you boot from a SCSI disk, it is hd0. All IDE disks are shifted to hd1, hd2, etc. > The Fedora/RedHat kernels/initrd have this feature where you can > specify the root partition to the kernel/initrd by volume label. You > can say 'root=LABEL=/' to tell the kernel to find the partition with the > label '/' and use that as the root partition. This feature does not > require LVN. The kernel/initrd will check all the partitons and find > the one lableled '/'. > > But this does not have anything to do with how one > specifies partitions to grub. But perhaps grub should adopt a similar > feature. It is already there. GRUB 2 already supports setting a root based on a filesystem label or a path. Okuji