Doesn't place filesystem type in /etc/mtab

Bug #8733 reported by Scott James Remnant (Canonical)
This bug report is a duplicate of:  Bug #8585: root filesystem type is unknown. Edit Remove
4
Affects Status Importance Assigned to Milestone
sysvinit (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

At least when using XFS, the filesystem type doesn't end up in /etc/mtab,
instead you get "unknown", e.g.:

/dev/hda2 / unknown rw 0 0

I traced this to /etc/init.d/checkroot.sh, specifically this bit that adds the
mtab entry:

if [ "$init_mtab" = yes ]
then
        [ "$roottype" != none ] && mount -f -o $rootopts $fstabroot /
        [ -n "$devfs" ] && mount -f $devfs
        . /etc/init.d/mountvirtfs
fi

It needs '-t $roottype' added before the '$fstabroot' bit ... that way mount
knows what file system type to add to mtab.

Although this seems superficial, it's actually quite important as without this
information laptop-mode doesn't know how to adjust the filesystem settings and
set the "noatime" bit (ie. you get a non-slumbering drive).

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

This bug has been marked as a duplicate of bug 8585.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.