Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MGdR5-0006nq-0R for mharc-grub-devel@gnu.org; Tue, 16 Jun 2009 14:31:07 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGdR3-0006nB-3r for grub-devel@gnu.org; Tue, 16 Jun 2009 14:31:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGdQy-0006ll-3d for grub-devel@gnu.org; Tue, 16 Jun 2009 14:31:04 -0400 Received: from [199.232.76.173] (port=36415 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGdQx-0006le-UI for grub-devel@gnu.org; Tue, 16 Jun 2009 14:30:59 -0400 Received: from moutng.kundenserver.de ([212.227.126.188]:59274) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MGdQw-0000dT-Rk for grub-devel@gnu.org; Tue, 16 Jun 2009 14:30:59 -0400 Received: from [85.180.13.222] (e180013222.adsl.alicedsl.de [85.180.13.222]) by mrelayeu.kundenserver.de (node=mrelayeu4) with ESMTP (Nemesis) id 0ML21M-1MGdQu1SAS-0001tE; Tue, 16 Jun 2009 20:30:56 +0200 From: Felix Zielcke To: The development of GRUB 2 In-Reply-To: <4A37E264.4060501@cox.net> References: <4A37E264.4060501@cox.net> Content-Type: text/plain Date: Tue, 16 Jun 2009 20:30:55 +0200 Message-Id: <1245177055.3489.12.camel@fz.local> Mime-Version: 1.0 X-Mailer: Evolution 2.26.2 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1+Mdw6yRVZgErvTHKdAF7Vyo2+DnMydgSkyV4G GXZH+XWHU/aQbCFkR+uv0kTuALaiA2Dwak/1Pm1+hH3QTECR/y ygY6noe/TS6FtFHJa7M0XaP7jBPC+Tg X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: A strange occurrence 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, 16 Jun 2009 18:31:05 -0000 Am Dienstag, den 16.06.2009, 14:20 -0400 schrieb David A. Cobb: > This isn't a development question, but I'm hoping the list's knowledge > of GRUB will help me understand it. > > Running Ubuntu 9.04, everything up-to-date, package "grub-pc" version 1.96+ > GRUB-2 was installed after having GRUB 0.9x running for years. The > installation involved letting GRUB chainload GRUB-2 until I saw it was > ready for primetime, then running an upgrade script. I mention that > because it's important to know that there is still a GRUB 0.9x image > somewhere. > > Trying to get past a nasty problem involving the interaction between a > 2003 Phoenix BIOS, and a big 160-GB disk that would not have been > available in 2003. I used BIOS setup to change the disk detection to > manual, and made sure the numbers that came up were the same as after a > successful boot. > > Booted, and WHOA! I got the system-selection screen from GRUB 0.9x. > But, it included versions of the kernel that were not installed until > after I switched to GRUB-2. Actually, the only thing I'm sure was > "wrong" was the lack of a colorful splash image. Well, no, actually, > I'm fairly sure the console displays were not the same as the "WELCOME > TO GRUB" that shows at the start of the GRUB-2 boot; but it goes past > pretty quick, and I could be wrong about that. > > So, maybe I hosed my GRUB-2 installation. That wouldn't explain how a > GRUB 0.9x image was found. Anyway, I re-installed the package and > (re)ran grub-install. And rebooted. And got the same screen. > > So, eliminate the one variable I knew was changed: I reset the BIOS > Setup to do automatic disk detection. Voilla!! > I'm back with the GRUB-2 splash screen, and everything is cool. > > But, I'm puzzled [yeah, that is my normal state]. Did the BIOS actually > read a different image? Or, did the "old" GRUB fail to chainload, even > though there is no visible sign during a normal boot that the old GRUB > is still around? If the latter, should I consider writing the GRUB-2 > image onto the MBR again? Or, would that be just asking for trouble? upgrade-from-grub-legacy currently runs grub-install '(hd0)' and which disk hd0 is, is defined in your /boot/grub/device.map Robert and me are thinking how we solve that problem at best. If you tell grub-pc that you want to chainload it from grub-legacy then it runs the update-grub from grub-legacy to create the menuentry for it and so updates the kernel list for it too. Maybe you just had grub-legacy in MBR of 2 (or more) of your disks installed and then BIOS just loaded not the one you thought it would but the other one. I don't see where grub2 would have a problem. If your BIOS changes the disk order then you have to make sure that on this disk the right grub is installed to MBR. -- Felix Zielcke