From owner-freebsd-hackers Mon Aug 7 08:24:33 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id IAA12052 for hackers-outgoing; Mon, 7 Aug 1995 08:24:33 -0700 Received: from rocky.sri.MT.net (sri.MT.net [204.94.231.129]) by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id IAA12027 for ; Mon, 7 Aug 1995 08:24:25 -0700 Received: (from nate@localhost) by rocky.sri.MT.net (8.6.12/8.6.12) id JAA15016; Mon, 7 Aug 1995 09:26:27 -0600 Date: Mon, 7 Aug 1995 09:26:27 -0600 Message-Id: <199508071526.JAA15016@rocky.sri.MT.net> To: davidg@Root.COM Cc: simon@masi.ibp.fr, freebsd-hackers@freebsd.org Subject: Re: patch adding the 'noauto' switch to 'mount' In-Reply-To: <199508071414.HAA00196@corbin.Root.COM> References: <199508071209.OAA00200@neuromancer.ibp.fr> <199508071414.HAA00196@corbin.Root.COM> Reply-To: nate@sneezy.sri.com (Nate Williams) From: nate@sneezy.sri.com (Nate Williams) Sender: hackers-owner@freebsd.org Precedence: bulk > >I just got fed up with my DOS partition being mounted automatically > >at boot time, so I wrote a patch which enables the use of the 'noauto' > >flag in /etc/fstab. > > > >For example: /dev/sd0s2 /dos msdos rw,noauto 0 0 > > > >This flag prevents a filesystem from being mounted when a 'mount -a' occurs. > >It works for every kind of fs , since it's defined as a standard > >mount option. > > That's an interesting option, but the "-a" switch stands for "all" - not > "auto". I suppose the first question that comes to mind is: if you don't want > the filesystem mounted with "-a", then why are you putting it in fstab? So you don't have to specify the complete command line parameters when you *really* want it mounted. SunOS has this, and I use it all the time with the cdrom. Instead of saying 'mount -t cd9660 /dev/cd0a /cdrom' I can say 'mount /cdrom'. It will only mount the fs with an explicit mount, rather than the 'mount -a' command. I think it's a nice feature to have. Nate