Red Hat Bugzilla – Bug 52634
mount doesn't always show the correct fs type
Last modified: 2007-04-18 12:36:37 EDT
Description of Problem:
Mount usually shows the fstype in /etc/fstab, not the actual fs type from
/proc/mounts, for the root filesystem.
This is a serious problem because there is a common failure mode where
people think they have upgraded to ext3 but haven't built a new initrd, so
the root fs is actually loaded as ext2 despite "mount" claiming that it is
mounted as ext3.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Convert to ext3 on root filesystem (with ext3 in /etc/fstab)
2. Boot a kernel without an initrd (so we don't have an ext3 module loaded)
The kernel loads the root filesystem as ext2, not ext3, as expected.
3. Run "mount" to display mounted filesystems.
[sct@dax] ~ $ mount
/dev/hdc1 on / type ext3 (rw,usrquota,grpquota)
but in actual fact it is an ext2 filesystem:
[sct@dax] ~ $ cat /proc/mounts
/dev/root / ext2 rw 0 0
mount should display what IS mounted, not just what it thinks OUGHT to be
What does your /etc/mtab say?
*** This bug has been marked as a duplicate of 52299 ***