From owner-freebsd-hackers Sun Jan 4 22:33:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA08247 for hackers-outgoing; Sun, 4 Jan 1998 22:33:02 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from fang.cs.sunyit.edu (root@fang.cs.sunyit.edu [192.52.220.66]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA08237 for ; Sun, 4 Jan 1998 22:32:44 -0800 (PST) (envelope-from perlsta@sunyit.edu) Received: from win95.local.sunyit.edu (brightmn@ppp-55.ts-6.nyc.idt.net [169.132.98.55]) by fang.cs.sunyit.edu (8.8.5/8.7.3) with ESMTP id CAA00380; Mon, 5 Jan 1998 02:33:17 GMT Message-Id: <199801050233.CAA00380@fang.cs.sunyit.edu> From: "Alfred Perlstein" To: "Warner Losh" , "Mike Smith" Cc: Subject: Re: Musing on boot Date: Mon, 5 Jan 1998 01:29:05 -0500 X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1161 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk MUHAHAHAH evilness: ( mount /dev/device /mountpoint || ( fsck /dev/device && mount /dev/device /mountpoint) ) & done in the background: if the mount fails, fsck the device then mount... put in a nested shell script we could grep a file with the devs and mount points in it, xargs to the script then do a foreach or something... -Alfred ---------- > From: Mike Smith > To: Warner Losh > Cc: hackers@FreeBSD.ORG > Subject: Re: Musing on boot > Date: Monday, January 05, 1998 12:30 AM > > > > > > > The idea is to have a list of file systems that *MUST* be present for > > the system to come up. These files systems are fsck'd and mounted > > synchronously. All the rest of the file systems have a fsck kicked > > off in the background, and a mount done when that fsck happens to > > finish. > > List the "optional" filesystems in /etc/fstab with '0' fsck pass values > and 'noauto' mount options, then put > > fsck && mount & > > for each filesystem in /etc/rc.local > > > I thought I'd bounce it off hackers. It seems like such a simple idea > > that something must be wrong with it. > > It's certainly not new. 8) > > > P.S. Code to follow if there appears to be interest... > > I would be inclined to suggest that an option to mount_ffs(8) that > automatically fsck'ed a filesystem before mounting it would be a good > way to go. > > -- > \\ Sometimes you're ahead, \\ Mike Smith > \\ sometimes you're behind. \\ mike@smith.net.au > \\ The race is long, and in the \\ msmith@freebsd.org > \\ end it's only with yourself. \\ > >