Bug 1536 - grub error after install on a XFS root filesystem
Summary: grub error after install on a XFS root filesystem
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2011-06-03 00:05 CEST by Andre Baer
Modified: 2012-01-19 18:23 CET (History)
4 users (show)

See Also:
Source RPM: drakx-installer-stage2
CVE:
Status comment:


Attachments
Here is my report.bug file (119.02 KB, application/x-gzip)
2011-10-19 18:17 CEST, Andre Baer
Details

Description Andre Baer 2011-06-03 00:05:45 CEST
The System installs very fine on my Asus Laptop and on a normal PC.
The filesystem for the root-partition is XFS. After installing the system it won't boot after restarting the machine because grub gives an error
==> error 18 I think..

Then I have to use the installmedium in rescuemode to reinstall the bootloader and MAGEIA starts :)

Ok I know that Mageia is not Mandriva but on the Mandriva side bevor 2010.2 there was the same problem.
Andre Baer 2011-06-03 00:08:34 CEST

Summary: grub error => grub error after install

Andre Baer 2011-06-09 19:18:24 CEST

Summary: grub error after install => grub error after install on a XFS root filesystem

Comment 1 Dave Hodgins 2011-06-09 20:18:28 CEST
http://www.mail-archive.com/bug-grub@gnu.org/msg10770.html

Grub should not be installed in an xfs filesystem.

In my opinion, the installer should be changed to detect the attempt,
and prevent/reject it.

CC: (none) => davidwhodgins

Comment 2 Andre Baer 2011-06-09 20:42:46 CEST
Sry I forgot to tell that grub is installed in the MBR and my / is on XFS.
Comment 3 Marja Van Waes 2011-10-17 08:12:50 CEST
@ André

We're waiting for this bug to be reproduced. 

In MDV, it was the same: installing grub while installing MDV didn't work well, but afterwards, in rescuemode, you could install it properly? 

Do you have a link to the MDV bugreport?

Keywords: (none) => NEEDINFO
CC: (none) => marja11, thierry.vignaud
Source RPM: (none) => drakx-installer-stage2

Comment 4 Dave Hodgins 2011-10-17 23:51:08 CEST
Found it, resolved as won't fix, as the xfs module and jfs would take up
too much room on the iso. It states jfs.ko is 160K and xfs is 470K

On my current system, jfs.ko.gz is 101K and xfs.ko.gz is 350K.

This seems strange to me, as the modules obviously exist in the kernel
that's installed onto the system, or reinstalling the boot loader
from rescue mode wouldn't fix the problem.

What's different in the installation of the boot loader during the
install, compared to rescue mode?
Comment 5 andré blais 2011-10-19 01:18:52 CEST
Maybe it's related to the memory used by the installer, free in the rescue mode ?
Or maybe the installer just loads certain standard modules, and rescue mode loads those actually used on the disk, avoiding those not used ?

A workaround would be to reformat the root partition to ext4, which has most if not all of the advantages of xfs (journalised, extents).
And is sure to be always available.
Or a separate boot partition could be used, again formatted as ext4.

CC: (none) => andre999mga

Comment 6 Marja Van Waes 2011-10-19 08:40:11 CEST
@ andré blais: thanks, if you hadn't reacted, I wouldn't have found this:

@ andré baer: Dave was right. Wikipedia is clearer to me than the link he gave:

In Wikipedia it says:

XFS was first merged into mainline Linux in version 2.4, making it almost universally available on Linux systems. Installation programs for the Arch, Debian, Fedora, openSUSE, Gentoo, Kate OS, Mandriva, Slackware, Ubuntu, VectorLinux and Zenwalk Linux distributions all offer XFS as a choice of filesystem, but few of these let the user create XFS for the /boot filesystems due to deficiencies and unpredictable behavior in GRUB, often the default bootloader.

If those distro's couldn't get this to work, chances are minimal we will manage.

Also taking into account that we are short on developers, I'm changing this bug report into a request to give a warning when choosing for XFS during install.

Why did you choose XFS?

