[Bug 815322] New: device of "$PWD" not in output of mount if on 'root' (/dev/rootfs not in mount output)
https://bugzilla.novell.com/show_bug.cgi?id=815322 https://bugzilla.novell.com/show_bug.cgi?id=815322#c0 Summary: device of "$PWD" not in output of mount if on 'root' (/dev/rootfs not in mount output) Classification: openSUSE Product: openSUSE Factory Version: 13.1 Milestone 0 Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: suse@tlinx.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.28) Gecko/20120306 Firefox/3.6.28 I have a simple util program that has worked until recently -- I'm not sure if it went into 12.3 (I think so), or if it is in factory. These 3 lines demonstrate the problem: dev=$(df /bin |tail -1|cut -d\ -f1) mountline=$(mount|grep "$dev"); [[ -z ${mountline:-} ]] && mountline=ERROR echo "mounted with /etc/fstab line: '$mountline'" For some reason, the devices shown by 'mount' don't seem to be the devices shown in 'df' nor in /etc/fstab, yet both are documented to use /etc/mtab. Reproducible: Always Steps to Reproduce: 1. Try above script lines -- note that dev for root = /dev/root 2. But note that output of mount doesn't show /dev/root -- (only rootfs). 3. mount doesn't recognize 'rootfs' as a block device or special type: # mount rootfs /mnt mount: special device rootfs does not exist Ishtar:/bin# mount rootfs /mnt -t rootfs mount: wrong fs type, bad option, bad superblock on rootfs, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so Actual Results: mount claims root is on a non-existent device. Expected Results: mount should list values in mtab that show existing devices, not non-existent device aliases. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=815322
https://bugzilla.novell.com/show_bug.cgi?id=815322#c
Xiaolong Li
https://bugzilla.novell.com/show_bug.cgi?id=815322
https://bugzilla.novell.com/show_bug.cgi?id=815322#c1
Petr Uzel
https://bugzilla.novell.com/show_bug.cgi?id=815322
https://bugzilla.novell.com/show_bug.cgi?id=815322#c2
--- Comment #2 from L. A. Walsh
https://bugzilla.novell.com/show_bug.cgi?id=815322
https://bugzilla.novell.com/show_bug.cgi?id=815322#c3
--- Comment #3 from L. A. Walsh
https://bugzilla.novell.com/show_bug.cgi?id=815322
https://bugzilla.novell.com/show_bug.cgi?id=815322#c4
--- Comment #4 from L. A. Walsh
https://bugzilla.novell.com/show_bug.cgi?id=815322
https://bugzilla.novell.com/show_bug.cgi?id=815322#c5
--- Comment #5 from L. A. Walsh
https://bugzilla.novell.com/show_bug.cgi?id=815322
https://bugzilla.novell.com/show_bug.cgi?id=815322#c6
L. A. Walsh
https://bugzilla.novell.com/show_bug.cgi?id=815322
https://bugzilla.novell.com/show_bug.cgi?id=815322#c7
--- Comment #7 from L. A. Walsh
https://bugzilla.novell.com/show_bug.cgi?id=815322
https://bugzilla.novell.com/show_bug.cgi?id=815322#c8
Petr Uzel
I confirm that /etc/mtab CANNOT be a symlink to /proc/self/mounts -- it needs to be writable or mount can't write to it when you use: mount -f --no-canonicalize -o remount -a
No, regular mtab is a hell (chasing inconsistencies between mtab and /proc/mounts was no fun) which can be avoided with recent version of mount. One of the good things about systemd is that is it issues a warning if /etc/mtab is not a symlink: http://cgit.freedesktop.org/systemd/systemd/tree/README http://lists.opensuse.org/opensuse-factory/2011-01/msg00130.html Please check if making /etc/mtab symlink to /proc/self/mounts does make any difference. Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=815322
https://bugzilla.novell.com/show_bug.cgi?id=815322#c9
L. A. Walsh
https://bugzilla.novell.com/show_bug.cgi?id=815322
https://bugzilla.novell.com/show_bug.cgi?id=815322#c10
--- Comment #10 from L. A. Walsh
https://bugzilla.novell.com/show_bug.cgi?id=815322
https://bugzilla.novell.com/show_bug.cgi?id=815322#c
Petr Uzel
head /proc/self/mounts rootfs / rootfs rw 0 0 /dev/root / xfs rw,nodiratime,relatime,attr2,inode64,noquota 0 0 devtmpfs /dev devtmpfs rw,relatime,size=24708844k,nr_inodes=6177211,mode=755 0 0 /dev/sdc6 /usr xfs rw,nodiratime,relatime,swalloc,attr2,largeio,inode64,allocsize=64k,logbsize=256k,noquota 0 0
mount -l /dev/sdc1 on / type xfs (rw,nodiratime,relatime,attr2,inode64,noquota) [Root] devtmpfs on /dev type devtmpfs (rw,relatime,size=24708844k,nr_inodes=6177211,mode=755) /dev/sdc6 on /usr type xfs (rw,nodiratime,relatime,swalloc,attr2,largeio,inode64,allocsize=64k,logbsize=256k,noquota) [Usr]
https://bugzilla.novell.com/show_bug.cgi?id=815322
https://bugzilla.novell.com/show_bug.cgi?id=815322#c11
--- Comment #11 from L. A. Walsh
https://bugzilla.novell.com/show_bug.cgi?id=815322
https://bugzilla.novell.com/show_bug.cgi?id=815322#c13
--- Comment #13 from L. A. Walsh
http://bugzilla.novell.com/show_bug.cgi?id=815322
http://bugzilla.novell.com/show_bug.cgi?id=815322#c14
Tomáš Chvátal
participants (1)
-
bugzilla_noreply@novell.com