From owner-freebsd-hackers Mon Aug 7 17:13:16 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id RAA09752 for hackers-outgoing; Mon, 7 Aug 1995 17:13:16 -0700 Received: from gndrsh.aac.dev.com (gndrsh.aac.dev.com [198.145.92.241]) by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id RAA09725 for ; Mon, 7 Aug 1995 17:13:12 -0700 Received: (from rgrimes@localhost) by gndrsh.aac.dev.com (8.6.11/8.6.9) id RAA01807; Mon, 7 Aug 1995 17:12:51 -0700 From: "Rodney W. Grimes" Message-Id: <199508080012.RAA01807@gndrsh.aac.dev.com> Subject: Re: patch adding the 'noauto' switch to 'mount' To: davidg@Root.COM Date: Mon, 7 Aug 1995 17:12:51 -0700 (PDT) Cc: simon@masi.ibp.fr, freebsd-hackers@freebsd.org In-Reply-To: <199508071414.HAA00196@corbin.Root.COM> from "David Greenman" at Aug 7, 95 07:14:26 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1487 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. > Note there is a very serious error in the patch, MNT_* are bit flags, he defined flag MNT_NOAUTO as 0x3, witch is MNT_RDONLY | MNT_SYNCHRONOUS. Do NOT apply that patch without fixing this. > 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? It is common on many systems to have the noauto option, I agree it conflicts with the symantics of the -a option, but it is handy to store all the options for a file system in /etc/fstab, especially for complicted nfs mounts you may not want mounted at boot time: #gndrsh:/a /gndrsh/a nfs rw,bg,soft,intr 0 0 I really hate typing: mount -t nfs -o rw,bg,soft,intr gndrsh:/a /gndrsh/a when I could just type mount /gndrsh/a if we had the noALL option :-) -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Reliable computers for FreeBSD