[Pkg-sysvinit-devel] Unexpected problem with /etc/mtab -> /proc/mounts

Thomas Hood jdthood at yahoo.co.uk
Sat Jan 21 21:56:46 UTC 2006


Miquel van Smoorenburg wrote:
> Ehm, I haven't been following the development due to a chronic lack of
> time, but using /proc/mounts instead of /etc/mtab when umounting
> probably breaks loopback mounts.


I haven't tested unmounting it but loopback mounts do appear in /proc/mounts:

sudo losetup /dev/loop/0 foo
sudo mke2fs /dev/loop/0
sudo mkdir /mnt/loop
sudo mount /dev/loop/0 /mnt/loop
cat /proc/mounts
[...]
/dev/loop/0 /mnt/loop ext2 rw,nogrpid 0 0

How would the problem arise?
-- 
Thomas



More information about the Pkg-sysvinit-devel mailing list