From owner-freebsd-questions@FreeBSD.ORG Sat Sep 13 08:28:17 2003 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 2489516A4BF for ; Sat, 13 Sep 2003 08:28:17 -0700 (PDT) Received: from lennier.cc.vt.edu (lennier.cc.vt.edu [198.82.162.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3085D43FCB for ; Sat, 13 Sep 2003 08:28:16 -0700 (PDT) (envelope-from mdau@vt.edu) Received: from steiner.cc.vt.edu (IDENT:mirapoint@evil-steiner [10.1.1.14]) by lennier.cc.vt.edu (8.12.8/8.12.8) with ESMTP id h8DFSFTI130489 for ; Sat, 13 Sep 2003 11:28:15 -0400 (EDT) Received: from zathras (zathras.cc.vt.edu [198.82.162.117]) by steiner.cc.vt.edu (Mirapoint Messaging Server MOS 3.3.6-GR) with ESMTP id BTW68820; Sat, 13 Sep 2003 11:28:14 -0400 (EDT) X-WebMail-UserID: mdau Date: Sat, 13 Sep 2003 11:28:14 -0400 Sender: Matt Dau From: Matt Dau To: freebsd-questions@freebsd.org X-EXP32-SerialNo: 00002216 Message-ID: <3F64CD81@zathras> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Infinite Mobile Delivery (Hydra) SMTP v3.62.01 Subject: Bad partition table? 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: Sat, 13 Sep 2003 15:28:17 -0000 Hi, I'm having a problem with my old FreeBSD partition. I had the harddrive in a working system that i changed the motherboard in. It was unstable at first, causing the system to lock up a couple times. I finally got the problems worked out and installed 5.1 on a new drive. It is up and running now, but I have problems when trying to access the old drive. The first thing I noticed is that devfs wasn't creating /dev/ad2s1*. When I ran disklabel, it gave me the following output: # /dev/ad2s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 524288 63 4.2BSD 2048 16384 32776 b: 2055104 524351 swap c: 35648172 63 unused 0 0 # "raw" part, don't edit d: 524288 2579455 4.2BSD 2048 16384 32776 e: 524288 3103743 4.2BSD 2048 16384 32776 f: 32020204 3628031 4.2BSD 2048 16384 28512 partition c: partition extends past end of unit disklabel: partition c doesn't start at 0! disklabel: An incorrect partition c may cause problems for standard system utilities partition f: partition extends past end of unit Now wishing I had saved the information from when it was working, I tried fdisk to see what it would say: (jacobian|~)# fdisk /dev/ad2 ******* Working on device /dev/ad2 ******* parameters extracted from in-core disklabel are: cylinders=348861 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=348861 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 14 (0x0e),(Primary 'big' DOS (>= 32MB, LBA)) start 63, size 35648172 (17406 Meg), flag 0 beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 254/ sector 63 The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 35648235, size 315998550 (154296 Meg), flag 80 (active) beg: cyl 1023/ head 0/ sector 1; end: cyl 1023/ head 254/ sector 63 The data for partition 3 is: The data for partition 4 is: Partition 1 is DOS? Could that have gotten changed? Could that be preventing me from seeing the rest of ad2s1? When I try to mount ad2s1, i get the 'a' partition. I really really need what is on the 'f' partition.. Is there any way I can get that information back? Thanks in advance, Matt