From owner-freebsd-questions@FreeBSD.ORG Mon May 24 16:14:26 2004 Return-Path: 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 83AEC16A4CE for ; Mon, 24 May 2004 16:14:26 -0700 (PDT) Received: from galilee.polands.org (CPE-24-208-53-234.new.rr.com [24.208.53.234]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A26143D3F for ; Mon, 24 May 2004 16:14:25 -0700 (PDT) (envelope-from doug@polands.org) Received: from email.polands.org (samaria.polands.org [172.16.1.17]) by galilee.polands.org (8.12.9/8.12.9) with SMTP id i4ONGZmq040569; Mon, 24 May 2004 18:16:45 -0500 (CDT) (envelope-from doug@polands.org) Received: from 172.16.1.16 (proxying for 172.16.1.35) (SquirrelMail authenticated user djp) by email.polands.org with HTTP; Mon, 24 May 2004 18:14:13 -0500 (CDT) Message-ID: <2028.172.16.1.16.1085440453.squirrel@email.polands.org> In-Reply-To: <20040522200257.D37289@wonkity.com> References: <40AFDA14.8030401@polands.org> <20040522200257.D37289@wonkity.com> Date: Mon, 24 May 2004 18:14:13 -0500 (CDT) From: "Doug Poland" To: "Warren Block" User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal cc: questions@freebsd.org Subject: Re: Invalid partition table after sysinstall modifications X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 May 2004 23:14:26 -0000 Warren Block said: > On Sat, 22 May 2004, Doug Poland wrote: > >> I've got a 4.9-STABLE system that was dual-booted between FBSD and >> Win2K. I had no further need for the windows slice so I used sysinstall >> to delete the NTFS slice, write it as type 165, newfs'd it, mounted it, >> and wrote a bunch of data to the new ufs slice. So far so good... >> About 8 hours after this procedure the system hung, I rebooted and >> received the message, >> >> "Invalid partition table" >> >> I was able to boot the system with a FreeSBIE live bootable CDROM and >> fsck all the ufs slices. The data on all slices appear to be good, but >> I cannot figure out how to get this box to boot again. I've google'd >> and read the appropriate handbook sections. > > Hmm. It looks like that error comes from the plain mbr code > (/boot/mbr), not the boot-selector loader (/boot/boot0). The plain mbr > only wants one partition (slice) to be active. > > See what fdisk has to say about your partitions. > djp@FreeSBIE:~/djp# fdisk /dev/ad0 ******* Working on device /dev/ad0 ******* parameters extracted from in-core disklabel are: cylinders=119150 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=119150 heads=16 sectors/track=63 (1008 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 22 (0x16),(OS/2 BM: hidden DOS with 16-bit FAT (>= 32MB)) start 63, size 4096512 (2000 Meg), flag 0 beg: cyl 0/ head 1/ sector 1; end: cyl 254/ head 254/ sector 63 The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 4096575, size 20964825 (10236 Meg), flag 80 (active) beg: cyl 255/ head 0/ sector 1; end: cyl 1023/ head 254/ sector 63 The data for partition 3 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 25061400, size 95040540 (46406 Meg), flag 80 (active) beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 254/ sector 63 The data for partition 4 is: I'm not sure what we're looking for here. -- Regards, Doug