"Gilles Espinasse" <[email protected]> writes: > The problem could be shorten to >> mount --bind /dev/shm/tmp10767 a/b > ... >> + umount /dev/shm/tmp10767 >> umount: /dev/shm/tmp10767: not mounted > > mount think a/b is mounted, not /dev/shm/tmp10767 > > > If that matter > [chroot-i486] root:/usr/src/coreutils-8.0$ mount --version > mount from util-linux-ng 2.16.1 (with libblkid support) > > [chroot-i486] root:/usr/src/coreutils-8.0$ ls -l /etc/mtab > lrwxrwxrwx 1 root root 12 Oct 18 09:42 /etc/mtab -> /proc/mounts
/proc/mounts does not know that /dev/shm/tmp10767 is mounted, it only knows that the filesystem containing /dev/shm/tmp10767 is mounted on a/b. That's one reason why linking /etc/mtab to /proc/mounts is a bad idea, since the former still contains more information especially for bind mounts. Andreas. -- Andreas Schwab, [email protected] GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
