Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Apr 1996 21:19:08 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        questions@freebsd.org
Cc:        richardc@CSUA.Berkeley.EDU, msmith@atrad.adelaide.edu.au
Subject:   Re: hard reading error
Message-ID:  <199604101919.VAA00772@uriah.heep.sax.de>
In-Reply-To: <199604100253.MAA19083@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Apr 10, 96 12:23:49 pm

next in thread | previous in thread | raw e-mail | index | archive | help
As Michael Smith wrote:

> If you're using csh, something like this :
> 
> # cd /dead_filesystem
> # dump 0bf 10000000 - | (cd /new_filesystem; restore rvf -)

I think you have to provide the `filesys' argument to dump.  However,
this filesystem doesn't need to be a mounted one.  So better:

umount /dead_filesystem		# assume it was mounted from /dev/wd0e
cd /new_filesystem
dump 0bf 10000000 - /dev/rwd0e | restore rvf -

I think dump handles files with bad blocks (read errors) halfways
gracefully.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



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