Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Feb 2007 22:04:15 -0800
From:      "j w" <jwdevel@gmail.com>
To:        freebsd-fs@freebsd.org
Subject:   strange fdisk numbers
Message-ID:  <fa8771800702222204s25a681aaqe915368c77235243@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello

(first post, so let me know if this is the wrong list for this)

I am working up the courage to use growfs, but got a little confused
by fdisk's numbers.
The output is below, but what interests me is that it says "heads=16",
but then later on has some partitions(slices) saying "head 254" and
such

there's 16 tracks/cylinder, so maybe that figures in the calculation
somehow? (16 tracks * 16 heads ?)

I put the output of bsdlabel -A as well

any ideas?


******* Working on device /dev/ad2 *******
parameters extracted from in-core disklabel are:
cylinders=26310 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=26310 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 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX)
    start 63, size 10490382 (5122 Meg), flag 0
	beg: cyl 0/ head 1/ sector 1;
	end: cyl 652/ head 254/ sector 63
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 14683410, size 11837070 (5779 Meg), flag 80 (active)
	beg: cyl 1023/ head 255/ sector 63;
	end: cyl 1023/ head 15/ sector 63
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>



# /dev/ad2s2:
type: unknown
disk: amnesiac
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 11743
sectors/unit: 11837070
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0		# milliseconds
track-to-track seek: 0	# milliseconds
drivedata: 0

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:  1048576        0    4.2BSD     2048 16384     8
  b:  2045792  1048576      swap
  c: 11837070        0    unused        0     0         # "raw" part, don't edit
  d:  3119104  3094368    4.2BSD     2048 16384 28552
  e:  1048576  6213472    4.2BSD     2048 16384     8
  f:  4575022  7262048    4.2BSD     2048 16384 28552



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fa8771800702222204s25a681aaqe915368c77235243>