Keywords: NEEDINFO => USABILITY
Summary: grub error after install on a XFS root filesystem => Give warning when a user chooses XFS for partition containing /boot (or block this choice?)

Comment 7 Andre Baer 2011-10-19 09:27:19 CEST
Hi sry for my late answer.

My bootloader is in the MBR and with Slackware and LILO (all versions from 10.2), SuSe and Mandriva 2011 it works to use a complete XFS Filesystem without a special /boot partition (I do not have a /boot partition)

After reinstalling the bootloader from rescuemode (Mageia 1, Mandriva 2007-2010.2) all is ok.

I choosed the XFS filesystem because it was the fastet filesystem  on my old machine and it works great.

Sometimes I used the Ext4 on my new Computer but it is terrible.
Corrupted filesystem and it is slower on normal work.
I know that Ext4 is in some cases fast but I use my Computer only for desktop-use and don't need the features for server...
Comment 8 Marja Van Waes 2011-10-19 13:07:42 CEST
@ André Baer

Thx for explaining why you prefer XFS.

I removed "(or block this choice?)" from the summary

Assignee: bugsquad => thierry.vignaud
Summary: Give warning when a user chooses XFS for partition containing /boot (or block this choice?) => Give warning when a user chooses XFS for partition containing /boot

Comment 9 Andre Baer 2011-10-19 13:14:34 CEST
Sry do you mean to remove the choice for a XFS / partition in the installer?

A popup with informations about XFS as a / partition were good :)
Comment 10 Marja Van Waes 2011-10-19 13:40:36 CEST
(In reply to comment #9)
> Sry do you mean to remove the choice for a XFS / partition in the installer?
>
No, not at all, that's why I removed that option from the summary after you explained why you use XFS
 
> A popup with informations about XFS as a / partition were good :)

Exactly, I agree completely, therefore the summary now only says: "Give warning when a user chooses XFS for partition containing /boot"
Comment 11 Andre Baer 2011-10-19 14:02:45 CEST
Ok thank your for helping / adding this information to the installer.
Comment 12 Thierry Vignaud 2011-10-19 16:37:46 CEST
Giving warnings "hey, this may not work" isn't user friendly.

Pixel fixed it long ago: https://qa.mandriva.com/show_bug.cgi?id=33267
We should try to understand why it doesn't work anymore.
We may just not have xfs_freeze anymore

Please attach your /root/drakx/report.bug.gz

Keywords: USABILITY => NEEDINFO
Summary: Give warning when a user chooses XFS for partition containing /boot => grub error after install on a XFS root filesystem

Comment 13 Andre Baer 2011-10-19 18:16:09 CEST
No thats not very user friendly but I can't fix this problem.
The installer is not hanging like in the old Mandriva bug.
The only thing is the missing bootloader after install.

I'm currently running Mandriva 2011 for testing/playing but I have installed
Mageia in VirtualBox with the same problem.

So I mounted the partitions in rescuemode to copy /root/drakx
after that I user rescue-gui to reinstall the bootloader and it works now.

I hope the report.bug.gz is ok.
Comment 14 Andre Baer 2011-10-19 18:17:45 CEST
Created attachment 979 [details]
Here is my report.bug file

This is from my VirtualBox installation.
Comment 15 Thierry Vignaud 2011-10-20 10:37:57 CEST
That shows two things:
- it failed to run xfs_freeze
- grub then complains it misses some files
Comment 16 Andre Baer 2011-10-21 10:03:34 CEST
Ok

is it possible to fix this bug?
Comment 17 Thierry Vignaud 2012-01-06 01:12:53 CET
Installer was actually lacking xfs_freeze, thus failing to run it.
Could you try installing Mageia Cauldron from your favorite mirror?
It should work better.
Comment 18 Andre Baer 2012-01-08 09:40:35 CET
Thx I will try it in the next 2-3 weeks on VirtualBox
because I need a faster connection than 3g.
Comment 19 Thierry Vignaud 2012-01-19 18:23:03 CET
Works for me

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.