From owner-freebsd-questions@FreeBSD.ORG Mon Apr 16 17:08:31 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 656E416A402 for ; Mon, 16 Apr 2007 17:08:31 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr1.xs4all.nl (smtp-vbr1.xs4all.nl [194.109.24.21]) by mx1.freebsd.org (Postfix) with ESMTP id F2F0113C4C7 for ; Mon, 16 Apr 2007 17:08:30 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr1.xs4all.nl (8.13.8/8.13.8) with ESMTP id l3GH8P9T026147; Mon, 16 Apr 2007 19:08:26 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id A8671B854; Mon, 16 Apr 2007 19:08:25 +0200 (CEST) Date: Mon, 16 Apr 2007 19:08:25 +0200 From: Roland Smith To: CyberLeo Kitsana Message-ID: <20070416170825.GA91459@slackbox.xs4all.nl> Mail-Followup-To: CyberLeo Kitsana , FreeBSD Questions References: <4623843B.40006@cyberleo.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IJpNTDwzlM2Ie8A6" Content-Disposition: inline In-Reply-To: <4623843B.40006@cyberleo.net> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.14 (2007-02-12) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: FreeBSD Questions Subject: Re: dump/restore corrupted filesystems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Apr 2007 17:08:31 -0000 --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--