From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KLRku-00084D-LY for mharc-grub-devel@gnu.org; Tue, 22 Jul 2008 19:58:56 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KLRks-00083b-Ic for grub-devel@gnu.org; Tue, 22 Jul 2008 19:58:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KLRkr-00083P-2Q for grub-devel@gnu.org; Tue, 22 Jul 2008 19:58:54 -0400 Received: from [199.232.76.173] (port=40794 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLRkq-00083M-TD for grub-devel@gnu.org; Tue, 22 Jul 2008 19:58:52 -0400 Received: from c60.cesmail.net ([216.154.195.49]:5132) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1KLRkq-0002vC-GQ for grub-devel@gnu.org; Tue, 22 Jul 2008 19:58:52 -0400 Received: from unknown (HELO relay.cesmail.net) ([192.168.1.81]) by c60.cesmail.net with ESMTP; 22 Jul 2008 19:58:51 -0400 Received: from [192.168.0.21] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by relay.cesmail.net (Postfix) with ESMTP id ECE2B618F22 for ; Tue, 22 Jul 2008 19:58:50 -0400 (EDT) From: Pavel Roskin To: The development of GRUB 2 In-Reply-To: <3FA357AE49694559941A663191155DE2@fz> References: <20080722133416.GB5524@archvile> <20080722095021.p15u40gtyc88csco-cebfxv@webmail.spamcop.net> <3FA357AE49694559941A663191155DE2@fz> Content-Type: text/plain Date: Tue, 22 Jul 2008 19:58:49 -0400 Message-Id: <1216771129.15050.13.camel@dv> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: Issue with boot != root and chainloading 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: Tue, 22 Jul 2008 23:58:55 -0000 On Tue, 2008-07-22 at 16:01 +0200, Felix Zielcke wrote: > From: "Pavel Roskin" > > > > I've seen that fd1 somewhere, but I don't remember where. I guess > > GRUB just defaults to that value if it cannot figure out the real > > device number of the root device. > > > > Maybe this Debian bug ? :) > For the reporter fd0 wasn't in device.map > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=467501 That's it. The "id" field doesn't represent the BIOS ID anymore. It's just a sequential number now, perhaps the entry number in device.map, not counting invalid devices. But it's written to a field where the bootloader expects to find a BIOS ID, such as 0x81 for the second hard drive. Although grub-setup correctly determines the name of the root device, such as (hd1,1), there is no code that translates "hd1" into 0x81. That code was removed to allow drive names like "hd" without a number, used on PowerPC machines. That means that device.map support is already totally broken on i386-pc. So few people noticed it because cross-drive installs are uncommon, and single-drive installs rely on the boot drive supplied by BIOS. -- Regards, Pavel Roskin