[Grml] Re: Loop mount not automatically cleaned

Michael Prokop mika at grml.org
Wed Feb 7 15:18:24 CET 2007


* ][ <mlist4suntong at 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-
-- 
 http://grml.org/            # Linux for texttool-users and sysadmins
 http://wiki.grml.org/       # share your knowledge
 http://grml.supersized.org/ # the grml development weblog
 #grml @ irc.freenode.org    # meet us on irc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://ml.grml.org/pipermail/grml/attachments/20070207/b5db564a/attachment-0004.pgp>


More information about the Grml mailing list