Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Apr 2007 19:03:03 -0500
From:      CyberLeo Kitsana <cyberleo@cyberleo.net>
To:        Jerry McAllister <jerrymc@msu.edu>,  FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: dump/restore corrupted filesystems
Message-ID:  <4626B1CE.4080904@cyberleo.net>
In-Reply-To: <20070418212243.GA59177@gizmo.acns.msu.edu>
References:  <4623843B.40006@cyberleo.net>	<20070416170825.GA91459@slackbox.xs4all.nl>	<462449C2.9000302@cyberleo.net>	<20070416222437.GA1924@slackbox.xs4all.nl>	<46268919.1080301@cyberleo.net> <20070418212243.GA59177@gizmo.acns.msu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Jerry McAllister wrote:
>> Smart says that the drives are fine, as does the manufacturer's disk
>> fitness tools. All the files that are readable contain correct data, but
>> the files that are corrupt are totally not readable, and cannot even be
>> removed manually:
> 
> Given that, I would try to make a dump(8) of it.   If dump dies on
> a particular file, try to exclude that file from the dump either by
> rm-ing it or setting a nodump flag and try again.   You may not 
> actually be able to do the rm or nodump flag though if you cannot
> mount it with write permission.   You might be able to force it 
> mounted without doing the fsck in single user.
> 
> Note that tar allows you to specify exclusions.   I usually don't
> suggest using tar for mass moves because it has weaknesses with
> hard links and might also not transfer flags and permissions
> correctly.  But, if tar is what it takes, then use it.

Force-mounting the filesystem works just fine. It's when I try to modify
any munged file that it panics the box, with ufs_dirbad or somesuch.

I have been using rsync to recover readable data, which handles
hard-links, permissions, sparse files, and et cetera. I figure it's
best, as that's what is used to drop the differential backups onto the
box in the first place.

--
Fuzzy love,
-CyberLeo
Technical Administrator
CyberLeo.Net Webhosting
http://www.CyberLeo.Net
<CyberLeo@CyberLeo.Net>

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



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