Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Nov 2004 09:09:41 +0200
From:      Nelis Lamprecht <nlamprecht@gmail.com>
To:        Matt Staroscik <matt@wrongcrowd.com>
Cc:        FreeBSD Questions <questions@freebsd.org>
Subject:   Re: Do you need to dismount /usr to dump it?
Message-ID:  <7cbadc8704110923092da9d7a7@mail.gmail.com>
In-Reply-To: <6.1.2.0.2.20041109210506.08edc590@mail.speakeasy.net>
References:  <6.1.2.0.2.20041109210506.08edc590@mail.speakeasy.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 09 Nov 2004 21:21:42 -0800, Matt Staroscik <matt@wrongcrowd.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7cbadc8704110923092da9d7a7>