Gentoo Archives: gentoo-user

From: walt <w41ter@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Strange new behavior from the "mount" command
Date: Mon, 20 Apr 2015 19:22:22
Message-Id: mh3jkk$874$1@ger.gmane.org
In Reply to: Re: [gentoo-user] Re: Strange new behavior from the "mount" command by Mike Gilbert
1 On 04/19/2015 05:45 PM, Mike Gilbert wrote:
2 > On Sun, Apr 19, 2015 at 6:18 PM, walt <w41ter@×××××.com> wrote:
3
4 >> As a quick-and-dirty way of testing your idea I moved /etc/fstab out of the way.
5 >>
6 >> I was surprised to learn that "mount" doesn't care about fstab, and doesn't even
7 >> bother to look for it (when invoked with no arguments).
8 >>
9 >
10 > It reads information from /etc/mtab primarily, as well as
11 > /run/mount/utab. Also, if /etc/mtab is a symlink, it reads from
12 > /proc/self/mountinfo instead of /etc/mtab.
13 >
14 > It seems like there is probably some difference in the data it is
15 > reading from those files on your system. Maybe post them so we can all
16 > have a look?
17
18 I really appreciate your help, thanks. Sorry there's so much to read through.
19
20 I avoided the possible caching problem Francisco mentioned by booting the machine
21 without an /etc/fstab, so it wound up with only / and swap partitions actually
22 mounted.
23
24 Here are the files that "mount" opened (running with no arguments) that it
25 normally would not open:
26
27 #cat /proc/cmdline
28 BOOT_IMAGE=(hd0,gpt5)/boot/vmlinuz root=PARTUUID=345FD3C4-9E1C-49EB-859C-E3A3034325B3 rootwait init=/usr/lib64/systemd/systemd
29
30 #cat /proc/partitions (only sdb5 and sdb6 are actually mounted atm)
31 major minor #blocks name
32
33 8 0 120060864 sda
34 8 1 6144 sda1
35 8 5 15253654 sda5
36 8 6 27455053 sda6
37 8 7 25679871 sda7
38 8 8 25832488 sda8
39 8 9 25832488 sda9
40 11 0 1048575 sr0
41 8 16 78150744 sdb
42 8 17 2313328 sdb1
43 8 18 2048 sdb2
44 8 21 20482843 sdb5
45 8 22 3092481 sdb6
46 8 23 26129691 sdb7
47 8 24 26129691 sdb8
48 2 0 4 fd0
49 8 32 488386584 sdc
50 8 33 1 sdc1
51 8 34 4192933 sdc2
52 8 35 7168 sdc3
53 8 37 484185112 sdc5
54 254 0 157044736 dm-0
55
56 /etc/blkid.conf (but I don't have one)
57
58 #cat /run/blkid/blkid.tab
59 <device DEVNO="0x0805" TIME="1429555704.829004" LABEL="amd64" UUID="e976fc30-c08f-6a5b-18c7-ef57278a08ad" TYPE="ext4" PARTLABEL="Linux/Windows data" PARTUUID="b098397c-68c3-4b56-bd15-6364c3c2108e">/dev/sda5</device>
60 <device DEVNO="0x0806" TIME="1429555704.829387" UUID="TMWa80-CXcZ-iQkR-SkQY-0xPe-p834-iNki91" TYPE="LVM2_member" PARTLABEL="Linux LVM" PARTUUID="68083bec-62f4-4979-8cd8-377d0cb62ac1">/dev/sda6</device>
61 <device DEVNO="0x0807" TIME="1429555704.829692" UUID="ehtwkq-Z4LH-Pdjn-5vp3-xRhM-12ho-OjlhZ9" TYPE="LVM2_member" PARTLABEL="Linux LVM" PARTUUID="b9b2a14b-b983-4cad-ac5f-cc1f5aad0a28">/dev/sda7</device>
62 <device DEVNO="0x0808" TIME="1429555704.829969" UUID="gyDXEl-y1Xd-Yll1-rtcf-I3ph-t22r-xk9r21" TYPE="LVM2_member" PARTLABEL="Linux LVM" PARTUUID="08c8a3a0-dabd-4921-980e-1b5bca87f258">/dev/sda8</device>
63 <device DEVNO="0x0809" TIME="1429555704.830247" UUID="JnKcRI-WGb4-SymA-3xi8-3YOU-8VaQ-YK4U75" TYPE="LVM2_member" PARTLABEL="Linux LVM" PARTUUID="fcc56ca1-a76c-44fb-a42c-76fe10d56120">/dev/sda9</device>
64 <device DEVNO="0x0811" TIME="1429555704.970765" LABEL="C" UUID="3D15-CC2D" TYPE="vfat" PARTLABEL="Linux/Windows data" PARTUUID="71dd1824-2a9a-4f17-afa1-32c9bfa5cab6">/dev/sdb1</device>
65 <device DEVNO="0x0815" TIME="1429555704.971519" LABEL="gentoo64unstable" UUID="b2cce2df-05cd-0d3a-9fdd-30d4b4ceffce" TYPE="ext4" PARTLABEL="Linux/Windows data" PARTUUID="345fd3c4-9e1c-49eb-859c-e3a3034325b3">/dev/sdb5</device>
66 <device DEVNO="0x0816" TIME="1429555704.972341" LABEL="SWAP" UUID="f09da9c9-968a-4a33-a01d-89ee41c5fa47" TYPE="swap" PARTLABEL="Linux swap" PARTUUID="bb618fd6-6be9-4bb4-b3aa-73a81c47edbd">/dev/sdb6</device>
67 <device DEVNO="0x0817" TIME="1429555704.972706" UUID="p8Dc0Z-eBoA-8F5q-ehxl-p0Ce-p2Z2-Q8ukuU" TYPE="LVM2_member" PARTLABEL="Linux LVM" PARTUUID="b9f85a57-2bbc-48ff-baf7-2dbd5d10e573">/dev/sdb7</device>
68 <device DEVNO="0x0818" TIME="1429555704.972988" UUID="fJv0XT-3Ge2-Ipm4-y20s-wOv0-cClc-qcBO59" TYPE="LVM2_member" PARTLABEL="Linux LVM" PARTUUID="40a60278-daec-43a1-95e1-07308600467f">/dev/sdb8</device>
69 <device DEVNO="0x0822" TIME="1429555705.7818" LABEL="FAT32SAM" UUID="B4F6-C857" TYPE="vfat" PARTUUID="000c4056-02">/dev/sdc2</device>
70 <device DEVNO="0x0825" TIME="1429555705.18210" LABEL="SAMSUNG" UUID="f8c60d37-f86a-4117-b71e-546de21cbd16" TYPE="ext4" PARTUUID="000c4056-05">/dev/sdc5</device>
71 <device DEVNO="0xfe00" TIME="1429555705.123208" PRI="45" LABEL="U" UUID="482ec9a2-55cb-4f9d-8fff-ce73e29c1864" SEC_TYPE="ext2" TYPE="ext3">/dev/mapper/vg0-u</device>
72
73 /proc/evms/volumes (but I don't have one)
74
75 And (because /etc/mtab is a symlink to /proc/self/mounts):
76 #cat /proc/self/mounts
77 rootfs / rootfs rw 0 0
78 /dev/root / ext4 rw,relatime,data=ordered 0 0
79 devtmpfs /dev devtmpfs rw,relatime,size=1929384k,nr_inodes=482346,mode=755 0 0
80 sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
81 proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
82 tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
83 devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
84 tmpfs /run tmpfs rw,nosuid,nodev,mode=755 0 0
85 tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0
86 cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd 0 0
87 cgroup /sys/fs/cgroup/cpu cgroup rw,nosuid,nodev,noexec,relatime,cpu 0 0
88 systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct 0 0
89 sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
90 mqueue /dev/mqueue mqueue rw,relatime 0 0
91 tmpfs /tmp tmpfs rw 0 0
92 binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
93 tmpfs /run/user/0 tmpfs rw,nosuid,nodev,relatime,size=392552k,mode=700 0 0
94
95 #cat /proc/self/mountinfo
96 12 0 8:21 / / rw,relatime shared:1 - ext4 /dev/root rw,data=ordered
97 13 12 0:5 / /dev rw,relatime shared:2 - devtmpfs devtmpfs rw,size=1929384k,nr_inodes=482346,mode=755
98 14 12 0:12 / /sys rw,nosuid,nodev,noexec,relatime shared:5 - sysfs sysfs rw
99 15 12 0:3 / /proc rw,nosuid,nodev,noexec,relatime shared:8 - proc proc rw
100 16 13 0:13 / /dev/shm rw,nosuid,nodev shared:3 - tmpfs tmpfs rw
101 17 13 0:10 / /dev/pts rw,nosuid,noexec,relatime shared:4 - devpts devpts rw,gid=5,mode=620,ptmxmode=000
102 18 12 0:14 / /run rw,nosuid,nodev shared:9 - tmpfs tmpfs rw,mode=755
103 19 14 0:15 / /sys/fs/cgroup ro,nosuid,nodev,noexec shared:6 - tmpfs tmpfs ro,mode=755
104 20 19 0:16 / /sys/fs/cgroup/systemd rw,nosuid,nodev,noexec,relatime shared:7 - cgroup cgroup rw,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd
105 21 19 0:17 / /sys/fs/cgroup/cpu rw,nosuid,nodev,noexec,relatime shared:10 - cgroup cgroup rw,cpu
106 22 15 0:18 / /proc/sys/fs/binfmt_misc rw,relatime shared:11 - autofs systemd-1 rw,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
107 23 12 0:19 / /var/lib/nfs/rpc_pipefs rw,relatime shared:12 - rpc_pipefs sunrpc rw
108 24 13 0:11 / /dev/mqueue rw,relatime shared:13 - mqueue mqueue rw
109 25 12 0:20 / /tmp rw shared:14 - tmpfs tmpfs rw
110 65 22 0:22 / /proc/sys/fs/binfmt_misc rw,relatime shared:37 - binfmt_misc binfmt_misc rw
111 62 18 0:21 / /run/user/0 rw,nosuid,nodev,relatime shared:35 - tmpfs tmpfs rw,size=392552k,mode=700
112
113
114 Again, many thanks!

Replies