Re: dump/restore corrupted filesystems



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.

Ditto if the corruption is so bad that fsck_ffs can't handle it. You can
e.g. tell fsck_ffs(8) to use a backup superblock, with the -b option.

Does anybody know whether dump/restore can gracefully handle filesystem
corruption, or will it happily back up and restore said damage to the
pristine filesystem?

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.

What you could do is use dd(1) with nc(1) to send a copy of the raw
device data to another machine, and try if you can pry your data from that.

Roland
--
R.F.Smith http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

Attachment: pgpv5ZhTvH3eV.pgp
Description: PGP signature



Relevant Pages

  • Re: question about CreateFile and FILE_FLAG_WRITE_THROUGH
    ... If power is lost during a write, the data being written will be incomplete ... FAT has no transactions. ... mount the volume as normal (as long as the corruption didn't destroy the FAT ...
    (microsoft.public.pocketpc.developer)
  • Re: Error Accessing File - Need Nurse maid
    ... Andy this sounds like this very nasty old corruption: ... Network connection may have been lost." ... Andy Pagorek ...
    (microsoft.public.access.reports)
  • Re: Film Lovers Lament
    ... just in case their digital files are lost due to ... corruption of the media they are stored on. ... The National Archives does not agree with you. ... Part of the 1970 US Census has become lost to us, ...
    (rec.photo.equipment.35mm)
  • Re: EWF Commit Question: What if file is corrupted in the overlay?
    ... CHKDSK will do one of several different actions on the file, ... If the file is "lost" (common problem in FAT ... corruption, so it's really not very easy to tell what will happen. ... Matt Kellner ...
    (microsoft.public.windowsxp.embedded)
  • Has our government become obsolete?
    ... greed, selfishness, corruption, and mediocrity that it has lost its legitimacy? ...
    (alt.politics)