
* ][ mlist4suntong@yahoo.com [20070207 04:15]:
On Tue, 06 Feb 2007 09:10:18 +0100, Michael Prokop wrote:
I noticed that loop mounts are not automatically cleaned in my system. Is there any way that I can fix it?
Which mount version are you using? 'dpkg -S =mount ; mount --version' I'm using mount of package loop-aes-utils and did not notice the mentioned behaviour.
Strange to me too. Here is the required info:
$ dpkg -S =mount dpkg: *=mount* not found.
bash user, ey? 8-)
[...]
$ sudo mount -o loop grml_small_0.3.iso /mnt/os2/
$ mount | grep os2 /dev/loop2 on /mnt/os2 type iso9660 (ro)
$ sudo umount /mnt/os2/
$ ps -e | grep loop 32721 ? 00:00:00 loop0 3332 ? 00:00:00 loop1 2776 ? 00:00:00 loop2
Run 'losetup -d /dev/loop2' to fix the issue manually. To fix the issue for the future remove the symlink /etc/mtab pointing to /proc/mounts:
rm /etc/mtab cp /proc/mounts /etc/mtab
-> from now on your system should remove the loop device automatically.
regards, -mika-