All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Eric Sandeen <sandeen@sandeen.net>
Cc: linux-xfs@oss.sgi.com, Marcos Mello <marcosfrm@gmail.com>
Subject: Re: Placing the root partition on an XFS filesystem is not supported
Date: Mon, 6 Feb 2012 11:11:23 +1100	[thread overview]
Message-ID: <20120206001123.GJ6922@dastard> (raw)
In-Reply-To: <4F2C2C69.5020103@sandeen.net>

On Fri, Feb 03, 2012 at 12:50:17PM -0600, Eric Sandeen wrote:
> On 2/3/12 8:39 AM, Marcos Mello wrote:
> > Eric Sandeen <sandeen <at> sandeen.net> writes:
> > 
> >>
> >> In general there is no problem with xfs on a root partition.  However, the
> > installer
> >> may not make it easy or available for you.
> >>
> >> (I never use xfs for /boot though, I don't trust grub enough for that
> > honestly).
> >>
> >> -Eric
> > 
> > Same thing on Fedora 16. Let's hope some day Anaconda will change that.
> 
> F16 prevents it?  I didn't see it in the upstream tree.  That should
> not be so.  :/
> 
> > About GRUB with a XFS /boot the problem was with GRUB Lagacy, wasn't it?
> > Or GRUB2 is still buggy?
> 
> I have no idea, actually.  I delved into grub a bit, it was disturbing
> enough that I have not tried to look at grub2.  :)

Certainly the problem exists with legacy grub - it assumes that it
can write to the first sector or any disk or partition which
overwrites the XFS superblock...

The grub2 manual:

http://www.gnu.org/software/grub/manual/grub.html#BIOS-installation

indicates that if you are using BIOS/MBR based booting, then grub2
still writes to the first sector of the partition that contains the
grub directory to install the stage 1.5 loader.  Indeed:

"boot.img

On PC BIOS systems, this image is the first part of GRUB to start.
It is written to a master boot record (MBR) or to the boot sector of
a partition. Because a PC boot sector is 512 bytes, the size of this
image is exactly 512 bytes. 

The sole function of boot.img is to read the first sector of the
core image from a local disk and jump to it. Because of the size
restriction, boot.img cannot understand any file system structure,
so grub-setup hardcodes the location of the first sector of the core
image into boot.img when installing GRUB. "

IOWs, you have to treat grub2 identically to legacy grub in that it
thinks it owns the first sector of any partition on the disk.
Therefore, you need a separate /boot partition that is not formated
with XFS to be safe.

There's a reason I went back to using LILO....

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2012-02-06  0:11 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-29 12:46 Placing the root partition on an XFS filesystem is not supported Marcos Mello
2012-01-30  9:12 ` Stan Hoeppner
2012-01-30 11:19   ` Marcos Mello
2012-02-02 21:40 ` Eric Sandeen
2012-02-03 14:39   ` Marcos Mello
2012-02-03 18:50     ` Eric Sandeen
2012-02-06  0:11       ` Dave Chinner [this message]
2012-02-06  0:13         ` Eric Sandeen
2012-02-06  1:54           ` Dave Chinner
2012-02-06  1:58             ` Eric Sandeen
2012-02-06  3:29               ` Stan Hoeppner
2012-02-06 10:44               ` Marcos Mello
  -- strict thread matches above, loose matches on Subject: below --
2012-02-04  4:17 Richard Scobie
2012-02-04 14:29 ` Marcos Mello
2012-02-05  0:47   ` Eric Sandeen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120206001123.GJ6922@dastard \
    --to=david@fromorbit.com \
    --cc=linux-xfs@oss.sgi.com \
    --cc=marcosfrm@gmail.com \
    --cc=sandeen@sandeen.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.