Subject: disklabel outside of fdisk
To: None <netbsd-help@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 07/20/2005 17:18:39
Any hints or comments about fixing fdisk partitions where the disklabel
partitions are outside?
For example, the fdisk looks like:
Disk: /dev/rwd0d
NetBSD disklabel disk geometry:
cylinders: 79656, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 80293248
BIOS disk geometry:
cylinders: 1023, heads: 240, sectors/track: 63 (15120 sectors/cylinder)
total sectors: 80293248
Partition table:
0: NetBSD (sysid 169)
start 63, size 979902 (478 MB, Cyls 0-64/195/1), Active
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
Bootselector disabled.
-=-=-=-
And the disklabel is:
# /dev/rwd0d:
type: unknown
disk: amnesiac
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 79656
total sectors: 80293248
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 922320 63 4.2BSD 1024 8192 46120 # (Cyl. 0*- 915*)
b: 51408 922383 swap # (Cyl. 915*- 966*)
c: 979902 63 unused 0 0 # (Cyl. 0*- 972*)
d: 80293248 0 unused 0 0 # (Cyl. 0 - 79655)
e: 1024000 973791 4.2BSD 1024 8192 46552 # (Cyl. 966*- 1981*)
-=-=-=-=-
Notice that wd0e is outside of the fdisk partition 0.
I hope to grow the fdisk partition 0 or create a new fdisk partition 1 to
include this space. But I don't want to accidently make wd0a unusable. (It
is a production box.)
Any thoughts before I do this?
Jeremy C. Reed
BSD News, BSD tutorials, BSD links
http://www.bsdnewsletter.com/