From owner-freebsd-questions@FreeBSD.ORG Wed Nov 10 07:09:42 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 3B54116A4CE for ; Wed, 10 Nov 2004 07:09:42 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id B72E943D5D for ; Wed, 10 Nov 2004 07:09:41 +0000 (GMT) (envelope-from nlamprecht@gmail.com) Received: by wproxy.gmail.com with SMTP id 64so398321wri for ; Tue, 09 Nov 2004 23:09:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=P9TupmwuyVr1lyoA/0z+0sDB19GOz4O8A8IdaI0GOSnxu7RXV4ZvHx6Bkq1nVt3umzLTmnulsV6UHX5DimxfSIuVYO6Xk5UPP6mhP8yq0fIwJViAEwLWyaBrglzUmbul8DsVbrqIqTA5jNkXveLhhYtMbDvN0OA4FmVfl1syAks= Received: by 10.54.18.55 with SMTP id 55mr12292wrr; Tue, 09 Nov 2004 23:09:41 -0800 (PST) Received: by 10.54.38.55 with HTTP; Tue, 9 Nov 2004 23:09:41 -0800 (PST) Message-ID: <7cbadc8704110923092da9d7a7@mail.gmail.com> Date: Wed, 10 Nov 2004 09:09:41 +0200 From: Nelis Lamprecht To: Matt Staroscik In-Reply-To: <6.1.2.0.2.20041109210506.08edc590@mail.speakeasy.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <6.1.2.0.2.20041109210506.08edc590@mail.speakeasy.net> cc: FreeBSD Questions 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: Nelis Lamprecht List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Nov 2004 07:09:42 -0000 On Tue, 09 Nov 2004 21:21:42 -0800, Matt Staroscik wrote: > > 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. > > Running fsck -y (also in single user of course) did not show a problem, but > it did not clear up the errors when I tried the dump again. > > 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? > > the dump command I used is: > dump 0af /someotherplace/filename.dump /usr > Try running the command: dump -0 -a -f /someplace/filedump /dev/ad0s1g (or whatever your /usr partition uses for /dev) I recall there also being a -L flag for live systems which you may want to try though I think it is only available in 5.x ? ...not to sure. Nelis