From owner-freebsd-questions Sat Sep 14 6: 9: 2 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 7B96737B400 for ; Sat, 14 Sep 2002 06:08:59 -0700 (PDT) Received: from relay01.cablecom.net (relay01.cablecom.net [62.2.33.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 905E343E75 for ; Sat, 14 Sep 2002 06:08:58 -0700 (PDT) (envelope-from hanspeter_roth@hotmail.com) Received: from gicco.cablecom.ch (dclient80-218-72-46.hispeed.ch [80.218.72.46]) by relay01.cablecom.net (8.12.5/8.12.5/SOL/AWF/MXRELAY/20020820) with ESMTP id g8ED8u20065413 for ; Sat, 14 Sep 2002 15:08:56 +0200 (CEST) (envelope-from hanspeter_roth@hotmail.com) Received: (from idefix@localhost) by gicco.cablecom.ch (8.11.6/8.11.6) id g8ED8tD00499 for freebsd-questions@freebsd.org; Sat, 14 Sep 2002 15:08:55 +0200 (CEST) (envelope-from hanspeter_roth@hotmail.com) Date: Sat, 14 Sep 2002 15:08:55 +0200 From: Hanspeter Roth To: freebsd-questions@freebsd.org Subject: recovering ufs after fat games Message-ID: <20020914150855.A408@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, I have a disk with 2491 cylinders. Windows C partition is at the front and FreeBsd is starting at cylinder 2081. After installing FreeBsd with it's boot manager this is no problem. Recently I've destroyed the Windows C partition and have reinstalled Windows. And of course Bill knows that after installing Windows users don't need to access FreeBsd anymore. With the fixit CD I can still mount the root of Freebsd. I'm using /dev/ad0s4 instead of ad0s4a but at least mounting seems to work. Then I chroot to the old Freebsd root and mount old /usr call `boot0cfg -Bv /dev/ad0'. Thereafter FreeBsd appears in slot 4 of the boot menu. But trying to select it just beeps and refuses to boot. It seems that my boot0cfg command didn't achieve the whole job. Then I installed a dummy FreeBsd on partition (slice?) 3. This makes also FreeBsd on the old partition bootable again. Installing a dummy FreeBsd must have done something which my previous boot0cfg command didn't. Installing a dummy FreeBsd is just a little tedious. Is there a more direct means to make the old FreeBsd bootable again? Fdisk prints ******* Working on device /dev/ad0 ******* parameters extracted from in-core disklabel are: cylinders=2491 heads=255 sectors/track=63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=2491 heads=255 sectors/track=63 (16065 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 12,(DOS or Windows 95 with 32 bit FAT, LBA) start 63, size 2056257 (1004 Meg), flag 0 beg: cyl 0/ head 1/ sector 1; end: cyl 127/ head 254/ sector 63 The data for partition 2 is: sysid 3,(XENIX /usr filesystem) start 2056320, size 7566615 (3694 Meg), flag 0 beg: cyl 128/ head 0/ sector 1; end: cyl 598/ head 254/ sector 63 The data for partition 3 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 9622935, size 2040255 (996 Meg), flag 0 beg: cyl 599/ head 0/ sector 1; end: cyl 725/ head 254/ sector 63 The data for partition 4 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 33431265, size 6586650 (3216 Meg), flag 80 (active) beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 254/ sector 63 (Partition 2 is just a fake partition.) -Hanspeter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message