Re: Get rid of /etc/mtab ?
On Fri, Jun 28, 2002 at 02:41:59AM +0200, Gergely Nagy wrote:
> > The same information is available in /proc/mounts. In fact, /proc/mounts is
> > more accurate e.g. after lazy umounts (umount -l).
> Untrue. /proc/mounts lists bind-mounts differently, and doesn't list
> my / properly:
Not just that, it also mean that loopback devices won't be automatically
unallocated when used in loopback mounts, because /proc/mounts does not
store all the required info.
Parts of /etc/mtab:
/mnt/hdb/31/cdimages/potato1.iso /mnt/iso/potato1 iso9660 ro,loop=/dev/loop0 0 0
The same from /proc/mounts:
/dev/loop0 /mnt/iso/potato1 iso9660 ro 0 0
This comes up every now and then and deserves a FAQ entry (if it hasn't one
Martijn van Oosterhout <email@example.com> http://svana.org/kleptog/
> There are 10 kinds of people in the world, those that can do binary
> arithmetic and those that can't.
To UNSUBSCRIBE, email to firstname.lastname@example.org
with a subject of "unsubscribe". Trouble? Contact email@example.com