Bug 478598

Summary: nash doesn't understand 'relatime' mount option
Product: [Fedora] Fedora Reporter: David Zeuthen <davidz>
Component: mkinitrdAssignee: Peter Jones <pjones>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 10CC: dcantrell, hdegoede, katzj, mclasen, pjones, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-01 21:07:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Zeuthen 2009-01-01 20:26:08 UTC
This bug started appearing when mkinitrd was updated to version 6.0.71-3.fc10.x86_64.

When booting, I get "mount: unable to mount /dev/root as ext3: Invalid Argument" on the console. Removing the quiet option doesn't give a lot of extra information.

FWIW, I saw this with kernel-2.6.27.9-159.fc10.x86_64 when I updated the system. Using the new initrd on an old kernel (kernel-2.6.27.7-134.fc10.x86_64) produced the same result as well.

# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Thu Dec 18 14:37:39 2008
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or vol_id(8) for more info
#
UUID=a077bf66-f6c8-4fe0-a83b-59d53cdb3efe /                       ext3    defaults,relatime        1 1
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0

I don't have any swap set up. This is a Lenovo X61 system.


Suggest to pull the mkinitrd update from the updates repo until this is resolved.

Comment 1 David Zeuthen 2009-01-01 20:34:07 UTC
Turns out this is caused by the 'relatime' option which I added some time before installing a kernel. Still, it's pretty bad that nash can't handle this, even worse that the error message isn't more helpful (EINVAL can mean pretty much *anything*).

Also, at least the kernel and the standard mount command honors 'relatime'

# cat /proc/mounts |grep /dev/root
/dev/root / ext3 rw,errors=continue,user_xattr,acl,data=ordered 0 0

# mount -oremount,relatime /

# cat /proc/mounts |grep /dev/root
/dev/root / ext3 rw,relatime,errors=continue,user_xattr,acl,data=ordered 0 0

Comment 2 David Zeuthen 2009-01-01 20:35:57 UTC
Also, ideally, crucial input files like /etc/fstab should be validated / sanity checked by mkinitrd before being put in the initramfs.

Comment 3 Warren Togami 2009-01-01 21:07:46 UTC

*** This bug has been marked as a duplicate of bug 430280 ***