How do I unmount a tmpfs that is missing from /etc/mtab?
Posted
by
vrinek
on Super User
See other posts from Super User
or by vrinek
Published on 2011-11-11T15:50:27Z
Indexed on
2011/11/14
9:58 UTC
Read the original article
Hit count: 380
I have the following line in /etc/fstab:
none /home/hydra/tmp tmpfs user,noauto,size=1000M,uid=1001,gid=1001 0 0
I can do mount ~/tmp as user hydra and it gets mounted ok. The only problem is that even thought it gets added to /proc/mounts, it does not get added to /etc/mtab. When I try a umount ~/tmp (again as hydra) it complains:
umount: /home/hydra/tmp is not mounted (according to mtab)
And when I try -f or -n, it complains that I am not root.
Some more info on the system that manifests this problem:
On sudo umount /home/hydra/tmp, the fs gets unmounted (I think I needed to used -f too)
- Debian version is
testing mount --version->mount from util-linux 2.19.1 (with libblkid and selinux support)ls -l /etc/mtab->-rw-r--r-- 1 root root 921 Nov 14 09:08 /etc/mtabcat /proc/mounts | grep rootfs->rootfs / rootfs rw 0 0/home,/home/hydranor/home/hydra/tmpare symbolic links
© Super User or respective owner