Mailinglist Archive: opensuse (1473 mails)

< Previous Next >
Re: [opensuse] Re: grub no longer being maintained? so Suse drops support for XFS boot?
  • From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
  • Date: Sun, 14 Jun 2009 19:44:58 +0200 (CEST)
  • Message-id: <alpine.LSU.2.00.0906141936150.4094@xxxxxxxxxxxxxxxx>
Hash: SHA1

On Sunday, 2009-06-14 at 19:13 +0200, jdd wrote:

Both hdb3 and hdb5 start on the same track - so if you put anything on
the start of hdb3 it could overwrite hdb5. Unless...

same track, but same sector?

Yes, that's what I wrote later.

/dev/sda2 * 104872320 976768064 435947872+ f W95 Etendu (LBA)
/dev/sda5 104872383 109081349 2104483+ 82 Linux swap / Solaris

you see, boot is on extended, first swap sector (part5) is 104872383
when extended (part 2) begins on 104872320

If I understand well (no sure :-(), only stage 1 have to be in fixed
position id est here on a sector, may be extended partition definition
sector -

-rw-r--r-- 1 root root 512 déc. 3 2008 stage1

stage 1 is less than one sector size.

After that grub goes directly to stage 1.5 XF (-rw-r--r-- 1 root root
9544 déc. 3 2008 xfs_stage1_5)

stage 1 goes to the boot sector, and stage 1.5 goes, I understand, to the sector right behind, ie, from 104872320 to 104872383. It is that stage wich tells grub how to read an xfs partition, and thus, stage 2 can be on xfs with the kernel and the rest.

the debian link I quoted
( seems to
say the problem is to have the XFS file system write really the file
to the disk during the grub install phase.

Posibly. I read somewhere that they both want to write to the same sector, or rather, that xfs does not allocate some empty space at the begining of the partition where S1.5 goes.

It is also possible to have grub on MBR while boot is XFS, I think - but current preferred practice is to leave MBR alone. The problem is having grub on an XFS partition (stage 1.5, that is), and having that partition marked bootable. And working, of course. If grub goes instead to the MBR there is no problem, I think. Well, not /this/ problem, I mean.

- -- Cheers,
Carlos E. R.

Version: GnuPG v2.0.9 (GNU/Linux)

< Previous Next >