Red Hat Bugzilla – Bug 430280
mkinitrd can't deal with the "relatime" mount option
Last modified: 2009-01-05 09:35:31 EST
Description of problem:
After upgrading to the most recent kernel, I'm no longer able to boot my
system. It has a XFS root and an ext3 /boot partition. Disk layout is installer
default for XFS (XFS root, an ext3 /boot partition, in a VolGroup00).
Version-Release number of selected component (if applicable):
This happens after upgrading to kernel 188.8.131.52-107. The previous version ( -
85 IIRC) works fine.
Steps to Reproduce:
1. upgrade kernel
Booting hangs after (typed from screen so may not be entirely accurate):
Red Hat nash starting
Reading all physical volumes
Found volume group VolGroup00 using lvm2
2 logical volumes now active
mount: error mounting /dev/root on /sysroot as xfs: Invalid argument
setuproot: moving /dev failed:
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
switchroot: mount failed: No such file or directory
Please let me know if I can assist in any way in solving this.
Please attach the initrd from kernel 184.108.40.206-107 to this bugzilla.
Did you add "relatime" to any filesystem mount options recently??
Created attachment 293012 [details]
I did add relatime indeed. When adding it, I was wondering if it was a
supported mount option, but it seemed to work and I paid no further attention
After reading your comment, I have changed it to noatime and regenerated the
initrd, and all is well again. Thanks!
I added a note about this problem to
But really, mkinitrd should just strip this option when it builds the initrd...
just changing the state to ASSIGNED in keeping with triage guidelines :)
How can I regenerate the initrd in a situation like this, if I all I can do is boot a rescue disk?
This message is a reminder that Fedora 8 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 8. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora
'version' of '8'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version prior to Fedora 8's end of life.
Bug Reporter: Thank you for reporting this issue and we are sorry that
we may not be able to fix it before Fedora 8 is end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora please change the 'version' of this
bug to the applicable version. If you are unable to change the version,
please add a comment here and someone will do it for you.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
The process we are following is described here:
I hit this in Fedora 9 with ext3 and mkinitrd-6.0.52-2.fc9.i386
Can someone update the bug version to 9?
This problem persists in Fedora 10, I had set relatime on my root file system, and when I tried booting after the recent kernel update, it halted with the "mount: error mounting /dev/root on /sysroot ..." error message.
By the time I'd found this explanation, I had removed the new kernel. Installing the new kernel again after removing relatime in /etc/fstab seems to have solved the problem.
I don't understand the "Unsupported mount options like "relatime" in /etc/fstab can cause problems. Removing any references to the "relatime" option and rebuilding the initrd will fix this." explanation on the referenced KernelCommonProblems web page, however.
The "relatime" option is clearly documented in the mount(8) man page, and there's nothing there, nor the fstab man page, to suggest that setting it will cause your system to be unbootable after a kernel upgrade, nor that it is "unsupported".
I noticed exactly the same as in Comment #11 with ext.
I can boot with relatime option for / in fstab, but I need the defaults (only) mount option during kernel installs.
My situation is exactly as Ronald describes it in the last paragraph of #12: No problems running with relatime, can't boot a kernel if it is installed with those options in /etc/fstab, but no problem if fstab is "cleaned" before kernel install, and then restored when install has finished.
There is a patch to add relatime support in bug 296361 that has been there since F7 days (Oct 2007). While I understand that relatime is the default now, it would be nice if mkinitrd/nash would handle this valid option correctly -- it eliminates the surprise factor when new users start exploring their options towards power savings, and make the inevitable "mistakes" -- even if this isn't so much a mistake as being redundant.
Actually, looking at 'mount' output and 'cat /proc/mounts' does not seem to indicate that relatime is actually the default for F10 -- I can confirm that it is for F9, as it shows in /proc/mounts. Inspection of the kernel SRPM for the mount system call, and for the mount program in util-linux-ng does not show it setting relatime unless explicitly listed in the option string, as far as I can tell.
So, this is a real problem for those wishing to avoid writes to their storage devices, especially on mobile platforms.
(In reply to comment #15)
> Actually, looking at 'mount' output and 'cat /proc/mounts' does not seem to
> indicate that relatime is actually the default for F10 -- I can confirm that it
> is for F9, as it shows in /proc/mounts. Inspection of the kernel SRPM for the
> mount system call, and for the mount program in util-linux-ng does not show it
> setting relatime unless explicitly listed in the option string, as far as I can
> So, this is a real problem for those wishing to avoid writes to their storage
> devices, especially on mobile platforms.
Which SRPM did you check?
Last I checked, Fedora 9 had the linux-2.6-smarter-relatime.patch, and that turns relatime on by default.
But "mount" should display relatime and it doesn't. And thanks for the tip on /proc/mounts, relatime shows up there for me too!
Also a similar bug has been closed wontfix, bug 296361.
(In reply to comment #16)
> Which SRPM did you check?
> Last I checked, Fedora 9 had the linux-2.6-smarter-relatime.patch, and that
> turns relatime on by default.
kernel-220.127.116.11-134.fc10, as prepped by 'rpmbuild -bp' It's possible the smarter-relatime patch got pushed upstream, but comparing the changes fs/namespace.c from that patch to the F10 kernel source shows that it seems to have been dropped.
> But "mount" should display relatime and it doesn't. And thanks for the tip on
> /proc/mounts, relatime shows up there for me too!
> Also a similar bug has been closed wontfix, bug 296361.
Right -- that's the one that has the patches to add support for relatime to nash.
Looks like F10 dropped the linux-2.6-smarter-relatime.patch from the kernel.spec file (revision 1.979, Thu Sep 25 18:17:39 2008 UTC at the CVS).
Why was this patch dropped? I searched trough then upstream kernel sources and it looks like the patch was not merged there.
*** Bug 478598 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 296361 ***