xfs
[Top] [All Lists]

Re: grub disaster with FC4 & XFS

To: linux-xfs@xxxxxxxxxxx
Subject: Re: grub disaster with FC4 & XFS
From: Net Llama! <netllama@xxxxxxxxx>
Date: Mon, 04 Jul 2005 13:32:21 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:organization:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=qqEyACQicvhs8b8gMiMx1cT9E6vn1LsQAPH6Ok/fOWf9toJ1w7s3p1kgKiiw/aXVlMfmje9YCbxS28RfxswKkC0rTtLX/0W3yoI/SDE3WeeuJKGtAK5OBUrSjemx9TtjX1UY+4uWHXCZkkqvAh0b8P7Y+NN88X/NrabLwRmQgq4=
In-reply-to: <20050704202255.GF25980@plato.local.lan>
Organization: HAL V
References: <42C93190.8070804@moving-picture.com> <20050704202255.GF25980@plato.local.lan>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.2 (X11/20050317)
On 07/04/2005 01:22 PM, Ethan Benson wrote:
On Mon, Jul 04, 2005 at 01:54:40PM +0100, James Pearson wrote:
>Not sure if anyone is aware of this mess of a bug:
>https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=160444
>
>Basically grub pukes all over itself when trying to interact with XFS >filesystems, resulting in an unbootable, or barely bootable FC4 >installation.
>
>Any gurus here know of a solution?
>
>Yes, i know, this is really a FC/grub issue, but since its specific to >XFS, i thought someone might have run into it and found a workaround >and/or fix.


Not sure if this is connected, but the FC installer (anaconda) uses the code in 'booty' to install the bootloader - this has a work around for grub on XFS which uses xfs_freeze - see the thread that starts with:

http://marc.theaimsgroup.com/?l=linux-xfs&m=108009684613605&w=2

which is a kludge, and an unecessary one at that.

if you install grub as followes it does not modify XFS filesystems via
raw devices, but instead through the standard unix interfaces:

embed /boot/grub/xfs_stage1_5 (hd0)

xx sectors embedded.

install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0) (hd0)1+xx p 
(hd0,1)/boot/grub/stage2 /etc/grub.conf

note the xx in the first message is the value you need to use in the
(hd0)1+xx part above.  the last argument is the path to the config
file you can have that where you like.

what should be done is rewrite the setup command in grub to perform
the above, instead of the broken method it currently uses.


Actually, the command you noted above is what the FC4 installer was trying to do when grub went south.


I did finally manage to fix this mess by booting with knoppix, purging everything in /boot/grub, repopulating with the templates that ship with grub, and running 'setup (hd0)' again. I have no clue why all of that was neccesary.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman                                    netllama@xxxxxxxxxxxxx
LlamaLand                               http://netllama.linux-sxs.org

 13:30:01 up 83 days, 23:49,  1 user,  load average: 0.35, 0.33, 0.19


<Prev in Thread] Current Thread [Next in Thread>