Last Updated: February 25, 2016
·
727
· tralamazza

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.