Partition Table on the fritz

Matt Dau mdau at vt.edu
Wed Sep 17 17:48:32 PDT 2003


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:
<UNUSED>
The data for partition 4 is:
<UNUSED>

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




More information about the freebsd-stable mailing list