From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1SA4Rv-0005fH-35 for mharc-grub-devel@gnu.org; Tue, 20 Mar 2012 15:10:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SA4Rs-0005em-Cm for grub-devel@gnu.org; Tue, 20 Mar 2012 15:10:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SA4Rq-000097-Dr for grub-devel@gnu.org; Tue, 20 Mar 2012 15:10:23 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:40887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SA4Rq-00008m-4l for grub-devel@gnu.org; Tue, 20 Mar 2012 15:10:22 -0400 Received: by wibhj13 with SMTP id hj13so412272wib.12 for ; Tue, 20 Mar 2012 12:10:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=jmp5CcJR6K9SW/cJutWgs04JdAwqKI3OD2OAJnawCdE=; b=ekSJi5F3dif2aPyR8vHNKimRAwvDmNjG+tMT4bnBzomJHbHFSAmY5X45rrs4hHpyXR qTwsCznn3pBwjfdnmHT98Lz61yTKMWBNE890rZhbhQATMz3IDaZpH9Q4dStyyGvt6Y+S 3od6CYgcWQ7YRGSylTr0pGt7e3S+oOPJIrVbgt35GKS9+3L/xn2kOZdxNzB3yEf+Fy1+ I+ZPDiTLjhoQx5v6mqjn0HSBi4SvbSNmjwYSyzYphuhRrecgS3r688fzQMV5d6CwJ3it dO4vwJjwWZH+fPN/n5kE5r52bxIiZ9drMa311CzeLqGBfebikij+Aj6RqbIG2h+SoteZ O69Q== Received: by 10.216.137.232 with SMTP id y82mr539716wei.82.1332270620002; Tue, 20 Mar 2012 12:10:20 -0700 (PDT) Received: from debian.x201.phnet (115-234.197-178.cust.bluewin.ch. [178.197.234.115]) by mx.google.com with ESMTPS id k6sm36124830wiy.7.2012.03.20.12.10.17 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 20 Mar 2012 12:10:18 -0700 (PDT) Message-ID: <4F68D614.1090809@gmail.com> Date: Tue, 20 Mar 2012 20:10:12 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20120124 Icedove/9.0.1 MIME-Version: 1.0 To: Lennart Sorensen Subject: Re: grub-probe seems to be having problems References: <4F594A95.9060103@gmail.com> <20120309153907.GX14853@caffeine.csclub.uwaterloo.ca> <20120309154342.GY14853@caffeine.csclub.uwaterloo.ca> <4F5A2667.1000908@gmail.com> <20120309160538.GA14853@caffeine.csclub.uwaterloo.ca> <4F5A48CF.50607@gmail.com> <20120309183946.GB14853@caffeine.csclub.uwaterloo.ca> <20120309203757.GC14853@caffeine.csclub.uwaterloo.ca> <20120319212850.GE10301@caffeine.csclub.uwaterloo.ca> <4F685BC2.1030008@gmail.com> <20120320190235.GF10301@caffeine.csclub.uwaterloo.ca> In-Reply-To: <20120320190235.GF10301@caffeine.csclub.uwaterloo.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.177 Cc: The development of GRUB 2 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Mar 2012 19:10:25 -0000 On 20.03.2012 20:02, Lennart Sorensen wrote: > On Tue, Mar 20, 2012 at 11:28:18AM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: >> There is no need to debug. I know exactly why GRUB is confused: >> because as far as my understanding goes the superblock makes no >> sense (details in previous mail). What we need is that someone >> familiar with md tells me how this sector should be interpreted. > This is just weird. > > I run grub-probe and sometimes it works and sometimes it doesn't. > > Something is giving inconsistent results. I don't know if it is a > problem in 2.6.32 kernel returning inconsistent data for the superblock, > or if grub isn't correctly initializing the superblock before filling it, > or if grub isn't actually reading the superblock properly. My conclusions are based on direct examination of the files you supplied not GRUB output. > Sometimes /dev/sdd2 isn't being recognized as a member of /dev/md0, > and other times it is. > > By the way, the code in grub-install that tries to check if a PReP > partition is empty using 'cmp' doesn't work. It always fails. > The suggestion it gives doesn't help. > > Forcing the partition to contain an elf header makes grub-install happy, > but that's not so easy to do until you got grub already installed there. > > Also a recent change to non powerpc ieee1275 in grub-install has broken > nvsetenv, since ofpath is no longer being set on powerpc. So boot-device > isn't set anymore. This worked a few weeks ago. The change in question isn't "non-powerpc", quite the opposite, it was to fix the install on powerpc Mac. Just different vendors use different boot methods. Please try this: === modified file 'util/grub-install.in' --- util/grub-install.in 2012-03-10 11:33:52 +0000 +++ util/grub-install.in 2012-03-20 19:08:57 +0000 @@ -764,6 +764,12 @@ echo " dd if=/dev/zero of=${install_device}" exit 1 fi + ofpath="`$ofpathname "${install_device}"`" || { + # TRANSLATORS: "device tree path" is the name of the device + # for IEEE1275 + gettext_printf "Couldn't find IEEE1275 device tree path for %s.\nYou will have to set \`boot-device' variable manually.\n" "$dev" 1>&2 + exit 1 + } fi "$nvsetenv" boot-device "$boot_device" || { -- Regards Vladimir 'φ-coder/phcoder' Serbinenko