From owner-freebsd-questions Mon Jul 29 8: 8:41 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF71737B400 for ; Mon, 29 Jul 2002 08:08:37 -0700 (PDT) Received: from relay02.cablecom.net (relay02.cablecom.net [62.2.33.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id C36FA43E5E for ; Mon, 29 Jul 2002 08:08:36 -0700 (PDT) (envelope-from hanspeter_roth@hotmail.com) Received: from gicco.cablecom.ch (dclient217-162-80-24.hispeed.ch [217.162.80.24]) by relay02.cablecom.net (8.11.6/8.11.4/SOL/AWF/MXRELAY/06072001) with ESMTP id g6TF8Zm41787 for ; Mon, 29 Jul 2002 17:08:35 +0200 (CEST) Received: (from idefix@localhost) by gicco.cablecom.ch (8.11.6/8.11.6) id g6TF8Zo00447 for freebsd-questions@FreeBSD.ORG; Mon, 29 Jul 2002 17:08:35 +0200 (CEST) (envelope-from hanspeter_roth@hotmail.com) Date: Mon, 29 Jul 2002 17:08:35 +0200 From: Hanspeter Roth To: freebsd-questions@FreeBSD.ORG Subject: Re: reconstructing partition table Message-ID: <20020729170835.A364@gicco.cablecom.ch> Reply-To: freebsd-questions@FreeBSD.ORG Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: <20020728201409.A1368@gicco.cablecom.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020728201409.A1368@gicco.cablecom.ch>; from hanspeter_roth@hotmail.com on Sun, Jul 28, 2002 at 08:14:09PM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Jul 28 at 20:14, Hanspeter Roth spoke: > And it seems that the FreeBsd partition starts on logical cylinder > 2081. I realized now that this is beyond the 1023 boundary. But it > seems to have worked before. > Gpart found: > > Primary partition(3) > type: 165(0xA5)(FreeBSD/NetBSD/386BSD) > size: 3216mb #s(6586650) s(33431265-40017914) > chs: (1023/254/63)-(1023/254/63)d (2081/0/1)-(2490/254/63)r > > It shows two different chs settings. > I tryed to set the partition using Linux-sfdisk specifying start and > size in sectors. After booting the FreeBSD fixit cd fdisk shows some > strange chs setting: 1023/254/63-1023/254/63. I use sfdisk on my laptop's hd frequently to map different BSDs. But for this situation sfdisk doesn't seem to be optimal. I installed another dummy FreeBSD on a spare partition and deleted it afterwards. But now I can boot the original FreeBSD again. The magic seems to be in the header value which obviously must be 255 rather than 254. > Is there some (free/commertial) tool which can reconstruct FreeBSD > partitions? I downloaded Ranish partition manager but then tried testdisk first. (http://www.cgsecurity.org/testdisk.html) Testdisk also allowed me to find my other logical fat partitions which I couldn't find with gpart (0.10?). -Hanspeter Reply-To: mailinglist To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message