From owner-freebsd-questions@FreeBSD.ORG Mon Jun 7 10:17:28 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 9980916A4CE for ; Mon, 7 Jun 2004 10:17:28 +0000 (GMT) Received: from mail804.megamailservers.com (mail804.carrierinternetsolutions.com [69.49.106.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30E9343D39 for ; Mon, 7 Jun 2004 10:17:28 +0000 (GMT) (envelope-from strick@covad.net) X-POP-User: strick.covad.net Received: from mist.nodomain (h-68-164-174-158.snfccasy.dynamic.covad.net [68.164.174.158])i57AHO3o014840; Mon, 7 Jun 2004 06:17:24 -0400 Received: from mist.nodomain (localhost [127.0.0.1]) by mist.nodomain (8.12.11/8.12.11) with ESMTP id i57AHNxl000792; Mon, 7 Jun 2004 03:17:23 -0700 (PDT) (envelope-from dan@mist.nodomain) Received: (from dan@localhost) by mist.nodomain (8.12.11/8.12.11/Submit) id i57AHNpW000791; Mon, 7 Jun 2004 03:17:23 -0700 (PDT) (envelope-from dan) Date: Mon, 7 Jun 2004 03:17:23 -0700 (PDT) From: Dan Strick Message-Id: <200406071017.i57AHNpW000791@mist.nodomain> To: ben@spooty.net cc: freebsd-questions@freebsd.org Subject: Re: Dangerous file system / disk problem 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, 07 Jun 2004 10:17:28 -0000 On Sun, 6 Jun 2004 19:31:48 +0100, Ben Paley wrote: >> > ... > > ******* Working on device /dev/ad1 ******* > parameters extracted from in-core disklabel are: > cylinders=155061 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=155061 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 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 63, size 156296322 (76316 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 1023/ head 254/ sector 63 > The data for partition 2 is: > sysid 14 (0x0e),(Primary 'big' DOS (>= 32MB, LBA)) > start 156296385, size 0 (0 Meg), flag 0 > beg: cyl 1022/ head 0/ sector 1; > end: cyl 1022/ head 254/ sector 63 > The data for partition 3 is: > > The data for partition 4 is: > > > ... > > I don't really understand this, frankly: it certainly gives the right > partition type code for the main partition, but I'm not sure of the relevance > of the other stuff... does it look ok to you? Or is this "partition 2" where > the problem is? Partition Magic in Windows sees only one partition on that > disk. The slice editor in sysinstall shows this for ad1: > > ... > > 5.2-CURRENT. But BSD sees everything ok, it's Windows that's having a > problem. I don't feel confident making any changes in Windows, however, > because it seems as though my only option there would be to format the > partition! Which, from a Windows point of view, would certainly be a > solution of sorts... >> Partition 2 (sysid 14, start 156296385) is bogus. I don't have a clue as to how it might have been created. If the beginning/end c/h/s addresses are to be believed, it overlaps partition 1. I would not dare to format it. Instead, I would use the "fdisk -u ad1" command to delete it and hope that it never comes back. If you do this, it would be a good idea to back up your FreeBSD system first, especially since you are probably not very familiar with the "fdisk -u" command and might possibly make a fatal mistake. Dan Strick