From owner-freebsd-questions@FreeBSD.ORG Fri Sep 18 05:24:24 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E280A1065670 for ; Fri, 18 Sep 2009 05:24:24 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr13.xs4all.nl (smtp-vbr13.xs4all.nl [194.109.24.33]) by mx1.freebsd.org (Postfix) with ESMTP id 788958FC0A for ; Fri, 18 Sep 2009 05:24:24 +0000 (UTC) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr13.xs4all.nl (8.13.8/8.13.8) with ESMTP id n8I5ONxA036055; Fri, 18 Sep 2009 07:24:23 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id E29B4BAA0; Fri, 18 Sep 2009 07:24:22 +0200 (CEST) Date: Fri, 18 Sep 2009 07:24:22 +0200 From: Roland Smith To: jaymax Message-ID: <20090918052422.GA8637@slackbox.xs4all.nl> References: <25498179.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline In-Reply-To: <25498179.post@talk.nabble.com> 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.20 (2009-06-14) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: Undelete or recover from badblocks on disks 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: Fri, 18 Sep 2009 05:24:25 -0000 --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 17, 2009 at 05:37:34PM -0700, jaymax wrote: >=20 > I seemed to have lost some critical dump files during a restore. The > directory in which they were backed up in seemed to vaporize. The data was > present as indicated by df -h but the directory was not listed. > fsck on the disk was ineffective > fsck_ffs produced an extensive listing of bad block, a final SALVAGE opti= on, > but on completion, the disk "capacity" from the df -h was significantly > reduced.=20 >=20 > Is there anyway of recovering even 'partial' data from these lost blocks? > The drive has been disconnected so that there would be no 'write' > activities? Check the disk with smartctl(8) from the sysutils/smartmontools port to ch= eck that this isn't a hardware malfunction. If it is a hardware malfunction, the disk is dying and should be replaced ASAP. If the hardware is OK, try fls from sysutils/sleuthkit. As long as the data isn't overwritten, it should still be there. 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) --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) iEYEARECAAYFAkqzGYYACgkQEnfvsMMhpyUvPwCfZwdv04yRTkZSOxtFP/XcgpRT hqQAn2OY9LeduxLNXiLTO3dB1ArfeRY0 =ckwF -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT--