Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KNeuK-0007cS-Kg for mharc-grub-devel@gnu.org; Mon, 28 Jul 2008 22:25:48 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KNeuJ-0007c7-D5 for grub-devel@gnu.org; Mon, 28 Jul 2008 22:25:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KNeuH-0007bj-Uo for grub-devel@gnu.org; Mon, 28 Jul 2008 22:25:46 -0400 Received: from [199.232.76.173] (port=49014 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KNeuH-0007bg-RY for grub-devel@gnu.org; Mon, 28 Jul 2008 22:25:45 -0400 Received: from lethe.ofobscurity.com ([64.85.165.57]:36497) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KNeuH-00023N-DA for grub-devel@gnu.org; Mon, 28 Jul 2008 22:25:45 -0400 Received: from user-160u3tu.cable.mindspring.com ([76.15.15.190] helo=anan7.local) by lethe.ofobscurity.com with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1KNeuD-0003xt-3s for grub-devel@gnu.org; Mon, 28 Jul 2008 22:25:41 -0400 From: Chris Knadle Organization: CoreDump.us To: The development of GRUB 2 Date: Mon, 28 Jul 2008 22:25:40 -0400 User-Agent: KMail/1.9.9 References: <200804131734.50447.Chris.Knadle@coredump.us> <200807281525.00219.Chris.Knadle@coredump.us> <20080728212026.GA7386@thorin> In-Reply-To: <20080728212026.GA7386@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807282225.40514.Chris.Knadle@coredump.us> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: grub-probe fails to find PC partition due to Apple disklabel 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, 29 Jul 2008 02:25:47 -0000 On Monday 28 July 2008, Robert Millan wrote: > On Mon, Jul 28, 2008 at 03:25:00PM -0400, Chris Knadle wrote: > > On Monday 28 July 2008, Felix Zielcke wrote: > > > Am Montag, den 28.07.2008, 14:41 -0400 schrieb Chris Knadle: > > > > However on the last test I did make an error and left out the -d > > > > option to grub-probe, and that's required for the grub-probe to > > > > succeed, so unfortunately the output I posted is erroneous. > > > > A new one is attached which has Robert's patch applied -- it does > > > > succeed in finding the partition, but unfortunately we can't fix the > > > > problem this way because I believe it makes Apple partition detection > > > > *always* fail. > > > > > > Urgs, yeah didn't see that. > > > You have to use -d if you give a device. > > > Why do you think that with this it will always fail? > > > > Because the test that the patch does is to check for an HFS+ > > filesystem magic number against the first 2 bytes on the drive, which > > contains a jump vector for the Grub stage1 binary. i.e. in order for the > > test to pass, Grub has to be unbootable. > > My check has nothing to do with HFS+, it's based on the header magic number > (0x4552), which differs from the partition magic (0x504D) but also from the > HFS+ magic (0x482B, 0x4858). > > Please could you test it against an apple partmap? I just tested this on the iMac with a different HD and installing Debian Lenny Beta2 (since I couldn't find a download for Etch) -- took forever to do but turns out it was worth it -- your patch WORKS! :-) Congratulations. This also means I misunderstood several things. I must have misread what exactly the 0x4552 magic number pertained to. Ugh. Thanks very much for hanging in there and fixing this. -- Chris -- Chris Knadle Chris.Knadle@coredump.us