Re: Wierd problem with mount, labels and 2.3.99-pre9+

From: Andries Brouwer (aeb@veritas.com)
Date: Thu Jun 01 2000 - 19:23:05 EST


On Thu, Jun 01, 2000 at 04:30:20PM -0700, Tom Rini wrote:
> On Fri, Jun 02, 2000 at 01:15:00AM +0200, Andries Brouwer wrote:
> > On Thu, Jun 01, 2000 at 02:50:46PM -0700, Tom Rini wrote:
> >
> > > With mount from util-linux 2.10m, 2.3.99-pre9+ (which allows you to mount
> > > one device multiple times now) and an /etc/fstab which specifices devices
> > > by LABEL= (and quite probably UUID=) mount -a will continue to mount those
> > > partitions over and over.

> > Hmm. I don't see the same effect here.
> > Do you mean that each new invocation of mount mounts one more copy?
>
> Right. What _seems_ to happen is mount sees the LABEL= lines, translates it
> into a device, doesn't check if it's already mounted and attempts to do so.
> Under 2.2.15 I get:
> # mount -a
> mount: /dev/sda1 already mounted or /boot busy
> mount: according to mtab, /dev/sda1 is already mounted on /boot
> mount: /dev/sda3 already mounted or /usr busy
> mount: according to mtab, /dev/sda3 is already mounted on /usr
> ...
> Under 2.3.99-pre9 I get:
> opus:/home/trini# mount -a
> opus:/home/trini# df
> Filesystem 1k-blocks Used Available Use% Mounted on
> /dev/sda2 1032056 428628 550948 44% /
> /dev/sda1 32699 15415 17284 47% /boot
> /dev/sda3 1548096 795224 674180 54% /usr
> ...
> /dev/sda1 32699 15415 17284 47% /boot
> /dev/sda3 1548096 795224 674180 54% /usr

Are you sure you use mount from util-linux 2.10m?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:13 EST