From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 15 13:02:10 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BFDE4D85 for ; Tue, 15 Apr 2014 13:02:10 +0000 (UTC) Received: from mail.0x20.net (mail.0x20.net [217.69.76.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7CB7917AB for ; Tue, 15 Apr 2014 13:02:09 +0000 (UTC) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id 4C7EE6A600D; Tue, 15 Apr 2014 15:02:07 +0200 (CEST) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.7/8.14.7) with ESMTP id s3FD26pT070489; Tue, 15 Apr 2014 15:02:07 +0200 (CEST) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.7/8.14.7/Submit) id s3FD264n069412; Tue, 15 Apr 2014 15:02:06 +0200 (CEST) (envelope-from lars) Date: Tue, 15 Apr 2014 15:02:06 +0200 From: Lars Engels To: George Mitchell Subject: Re: Clobbered MBR partition table Message-ID: <20140415130206.GE37706@e-new.0x20.net> References: <534D13A2.9000706@m5p.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6e7ZaeXHKrTJCxdu" Content-Disposition: inline In-Reply-To: <534D13A2.9000706@m5p.com> X-Editor: VIM - Vi IMproved 7.4 X-Operation-System: FreeBSD 8.4-RELEASE-p4 User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2014 13:02:10 -0000 --6e7ZaeXHKrTJCxdu Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 15, 2014 at 07:10:26AM -0400, George Mitchell wrote: > My laptop has a hard disk I partitioned, whoops, I mean sliced, into > four slices when I installed 8.2-STABLE on it a couple of years ago. > The first, third, and fourth slices I reserved for future experiments, > and most of the space went into the second slice where I installed > 8.2-STABLE. Time went on and the second slice is currently running > 9.2-STABLE, and I installed 10.0-PRERELEASE on the first slice late > last year. But mostly I have been booting off the second slice, which > means pressing enter at the initial F1/F2/F3/F4 boot prompt. >=20 > Then last Friday I was preparing to update the first slice to the > latest 10.0-STABLE. Things were going well until I rebooted and > typed F1 at the boot prompt. I immediately got a second prompt > offering me the options of second disk or PXE. At this point the > machine was unbootable, as whatever I typed would cycle between the > F1/F2/F3/F4 alternatives and the second disk/PXE alternatives. I hit > ctrl-alt-delete and got told there was no bootable disk. >=20 > So I got a new disk and plugged in into the laptop and started over > again. (My first attempt was with a 10.0-RELEASE memstick image, > but that's a subject for another day.) Out of conservatism, I have > installed 8.4-STABLE on the new disk. Then the first thing I did > was to hook up the old disk through a USB adapter and dump it with > dd to a backup image. That's going to be finished in a couple of > hours, at which point I hope to poke around on the old disk and > repair what I assume is a clobbered master boot record partition > table. >=20 > My question is: > What's the best tool to help reconstruct the partition table? I > think my problem will be mostly solved if I can find the BSD labels > on the old disk (which, by the way, has not exhibited any I/O errors > during the "dd" backup process). Do BSD labels have a recognizable > signature? >=20 > Thanks for your help and attention. -- George You can try sysutils/testdisk --6e7ZaeXHKrTJCxdu Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iKYEARECAGYFAlNNLc5fFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl bnBncC5maWZ0aGhvcnNlbWFuLm5ldDE3RkMwOEUxNUUwOUJEMjE0ODlFMjA1MDI5 Q0U3NURBQzBGNzY5RjgACgkQKc512sD3afjPDgCgnCOgRBxh//yH/3vqHWc4VKBE J+AAoK7PmOQjmwRSZbs0yeovpr6La1tM =uOKC -----END PGP SIGNATURE----- --6e7ZaeXHKrTJCxdu--