p7wspq
Last Updated: February 25, 2016
·
548
· tralamazza
781bbe3e6880c14f783d044f2ff05e50

never trust mount (on linux at least)

Quick question, how do you list mount points?
A: type mount? wrong!

mount reads your /etc/mtab.

If you actually want to know your current mount points, you ask the kernel/fs.

So do your migraine a favor and use: cat /proc/mounts instead.

ps: this post was fueled by a Ubuntu/LXC bug which silently remounts the container partition in read-only.

Say Thanks
Respond
Filed Under