Do you need to dismount /usr to dump it?

Nelis Lamprecht nlamprecht at gmail.com
Tue Nov 9 23:09:42 PST 2004


On Tue, 09 Nov 2004 21:21:42 -0800, Matt Staroscik <matt at 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


More information about the freebsd-questions mailing list