Bug 146192

Summary: mount displays different info then is in /proc/mounts
Product: [openSUSE] SUSE Linux 10.1 Reporter: Ladislav Michnovic <lmichnovic>
Component: KernelAssignee: Mads Martin Joergensen <mmj>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: asklein, jason_mack, suse-beta, vetter, werner, wwlinuxengineering
Version: Beta 2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Ladislav Michnovic 2006-01-27 16:24:42 UTC
As root or user I when I type mount, the output is

 mount
/dev/sda1 on / type reiserfs (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)

 cat /proc/mounts
rootfs / rootfs rw 0 0
udev /dev tmpfs rw 0 0
/dev/sda1 / reiserfs rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw 0 0
/dev/sda5 /home ext2 rw,nogrpid 0 0

The last line is not displayed but it is mounted.
Comment 1 Chris L Mason 2006-01-27 17:07:22 UTC
mount reads /etc/mtab, /proc/mounts is maintained by the kernel.  mmj?
Comment 2 Ladislav Michnovic 2006-01-27 18:12:23 UTC
Actually, in /etc/mtab I don't see any line with my home, /dev/sda5. 
But it is mounted by default during boot. Evyrething works, but only I just can't see it in output of mount.
Comment 3 Christian Boltz 2006-01-27 18:19:14 UTC
Maybe this bug is related to bug #146047
Comment 4 Dr. Werner Fink 2006-01-31 09:23:03 UTC
*** Bug 146047 has been marked as a duplicate of this bug. ***
Comment 5 Dr. Werner Fink 2006-01-31 09:24:19 UTC
Whereas df only reads /etc/mtab and does its job, the mount program
also writes /etc/mtab.  Maybe there is a bug in mount its selfs or
the behaviour is caused by an `-n' option in one of the boot scripts
(-n for not updateing /etc/mtab).
Comment 6 Lubos Klokner 2006-02-03 12:07:45 UTC
I think there is something wrong with system startup scripts:
Checking file systems...
fsck 1.38 (30-Jun-2005)
/dev/hda2 is mounted.  e2fsck: Cannot continue, aborting.


fsck.ext2 /dev/hda2 failed (status 0x8). Run manually!
/dev/hda6 is mounted.  e2fsck: Cannot continue, aborting.


fsck.ext3 /dev/hda6 failed (status 0x8). Run manually!
doneSetting up kernel module dependencies (if required)done
Mounting local file systems...
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
mount: /dev/hda2 already mounted or /boot busy
mount: /dev/hda6 already mounted or /home busy
Comment 7 Hendrik Vogelsang 2006-02-03 12:38:59 UTC
*** Bug 146055 has been marked as a duplicate of this bug. ***
Comment 8 Andreas Klein 2006-02-03 13:22:57 UTC
I had also this problem in beta2. Beta3 does not show the problem on my machine, so it seems to be fixed.
Comment 9 Hendrik Vogelsang 2006-02-06 16:36:55 UTC
i consider this fixed in beta3. please reopen if not