Date: Mon, 16 Apr 2007 19:08:25 +0200 From: Roland Smith <rsmith@xs4all.nl> To: CyberLeo Kitsana <cyberleo@cyberleo.net> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: dump/restore corrupted filesystems Message-ID: <20070416170825.GA91459@slackbox.xs4all.nl> In-Reply-To: <4623843B.40006@cyberleo.net> References: <4623843B.40006@cyberleo.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 --=20 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) --IJpNTDwzlM2Ie8A6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iD8DBQFGI62JEnfvsMMhpyURAvjSAKCtHqybf5W7L1MIRfvcGMT6yN+XwgCcCSVG RXeLca4il0OL2uV3djZcm9Y= =+qMC -----END PGP SIGNATURE----- --IJpNTDwzlM2Ie8A6--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070416170825.GA91459>