Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MGeXO-000463-2d for mharc-grub-devel@gnu.org; Tue, 16 Jun 2009 15:41:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGeXM-00045g-Og for grub-devel@gnu.org; Tue, 16 Jun 2009 15:41:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGeXH-00043R-Si for grub-devel@gnu.org; Tue, 16 Jun 2009 15:41:39 -0400 Received: from [199.232.76.173] (port=59141 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGeXH-00043N-BG for grub-devel@gnu.org; Tue, 16 Jun 2009 15:41:35 -0400 Received: from mail-bw0-f226.google.com ([209.85.218.226]:48648) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MGeXG-0004YY-Ii for grub-devel@gnu.org; Tue, 16 Jun 2009 15:41:35 -0400 Received: by bwz26 with SMTP id 26so18968bwz.42 for ; Tue, 16 Jun 2009 12:41:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=YSwOCwlJXbv9O971PgDcuXunKeRhyuE5aOuV6M9BCU8=; b=LAGWcAiOV3NB6Snlulcrsy1aAeaeubT/rPQwNBowbA9UdNH0f/RMaZAIZwtBeEFbYy Mvi+21NTO5d9+jI91j8EUwqyvOlg87f71dTjo2lbGf5fZOkATL3XoDT61dSR+7UIb5fV UFZO+H3P+uXfyr89/0S0LkSGUNWuXd9QOwKfo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=XFh8tLSdGleRnDRLgpM07Td9qboDgPsrbZqNiy5cT34QlNgj9y+9EXknBvcRHNsMei ED2Eoyt8izR++DxC/ySl9Mhfy3r9EBmUaivv6f9m3tPmgvjti2/N+jalBmGQpEEASbhY Yefw+SWv3bBTKHM7R7hRdQryH39QJeaX0wq7M= MIME-Version: 1.0 Received: by 10.204.55.140 with SMTP id u12mr8524634bkg.127.1245181292168; Tue, 16 Jun 2009 12:41:32 -0700 (PDT) In-Reply-To: <4A37F4D1.5030502@earthlink.net> References: <4A37E264.4060501@cox.net> <4A37F4D1.5030502@earthlink.net> Date: Tue, 16 Jun 2009 21:41:30 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: multipart/alternative; boundary=001636c924d99a0974046c7c5c71 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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 19:41:41 -0000 --001636c924d99a0974046c7c5c71 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Tue, Jun 16, 2009 at 9:38 PM, BandiPat wrote: > David A. Cobb wrote: > >> 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? >> >> TIA >> >> _______________________________________________ >> > > David, I'll just add this to what Felix has told you, because it does > indeed sound like you had the old grub-legacy installed to the MBR of more > than one of your drives. > > Since I've been playing with Grub2 SVN, I've come to find that the constant > writing to the MBR can go awry, causing strange things with the hard drive. > At one point, I thought my drive was bad, but turned out the MBR was just > confused. What I do now is to clear out the MBR every other update to be > sure I get a clean install of the latest Grub2. > > Here's what you do from a root shell: > dd if=/dev/zero of=/dev/sdx bs=446 count=1 > (the "x" is the letter of your installed drive, "a" "b" ) > Also, for the "bs" number, never use more than "446" as anything larger > will overwrite your partition table of the drive, pretty much rendering it > useless without any partitions. > 440, not 446, otherwise you destroy serial number of the drive > > What it does is write zero's to the MBR of the drive, overwriting any info > there. Then you can run your "grub-install /dev/sdx" to install Grub2 to > your MBR of the booting drive. > > Hopefully helpful, > Pat > > > -- > ---Zenwalk v6.0--Linux 2.6.28--- > Registered Linux User #225206 > "Ever tried Zen computing?" http://www.zenwalk.org > > > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > -- Regards Vladimir 'phcoder' Serbinenko --001636c924d99a0974046c7c5c71 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Tue, Jun 16, 2009 at 9:38 PM, BandiPa= t <magicp= age91@earthlink.net> wrote:
David A. Cobb wrote:
=A0This 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" ver= sion 1.96+
GRUB-2 was installed after having GRUB 0.9x running for years. =A0The insta= llation involved letting GRUB chainload GRUB-2 until I saw it was ready for= primetime, then running an upgrade script. =A0I mention that because it= 9;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. =A0I 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. =A0But,= it included versions of the kernel that were not installed until after I s= witched to GRUB-2. =A0Actually, the only thing I'm sure was "wrong= " was the lack of a colorful splash image. =A0Well, no, actually, I= 9;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. =A0That wouldn't explain how = a GRUB 0.9x image was found. =A0Anyway, I re-installed the package and (re)= ran grub-install. =A0And rebooted. =A0And got the same screen.

So, eliminate the one variable I knew was changed: I reset the BIOS Setup t= o do automatic disk detection. =A0Voilla!!
I'm back with the GRUB-2 splash screen, and everything is cool.

But, I'm puzzled [yeah, that is my normal state]. =A0Did the BIOS actua= lly read a different image? =A0Or, did the "old" GRUB fail to cha= inload, even though there is no visible sign during a normal boot that the = old GRUB is still around? =A0If the latter, should I consider writing the G= RUB-2 image onto the MBR again? =A0Or, would that be just asking for troubl= e?

TIA

_______________________________________________

David, I'll just add this to what Felix has told you, because it does i= ndeed sound like you had the old grub-legacy installed to the MBR of more t= han one of your drives.

Since I've been playing with Grub2 SVN, I've come to find that the = constant writing to the MBR can go awry, causing strange things with the ha= rd drive. =A0At one point, I thought my drive was bad, but turned out the M= BR was just confused. =A0What I do now is to clear out the MBR every other = update to be sure I get a clean install of the latest Grub2.

Here's what you do from a root shell:
dd if=3D/dev/zero of=3D/dev/sdx bs=3D446 count=3D1
(the "x" is the letter of your installed drive, "a" &qu= ot;b" )
Also, for the "bs" number, never use more than "446" as= anything larger will overwrite your partition table of the drive, pretty m= uch rendering it useless without any partitions.
440, not 446, otherwise you destroy serial number of the = drive

What it does is write zero's to the MBR of the drive, overwriting any i= nfo there. =A0Then you can run your "grub-install /dev/sdx" to in= stall Grub2 to your MBR of the booting drive.

Hopefully helpful,
Pat


--
=A0 =A0 =A0 ---Zenwalk v6.0--Linux 2.6.28---
=A0 =A0 =A0 =A0Registered Linux User #225206
"Ever tried Zen computing?" =A0http://www.zenwalk.org





_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org<= /a>
http://lists.gnu.org/mailman/listinfo/grub-devel



--
Regards
= Vladimir 'phcoder' Serbinenko
--001636c924d99a0974046c7c5c71--