From owner-freebsd-current@FreeBSD.ORG Mon May 19 00:29:48 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 853C337B401; Mon, 19 May 2003 00:29:48 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id B55FF43FA3; Mon, 19 May 2003 00:29:46 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3p2/8.8.7) with ESMTP id RAA31371; Mon, 19 May 2003 17:29:39 +1000 Date: Mon, 19 May 2003 17:29:38 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Andre Guibert de Bruet In-Reply-To: <20030519015841.R28986@alpha.siliconlandmark.com> Message-ID: <20030519172124.P22477@gamplex.bde.org> References: <20030518225640.S28986@alpha.siliconlandmark.com> <20030519051855.GB4396@HAL9000.homeunix.com> <20030519015841.R28986@alpha.siliconlandmark.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Makoto Matsushita cc: David Schultz cc: current@freebsd.org Subject: Re: 5.1-BETA umount problems X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 May 2003 07:29:48 -0000 On Mon, 19 May 2003, Andre Guibert de Bruet wrote: > On Sun, 18 May 2003, David Schultz wrote: > > By the way, why is the original poster walking around and shooting > > himself in the foot? Sigh. The dangers of firearms... > > I wanted to unmount as many filesystems as possible before connecting my > Dazzle 6-in-1 USB reader (the one that used to work, but now causes > panics). As you can imagine fsck'ing 650GB takes a little while... ;) > Also, /lib on this system is nfs exported, and I couldn't be arsed to kill > -9 nfsd and mountd. Use "umount -A" to unmount as many systems as possible. For umount(2), -A is documented umount all file systems except "/", but it cannot be expected to always do that unless -f is also specified. "umount -A" used to give an almost clean unmount after shutting down to single user mode. It was only missing a "mount -u -o ro /". Now it also fails to unmount devfs. Remounting file systems readonly is useful for avoiding fscks when you expect to panic. I mount large archival file systems readonly most of the time and occasionally remount /home and /usr readonly when I expect to panic. Bruce