dump/restore corrupted filesystems

CyberLeo Kitsana cyberleo at cyberleo.net
Mon Apr 16 20:10:37 UTC 2007

Roland Smith wrote:
> On Mon, Apr 16, 2007 at 09:11:48AM -0500, CyberLeo Kitsana wrote:
>> I have a 1.2TB UFS2 filesystem with irrecoverable corruption. As such, I
>> must move all 500GB or so of data off of it and re-newfs it.
> If the corruption is due to hardware failure, your data is probably lost.

Sorry if I wasn't clear. Most all of the data is readable and complete
if I mount the filesystem read-only. It just panics the box when mounted
read/write, and fsck can't fix the damage.

My question was more along the lines of whether or not dump/restore
would see that those corrupted directory and file inodes were indeed
corrupt and not bother attempting to back them up, or if it would
happily back them up and restore them in their corrupted state to a new
filesystem, thus trashing it.

If it does, I can always use rsync.

> Dump examines the filesystem to see which files need to be backed up.
> So dumping a corrupted FS will probably not produce the desired
> results. If it did, we wouldn't need backups.

Ironically, this is the machine that holds the backups.

Fuzzy love,
Technical Administrator
CyberLeo.Net Webhosting
<CyberLeo at CyberLeo.Net>

Furry Peace! - http://www.fur.com/peace/

More information about the freebsd-questions mailing list