From owner-freebsd-questions Sun Jul 28 12:16: 5 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 45F0837B400 for ; Sun, 28 Jul 2002 12:16:03 -0700 (PDT) Received: from obelix.spectraweb.ch (obelix.plusnet.ch [194.158.230.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0E8A43E3B for ; Sun, 28 Jul 2002 12:16:01 -0700 (PDT) (envelope-from hanspeter_roth@hotmail.com) Received: from gicco.cablecom.ch (pop-ls-9-4-1-dialup-63.freesurf.ch [194.230.243.63]) by obelix.spectraweb.ch (8.11.2/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id g6SJFpn23804 for ; Sun, 28 Jul 2002 21:15:52 +0200 Received: (from idefix@localhost) by gicco.cablecom.ch (8.11.6/8.11.6) id g6SIEAm01513 for freebsd-questions@freebsd.org; Sun, 28 Jul 2002 20:14:10 +0200 (CEST) (envelope-from hanspeter_roth@hotmail.com) Date: Sun, 28 Jul 2002 20:14:09 +0200 From: Hanspeter Roth To: freebsd-questions@freebsd.org Subject: reconstructing partition table Message-ID: <20020728201409.A1368@gicco.cablecom.ch> Reply-To: freebsd-questions@freebsd.org Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i 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 Hello, yes I have no backup and I have destroyed the partition table. Now I'm trying to reconstruct the partition table. One of the partitions is a FreeBsd one. The disklabel seems to be still intact. I can boot using the fixit floppy unsing /boot/loader. But I can't boot using /kernel. Booteasy displays FreeBsd but beeps when selecting it. Before I destroyed the partition table booteasy was cooparative selecting FreeBsd. I was trying Gpart Linux-fdisk, Linux-sfdisk and FreeBsd-fdisk but couldn't manage to fix the boot problem. The disk is a 20GB with a logical geometry of 2491/255/63. 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. Then I tried to set the chs values by the fdisk of FreeBSD using 2081/0/1-2490/254/63. But fdisk want's to ajust them: sysid 165,(FreeBSD/NetBSD/386BSD) start 33431265, size 6586650 (3216 Meg), flag 80 (active) beg: cyl 33/ head 0/ sector 1; end: cyl 442/ head 254/ sector 63 Are we happy with this entry? [n] No I'm not happy with this entry. But how can I make fdisk accept 2081/0/1-2490/254/63 ? Is there some (free/commertial) tool which can reconstruct FreeBSD partitions? -Hanspeter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message