From owner-freebsd-questions@FreeBSD.ORG Wed Nov 10 09:09:59 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 A6F4F16A4CE for ; Wed, 10 Nov 2004 09:09:59 +0000 (GMT) Received: from fri.itea.ntnu.no (fri.itea.ntnu.no [129.241.7.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E72D43D1F for ; Wed, 10 Nov 2004 09:09:59 +0000 (GMT) (envelope-from svein-freebsd-questions@theloosingend.net) Received: from localhost (localhost [127.0.0.1]) by fri.itea.ntnu.no (Postfix) with ESMTP id A9DF984E1 for ; Wed, 10 Nov 2004 10:09:57 +0100 (CET) Received: from mirrorball.thelosingend.net (m069c.studby.ntnu.no [129.241.130.69]) by fri.itea.ntnu.no (Postfix) with SMTP for ; Wed, 10 Nov 2004 10:09:57 +0100 (CET) Received: (qmail 15443 invoked from network); 10 Nov 2004 09:09:57 -0000 Received: from m190d.studby.ntnu.no (129.241.131.190) by m069c.studby.ntnu.no with QMQP; 10 Nov 2004 09:09:57 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 10 Nov 2004 09:09:45 -0000 Date: Wed, 10 Nov 2004 10:09:45 +0100 (CET) From: Svein Halvor Halvorsen X-X-Sender: sveinhal@maren.thelosingend.net To: Matt Staroscik In-Reply-To: <6.1.2.0.2.20041109210506.08edc590@mail.speakeasy.net> Message-ID: <20041110095415.P866@maren.thelosingend.net> References: <6.1.2.0.2.20041109210506.08edc590@mail.speakeasy.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. cc: freebsd-questions@freebsd.org Subject: Re: Do you need to dismount /usr to dump it? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Nov 2004 09:09:59 -0000 [Matt Staroscik, 2004-11-09] > If I boot to single-user mode (reboot, hit space, do boot -s) and dump /usr > to a file, I get read errors on a couple of blocks. : > I thought it was safe to dump /usr in single-user mode. Will I need to boot > off a CD or try another trick to get a clean dump of /usr? Or perhaps I am > not using the right fsck options? You do not mention which version you are running, but if you're running 5.x and the /usr-partition has a ufs2 filsystem, you could use the -L option to make a dump of a 'live filesystem' Dump will then make a snapshot of the filsystem, dump that, and then delete the snapshot. The dump will then be consistent, and as the disk were immideately after issuing the dump command. Se more on dump(8), mksnap_ffs(8), mount(8) and /usr/src/sys/ufs/ffs/README.snapshot