From owner-freebsd-questions@FreeBSD.ORG Thu Oct 28 18:54:14 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A11016A4CE for ; Thu, 28 Oct 2004 18:54:14 +0000 (GMT) Received: from gort.hpl.hp.com (gort.hpl.hp.com [192.6.10.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E1C243D5D for ; Thu, 28 Oct 2004 18:54:13 +0000 (GMT) (envelope-from stefek.zaba@hpl.hp.com) Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2]) by gort.hpl.hp.com (8.12.10/8.12.10) with ESMTP id i9SIrmj3013211; Thu, 28 Oct 2004 19:53:49 +0100 (BST) Received: from zaba-s-2.hpl.hp.com (zaba-s-2.hpl.hp.com [15.144.25.201]) Internal Mail Hub) with ESMTP id TAA06592; Thu, 28 Oct 2004 19:53:47 +0100 (BST) Received: by zaba-s-2.hpl.hp.com (Postfix, from userid 129) id 413EE129A1; Thu, 28 Oct 2004 19:53:47 +0100 (BST) Date: Thu, 28 Oct 2004 19:53:47 +0100 From: Stefek Zaba To: freebsd-questions@freebsd.org Message-ID: <20041028185347.GA1917@zaba-s-2.hpl.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-HPL-MailScanner-Information: Please contact the Helpdesk for more information X-HPL-MailScanner: Found to be clean X-HPL-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=-2.766, required 5, autolearn=not spam, ALL_TRUSTED -0.84, BAYES_00 -2.60, FROM_ENDS_IN_NUMS 0.68) X-MailScanner-From: stefek.zaba@hpl.hp.com cc: stefek.zaba@hp.com Subject: shutdown(8): supposed to dismount all FSes? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Oct 2004 18:54:14 -0000 Dumb question, which "man 8 shutdown" and cousins (halt, reboot) don't seem to answer: is incanting "shutdown" expected to unmount all mounted filesystems, even those mounted "interactively" (i.e. not listed in /etc/fstab)? I ask because I managed to embarass myself during a trial install of FreeBSDS-5.3RC1 (my first outing with FreeBSD, though I've too many years with HP-UX, Debian, RedHat, and recently OpenBSD). I'd mounted an ext3 partition for a quick bit of editing (that's where my grub config files were), using the built-in ext2fs. In cavalier mode, once I'd made the edits I wanted, I incanted "shutdown -r now", as you do. In its last dying moments, the FreeBSD kernel spat out a message along the lines of "flushing vnodes: 1 1 1 ... 1 1 1 giving up on 1 buffer" (sorry, I didn't write the msg down, and am reconstructing from a dangerous combination of memory and Googling for 'the sort of thing FreeBSD says as it shuts down' ;-). It seems reprodicible - when I umount'ed the ext3 partition manually another time, no buffers were Given Up on, and the next time I forgot I hosed myself again. (Happily the Fedora fsck didn't seem to think the partition was beyond repair ;-). If this is simply luser error, tell me so and I'll go away a sadder if not a wiser man. If, though, the intention is that "shutdown" should cleanly dismount all FSen, regardless of their presence in /etc/fstab, tell me so and I'll spend a little time (but prolly not till next week; apologies) characterising the circumstances more closely. (E.g.: I note from Googling around that there was a reported bug in the same vague area when a read-only floppy was mounted; I may well have had a CD-ROM mounted at the same time, which is inherently read-only (d'oh). But I thought I'd better ask first what the shutdown behaviour is *intended* to be...) Thanks, Stefek