public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* grub fails boot after update
@ 2008-07-01 15:15 Jan Engelhardt
  2008-07-01 15:55 ` Christoph Hellwig
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Engelhardt @ 2008-07-01 15:15 UTC (permalink / raw)
  To: xfs



>From Novell Bugzilla, I gather that XFS has a serious problem with grub. 
Since I'd like to keep XFS for the time being, is there any way to fix 
this issue, or make dead sure that a given file is on disk?
Like ioctl(fd, XFS_FLUSH_I_MEAN_IT)?


---------- Forwarded message ----------
https://bugzilla.novell.com/show_bug.cgi?id=223773

--- Comment #39  2008-07-01 08:44:49 MDT ---
I agree with comment #37: XFS really does suck, especially when it comes to
booting Linux on a PC. Fortunately we do not support it any more for new
installations, an ext2 /boot partition is highly recommended.

The problem is that with XFS, sync(2) returns, but the data isn't synced.
The first time yast calls grub install, grub does not find the new stage1.5,
because it is not on the disk yet, despite a successful sync; thus it modifies
stage2 to do the job. On the second invocation, stage1.5 is found and
installed, but stage2 already is modified.

So once again this isn't a grub bug, but an XFS bug with FS semantics.

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: grub fails boot after update
@ 2008-07-05 20:11 Martin Steigerwald
  0 siblings, 0 replies; 7+ messages in thread
From: Martin Steigerwald @ 2008-07-05 20:11 UTC (permalink / raw)
  To: xfs


Hi!

Am Donnerstag 03 Juli 2008 schrieb Jason White:
> On Wed, Jul 02, 2008 at 10:54:38PM -0500, Eric Sandeen wrote:
> > This really is grub that is busted, but I'd still just suggest using
> > ext3 to (mostly) work around the breakage for the foreseeable future.
> >
> > The other option is to teach grub to always do its io via the
> > filesystem not the block device while the fs is mounted (IIRC there
> > are various & sundry non-intuitive commands which actually nudge grub
> > towards or away from this desired behavior... --with-stage2=/path is
> > one I think, skipping the "verification" phase (i.e. trying to read
> > the block dev while mounted) is another)
>
> Does grub 2 (still in development when last I checked) improve on this
> situation?
>
> I managed to get Grub 1 installed on machines with XFS root file
> systems by running the install from within the grub "shell" environment
> rather than using grub-install. Maybe this skips the checks that
> attempt to read the block device directly. I also recall that
> grub-install failed.

I use GRUB 1 on XFS ever since. But I also used the GRUB shell directly to 
write it. grub-install doesn't work reliable.

I even use the functionality to save the last booted menu entry 
into /boot/grub/default without a problem.

I agree, reading or writing a mounted filesystem directly is not a good 
idea.

Ciao,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-07-05 20:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-01 15:15 grub fails boot after update Jan Engelhardt
2008-07-01 15:55 ` Christoph Hellwig
2008-07-03  3:54   ` Eric Sandeen
2008-07-03  4:47     ` Jason White
2008-07-03 14:49       ` Eric Sandeen
2008-07-05 20:11       ` Martin Steigerwald
  -- strict thread matches above, loose matches on Subject: below --
2008-07-05 20:11 Martin Steigerwald

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox