From owner-freebsd-questions Wed Apr 5 6:39:52 2000 Delivered-To: freebsd-questions@freebsd.org Received: from europe.std.com (europe.std.com [199.172.62.20]) by hub.freebsd.org (Postfix) with ESMTP id 678D837B706 for ; Wed, 5 Apr 2000 06:39:49 -0700 (PDT) (envelope-from lowell@world.std.com) Received: from world.std.com (lowell@world-f.std.com [199.172.62.5]) by europe.std.com (8.9.3/8.9.3) with ESMTP id JAA01514; Wed, 5 Apr 2000 09:39:46 -0400 (EDT) Received: (from lowell@localhost) by world.std.com (8.9.3/8.9.3) id JAA22271; Wed, 5 Apr 2000 09:39:44 -0400 (EDT) To: "David J. Kanter" , freebsd-questions@freebsd.org Subject: Re: Fsck on mounted filesystems References: <20000403192007.A59646@localhost.localdomain> From: Lowell Gilbert Date: 05 Apr 2000 09:39:43 -0400 In-Reply-To: "David J. Kanter"'s message of Mon, 3 Apr 2000 19:20:07 -0500 Message-ID: Lines: 24 X-Mailer: Gnus v5.5/Emacs 20.2 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "David J. Kanter" writes: > I've got a questions that stems from my past Linux use: can fsck -p be run > safely on mounted filesystems, like the root filesystem? > > I ask this because the instructions for make world say to go into single > user mode with "shutdown now" and then run fsck -p. I did this, and all > seemed OK, but fsck was run on mounted filesystems, such as /. > > The first thing you learn about Linux is to not run fsck on a mounted > partition, like /. > > So, why can I do it safely (apparently) with FreeBSD but not with Linux? The short answer is that, no, you can't safely fsck a mounted filesystem on FreeBSD either. You're more likely to get away without damaging it, but "more likely" isn't much of a guarantee. Normally, if you really need to fsck on the run, you should shut down to single-user mode first, and dismount the filesystem. We do make an exception for the root filesystem, which is often fsck'd while mounted read-only. - Lowell To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message