Bug 6917 - typing mount command produced huge pile of rubbish by default (not really a bug, but reasonable gripe)
Summary: typing mount command produced huge pile of rubbish by default (not really a b...
Status: RESOLVED WONTFIX
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 2
Hardware: All Linux
Priority: Normal minor
Target Milestone: ---
Assignee: Thomas Backlund
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-31 16:32 CEST by Greg McGee
Modified: 2012-08-01 20:48 CEST (History)
1 user (show)

See Also:
Source RPM: util-linux-2.21.1-1.mga2
CVE:
Status comment:


Attachments

Description Greg McGee 2012-07-31 16:32:45 CEST
Description of problem:
typing "mount" to see the mounted discs should produce (as it always has in the past) a concise list of mounted devices.

It probably should default to the old behaviour.

In MGA2, it now produces: (also with containing package version)
[root@localhost greg]# rpm -qvf /bin/mount
util-linux-2.21.1-1.mga2
[root@localhost greg]# mount
rootfs on / type rootfs (rw)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,relatime,size=1984060k,nr_inodes=496015,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sdc1 on / type ext4 (rw,relatime,user_xattr,barrier=1,data=ordered)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=25,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
systemd-1 on /proc/bus/usb type autofs (rw,relatime,fd=18,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
securityfs on /sys/kernel/security type securityfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
/dev/sdc6 on /home type ext4 (rw,relatime,user_xattr,acl,barrier=1,data=ordered)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/mapper/pdc_biihegaaip2 on /win8 type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
/dev/mapper/pdc_biihegaaip5 on /video type xfs (rw,relatime,attr2,noquota)
usbfs on /proc/bus/usb type usbfs (rw,relatime,devgid=43,devmode=664)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)


How reproducible:
Type "mount"
Comment 1 Manuel Hiebel 2012-08-01 00:30:41 CEST
(this is since systemd, maybe we can make an alias ?)

CC: (none) => mageia
Assignee: bugsquad => tmb
Severity: normal => minor

Comment 2 Thomas Backlund 2012-08-01 00:39:02 CEST
Its not systemd as such... its the fact that we now link /etc/mtab to /proc/mounts wich shows all mountpoints used in the system
Comment 3 Colin Guthrie 2012-08-01 10:47:39 CEST
Yeah this only "worked" in the past due to manual mangling of the /etc/mtab file as tmb stated. It's really not something that is overly sustainable and causes issues when combined with e.g. a read-only filesystem.

If you want a consise output then just use "df" rather than "mount". Tools already exist that do what you want, so just use the right tool for the job :)

Status: NEW => RESOLVED
Resolution: (none) => WONTFIX

Comment 4 Greg McGee 2012-08-01 15:08:34 CEST
I understand, and I have done that when I remember, but it's just ... weird to see such a drastic change like that.

I figured it was at least worth a bug report, but it is really NBD.

Back to looking for real problems!
Thanks all.
Comment 5 Colin Guthrie 2012-08-01 20:48:32 CEST
Definitely worth a bug report - feedback is what makes the distro great even when, sometimes, the hassle is not worth the gain :)

Note You need to log in before you can comment on or make changes to this bug.