Skip to contentSkip to conversation

mount and /proc/mounts disagrees

bug anand jain 2 participants 2 messages Mar 26, 2013 Btrfs file system

lore
Share & tools
lore

anand jain

author
#0 lore raw

3.8.0+ #3

This happened after 'umount /btrfs' was interrupted by ctl-C

# mount | egrep btrfs
/dev/mapper/mpathe on /btrfs type btrfs (rw,degraded)
# cat /etc/mtab | egrep btrfs
/dev/mapper/mpathe /btrfs btrfs rw,degraded 0 0
# cat /proc/mounts | egrep btrfs
# umount /btrfs
umount: /btrfs: not mounted
#

-Anand

#1 lore raw
Quoted 8 lines · anand jain

3.8.0+ #3

This happened after 'umount /btrfs' was interrupted by ctl-C

# mount | egrep btrfs
/dev/mapper/mpathe on /btrfs type btrfs (rw,degraded)
Quoted 8 lines
# cat /etc/mtab | egrep btrfs
/dev/mapper/mpathe /btrfs btrfs rw,degraded 0 0
# cat /proc/mounts | egrep btrfs
# umount /btrfs
umount: /btrfs: not mounted
#

That's because your mount still uses /etc/mtab for some reason, I thought it had stopped doing that and was using /proc/mounts? Anyway it's just because the entry made it into mtab, if umount and /proc/mounts says its not there then its not there. Thanks,

Josef