NetBSD Problem Report #8727
Received: (qmail 25604 invoked from network); 1 Nov 1999 19:23:21 -0000
Message-Id: <199911011922.UAA22332@sharky.pilhuhn.de>
Date: Mon, 1 Nov 1999 20:22:46 +0100 (MET)
From: "Heiko W.Rupp" <hwr@sharky.pilhuhn.de>
Reply-To: hwr@sharky.pilhuhn.de
To: gnats-bugs@gnats.netbsd.org
Subject: can't mount all nfs filesystems at once with noauto in fstab
X-Send-Pr-Version: 3.95
>Number: 8727
>Category: bin
>Synopsis: can't mount all nfs filesystems at once with noauto in fstab
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: hwr
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Nov 01 11:24:01 +0000 1999
>Closed-Date: Fri Apr 12 23:53:07 +0000 2002
>Last-Modified: Fri Apr 12 23:53:07 +0000 2002
>Originator: Heiko W.Rupp
>Release: NetBSD-current
>Organization:
private
>Environment:
System: NetBSD sharky 1.4K NetBSD 1.4K (SHARKY) #2: Sun Sep 19 17:46:29 MEST 1999 hwr@sharky:/u/snert/src/sys/arch/arm32/compile/SHARKY arm32
>Description:
When a filesystem is marked "noauto" in /etc/fstab
catbert# grep /transfer /etc/fstab
snert:/transfer /transfer nfs rw,noauto 0 0
it is not mounted at boot time. If later on, all nfs filesystems
shall be mounted, it can't be done with "mount -a":
catbert# df |grep trans
catbert# mount -a
catbert# !df
df | grep trans
catbert#
So, for every nfs file system you have to mount it by hand with
mount server:/fs /transfer
This is a pita with many filesystems. Umount does trt by the way.
Imho the semantics of -a in mount should be changed accordingly to the
one of umount.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
From: "Heiko W.Rupp" <hwr@pilhuhn.de>
To: David Brownlee <abs@mono.org>
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: bin/8727: can't mount all nfs filesystems at once with noauto in fstab
Date: Mon, 1 Nov 1999 20:46:58 +0100
On Mon, Nov 01, 1999 at 07:36:11PM +0000, David Brownlee wrote:
> > Imho the semantics of -a in mount should be changed accordingly to the
> > one of umount.
>
> Please do not do this . You could set them not noauto and 'mount
> -vat nonfs' to avoid hitting them in startup.
>
> I would fully support having a different flag that implies
> 'include type type noauto' in current operation :)
I thought of this too. But then again, the semantic of "-a" is
different in mount and umount.
--
See <a href="http://www.netbsd.org">NetBSD</a> for a multiplatform OS
2 + 2, Sie stoehnt dabei - auf dem Wasserbett und die ganze Nacht
From: David Brownlee <abs@mono.org>
To: "Heiko W.Rupp" <hwr@sharky.pilhuhn.de>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/8727: can't mount all nfs filesystems at once with noauto
in fstab
Date: Mon, 1 Nov 1999 19:36:11 +0000 (GMT)
> >Description:
> When a filesystem is marked "noauto" in /etc/fstab
> catbert# grep /transfer /etc/fstab
> snert:/transfer /transfer nfs rw,noauto 0 0
>
> it is not mounted at boot time. If later on, all nfs filesystems
> shall be mounted, it can't be done with "mount -a":
>
> catbert# df |grep trans
> catbert# mount -a
> catbert# !df
> df | grep trans
> catbert#
>
> So, for every nfs file system you have to mount it by hand with
>
> mount server:/fs /transfer
>
> This is a pita with many filesystems. Umount does trt by the way.
>
> Imho the semantics of -a in mount should be changed accordingly to the
> one of umount.
Please do not do this . You could set them not noauto and 'mount
-vat nonfs' to avoid hitting them in startup.
I would fully support having a different flag that implies
'include type type noauto' in current operation :)
From: matthew green <mrg@eterna.com.au>
To: hwr@sharky.pilhuhn.de
Cc: gnats-bugs@gnats.netbsd.org
Subject: re: bin/8727: can't mount all nfs filesystems at once with noauto in fstab
Date: Tue, 02 Nov 1999 11:54:49 +1100
"noauto" means exactly what it says.
please read the -a and -A options to mount(8). this option does
*exactly* what it is supposed to do. a new option to ignore
`noauto', would probably be what you want.
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
To: "Heiko W.Rupp" <hwr@sharky.pilhuhn.de>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/8727: can't mount all nfs filesystems at once with noauto
in fstab
Date: Tue, 2 Nov 1999 02:06:21 +0100 (MET)
On Mon, 1 Nov 1999, Heiko W.Rupp wrote:
> Imho the semantics of -a in mount should be changed accordingly to the
> one of umount.
Um, given that "mount -a" is used in /etc/rc, this is a bit difficult.
Does "mount -a -t nfs" work?
- Hubert
--
NetBSD - Better for your uptime than Viagra
From: Frederick Bruckman <fb@enteract.com>
To: "Heiko W.Rupp" <hwr@pilhuhn.de>
Cc: David Brownlee <abs@mono.org>, gnats-bugs@gnats.netbsd.org,
netbsd-bugs@netbsd.org
Subject: Re: bin/8727: can't mount all nfs filesystems at once with noauto
in fstab
Date: Mon, 1 Nov 1999 16:54:05 -0600 (CST)
On Mon, 1 Nov 1999, Heiko W.Rupp wrote:
> On Mon, Nov 01, 1999 at 07:36:11PM +0000, David Brownlee wrote:
> > > Imho the semantics of -a in mount should be changed accordingly to the
> > > one of umount.
> >
> > Please do not do this . You could set them not noauto and 'mount
> > -vat nonfs' to avoid hitting them in startup.
>
> >
> > I would fully support having a different flag that implies
> > 'include type type noauto' in current operation :)
>
>
> I thought of this too. But then again, the semantic of "-a" is
> different in mount and umount.
"umount -a" uses getmntinfo() to get a list of all mounted
filesystems. It doesn't look in fstab at all.
From: "Heiko W.Rupp" <hwr@pilhuhn.de>
To: matthew green <mrg@eterna.com.au>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/8727: can't mount all nfs filesystems at once with noauto in fstab
Date: Tue, 2 Nov 1999 09:10:24 +0100
On Tue, Nov 02, 1999 at 11:54:49AM +1100, matthew green wrote:
> please read the -a and -A options to mount(8). this option does
> *exactly* what it is supposed to do.
Exactly.
> a new option to ignore
> `noauto', would probably be what you want.
Probably. At least this is why I fieled a pr instead of just hacking
it.
--
See <a href="http://www.netbsd.org">NetBSD</a> for a multiplatform OS
Bloss weil Du den Source von Deinem Betriebssystem hast, entbindet
Dich das nicht von der Pflicht dein Hirn zu gebrauchen.
-- Chris Badura in <DH0I83.D6v@flatlin.ka.sub.org>
From: "Heiko W.Rupp" <hwr@pilhuhn.de>
To: Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: bin/8727: can't mount all nfs filesystems at once with noauto in fstab
Date: Tue, 2 Nov 1999 09:43:02 +0100
On Tue, Nov 02, 1999 at 02:06:21AM +0100, Hubert Feyrer wrote:
> On Mon, 1 Nov 1999, Heiko W.Rupp wrote:
> > Imho the semantics of -a in mount should be changed accordingly to the
> > one of umount.
>
> Um, given that "mount -a" is used in /etc/rc, this is a bit difficult.
> Does "mount -a -t nfs" work?
No. Even if the manpage tells different :-(
--
See <a href="http://www.netbsd.org">NetBSD</a> for a multiplatform OS
Und wenn das bei den Maedels mit dem Job nicht funktioniert
dann werdn die Haare hochtupiert und die Naegel rot lakiert
alles gut ausstaffiert und der Rest prostituiert (Die fantastischen 4)
From: David Brownlee <abs@mono.org>
To: Frederick Bruckman <fb@enteract.com>
Cc: "Heiko W.Rupp" <hwr@pilhuhn.de>, gnats-bugs@gnats.netbsd.org,
netbsd-bugs@netbsd.org
Subject: Re: bin/8727: can't mount all nfs filesystems at once with noauto
in fstab
Date: Tue, 2 Nov 1999 09:17:31 +0000 (GMT)
On Mon, 1 Nov 1999, Frederick Bruckman wrote:
> "umount -a" uses getmntinfo() to get a list of all mounted
> filesystems. It doesn't look in fstab at all.
Then the manpage needs to be updated - that is the documented
behaviour of 'umount -A'.
David/absolute
From: Frederick Bruckman <fb@enteract.com>
To: David Brownlee <abs@mono.org>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/8727: can't mount all nfs filesystems at once with noauto
in fstab
Date: Tue, 2 Nov 1999 05:03:59 -0600 (CST)
On Tue, 2 Nov 1999, David Brownlee wrote:
> On Mon, 1 Nov 1999, Frederick Bruckman wrote:
>
> > "umount -a" uses getmntinfo() to get a list of all mounted
> > filesystems. It doesn't look in fstab at all.
>
> Then the manpage needs to be updated - that is the documented
> behaviour of 'umount -A'.
Sorry, my mistake. I got excited. In the past, I have used "noauto"
for experiments with raid, vnds and removable disks, and the idea of
trying to mount all of those at once is alarming.
On Mon, 1 Nov 1999 Heiko W.Rupp wrote
> > I would fully support having a different flag that implies
> > 'include type type noauto' in current operation :)
> I thought of this too. But then again, the semantic of "-a" is
> different in mount and umount.
Hmmm. I'm not buying it. The semantic of "-A" for mount and umount is
different, too, nor would make it make sense to make them the same.
From: matthew green <mrg@eterna.com.au>
To: "Heiko W.Rupp" <hwr@pilhuhn.de>
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org,
Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>
Subject: re: bin/8727: can't mount all nfs filesystems at once with noauto in fstab
Date: Tue, 02 Nov 1999 23:38:01 +1100
> Um, given that "mount -a" is used in /etc/rc, this is a bit difficult.
> Does "mount -a -t nfs" work?
No. Even if the manpage tells different :-(
how does it fail? it worked as expected, last i typed "mount -vat nfs".
From: Matthias Drochner <drochner@zel459.zel.kfa-juelich.de>
To: "Heiko W.Rupp" <hwr@pilhuhn.de>
Cc: Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>,
gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: bin/8727: can't mount all nfs filesystems at once with noauto in
fstab
Date: Tue, 02 Nov 1999 18:35:54 +0100
hwr@pilhuhn.de said:
> > Um, given that "mount -a" is used in /etc/rc, this is a bit difficult.
> >
> > Does "mount -a -t nfs" work?
> No. Even if the manpage tells different :-(
The "mount" manpage tells that -a/-A don't mount filesystems
with the "noauto" option. fstab(5) states the same.
That's the purpose of "noauto" -- you are getting exactly what
you are asking for.
best regards
Matthias
From: "Heiko W.Rupp" <hwr@pilhuhn.de>
To: matthew green <mrg@eterna.com.au>
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org,
Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>
Subject: Re: bin/8727: can't mount all nfs filesystems at once with noauto in fstab
Date: Tue, 2 Nov 1999 22:22:22 +0100
On Tue, Nov 02, 1999 at 11:38:01PM +1100, matthew green wrote:
> how does it fail? it worked as expected, last i typed "mount -vat nfs".
catbert# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/wd0a 52119 43176 6337 87% /
/dev/wd0e 495151 298407 171986 63% /usr
/dev/wd0f 29231 5427 22342 19% /var
/dev/wd0g 198455 170916 17616 90% /home
/dev/wd0h 377143 75042 283243 20% /u
kernfs 1 1 0 100% /kern
catbert# grep nfs /etc/fstab
snert:/homes /homes nfs rw,noauto 0 0
snert:/transfer /transfer nfs rw,noauto 0 0
snert:/export/quaak /u/snert nfs rw,noauto 0 0
catbert# mount -a -t nfs
catbert# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/wd0a 52119 43176 6337 87% /
/dev/wd0e 495151 298407 171986 63% /usr
/dev/wd0f 29231 5427 22342 19% /var
/dev/wd0g 198455 170916 17616 90% /home
/dev/wd0h 377143 75042 283243 20% /u
kernfs 1 1 0 100% /kern
catbert#
catbert# mount -vat nfs
catbert# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/wd0a 52119 43176 6337 87% /
/dev/wd0e 495151 298407 171986 63% /usr
/dev/wd0f 29231 5427 22342 19% /var
/dev/wd0g 198455 170916 17616 90% /home
/dev/wd0h 377143 75042 283243 20% /u
kernfs 1 1 0 100% /kern
catbert# mount /transfer
catbert# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/wd0a 52119 43176 6337 87% /
/dev/wd0e 495151 298407 171986 63% /usr
/dev/wd0f 29231 5427 22342 19% /var
/dev/wd0g 198455 170916 17616 90% /home
/dev/wd0h 377143 75042 283243 20% /u
kernfs 1 1 0 100% /kern
snert:/transfer 20743 8959 10746 45% /transfer
catbert# uname -a
NetBSD catbert 1.4K NetBSD 1.4K (CATBERT) #5: Sat Sep 4 18:19:06 MEST
1999 root@catbert:/u/snert/src/sys/arch/i386/compile/CATBERT i386
catbert# umount /transfer
catbert# mount -vt nfs
catbert# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/wd0a 52119 43176 6337 87% /
/dev/wd0e 495151 298407 171986 63% /usr
/dev/wd0f 29231 5427 22342 19% /var
/dev/wd0g 198455 170916 17616 90% /home
/dev/wd0h 377143 75042 283243 20% /u
kernfs 1 1 0 100% /kern
You see, nfs mounting in general works, but not "-vat nfs"
Heiko
--
See <a href="http://www.netbsd.org">NetBSD</a> for a multiplatform OS
Nix da, Du Spaghettisultan. Die Blade hat eingezogene Tankflanken damit die
gewaltigen Muskelstraenge des athletischen Baendigers (== elwu) sich an die
verfuehrerisch geschwungenen Formen anschmiegen kpnnen. -- elwu in d.a.f.rrr
From: root@ihack.net (Charles M. Hannum)
To: "Heiko W.Rupp" <hwr@pilhuhn.de>
Cc: matthew green <mrg@eterna.com.au>, gnats-bugs@gnats.netbsd.org,
netbsd-bugs@netbsd.org,
Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>
Subject: Re: bin/8727: can't mount all nfs filesystems at once with noauto in fstab
Date: 02 Nov 1999 18:03:15 -0500
This is how `mount -a' is documented and works on every other system I
know. In fact, it's desirable behavior; the whole point is to make
things like `/cdrom' noauto, so you have a convenient shorthand for
mounting them. (On other systems, this is also used by a setuid
mount(8) to allow mortals to mount some file systems.)
I don't see what the problem is.
From: matthew green <mrg@eterna.com.au>
To: "Heiko W.Rupp" <hwr@pilhuhn.de>
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org,
Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>
Subject: re: bin/8727: can't mount all nfs filesystems at once with noauto in fstab
Date: Wed, 03 Nov 1999 12:36:23 +1100
um, you have "noauto" on all these filesystems? of course any "mount -a"
or "mount -A" will fail. the addition of `-t nfs' does not override this
nor should it.
State-Changed-From-To: open->analyzed
State-Changed-By: fredb
State-Changed-When: Thu Jun 1 19:37:27 CDT 2000
State-Changed-Why:
There's nothing more to say...
Responsible-Changed-From-To: bin-bug-people->hwr
Responsible-Changed-By: fredb
Responsible-Changed-When: Thu Jun 1 19:37:27 CDT 2000
Responsible-Changed-Why:
Would you please just close this?
State-Changed-From-To: analyzed->closed
State-Changed-By: fredb
State-Changed-When: Fri Apr 12 18:51:56 CDT 2002
State-Changed-Why:
The consensus is clearly against changing the behavior of
"noauto" in fstab. You can't win them all.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.