Subject: How to use disklabel
To: netbsd/macppc <port-macppc@netbsd.org>
From: Philip Brodd <pbrodd@blue.weeg.uiowa.edu>
List: port-macppc
Date: 03/06/2001 15:22:09
I have two scsi disks that I'd like to add to my running 1.5 system, but
I'm confused about how to use the disklabel program. I have /, /usr,
and swap partitions on sd0 now; I'd like to mount /usr/pkg on sd1 and
/home on sd2, plus maybe a 128mb swap partition on each, in the event
that I add more memory someday.
From looking at disklabels from other NetBSD installs, it seems that 'a'
is always used with the / partition, 'b' with swap, and 'g' with /usr.
Are these hard and fast rules, or just conventions? To configure sd1 as
I described above, would I just replace the 'a' and 'b' lines in the
partitions section with the sizes and fs types I want?
Also, I see there is an "offset" of 1216 on partition a on each disk--do
I need to preserve that?
Phil Brodd
Here is the current output of disklabel for each disk:
# /dev/rsd1c:
type: SCSI
disk: FIREBALL1280S
label: fictitious
flags:
bytes/sector: 512
sectors/track: 151
tracks/cylinder: 4
sectors/cylinder: 604
cylinders: 4135
total sectors: 2503872
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
3 partitions:
# size offset fstype [fsize bsize cpg]
a: 2502646 1216 HFS # (Cyl. 2*- 4145*)
b: 10 2503862 unknown # (Cyl. 4145*- 4145*)
c: 2503872 0 unused 0 0 # (Cyl. 0 - 4145*)
# /dev/rsd2c:
type: SCSI
disk: DCAS-32160
label: fictitious
flags:
bytes/sector: 512
sectors/track: 172
tracks/cylinder: 3
sectors/cylinder: 516
cylinders: 8188
total sectors: 4226725
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
3 partitions:
# size offset fstype [fsize bsize cpg]
a: 4225499 1216 HFS # (Cyl. 2*- 8191*)
b: 10 4226715 unknown # (Cyl. 8191*- 8191*)
c: 4226725 0 unused 0 0 # (Cyl. 0 - 8191*)