[146] in netbsd-help mailing list archive
Re: using disklabel to change label for DOS disk
daemon@ATHENA.MIT.EDU (ericding@MIT.EDU)
Tue Apr 4 16:35:31 1995
From: ericding@MIT.EDU
Date: Tue, 4 Apr 95 16:34:49 -0400
To: ghudson@MIT.EDU
Cc: netbsd-help@MIT.EDU
> That's the "right" way of doing it. It's also probably possible to
> use an in-core disklabel, i.e. have /etc/rc.local read in a disklabel
> for the disk from the filesystem.
OK, I've been trying various ways of doing this, with no success. It looks
like the best chance is with "disklabel -R wd0 [protofile]" which would
write an in-core disklabel, but I haven't been able to get it to work
successfully. I get an error telling me I should use the -r flag as well;
but if I do this, doesn't this clobber the os-bs 2.0 boot record?
I've been editing the output of "disklabel wd0" (included below), but am
not sure what the correct things to change/add are... can anyone help me?
I have read the man page, really I have, but it's just not enlightening
enough... help?
Thanks much,
Eric
# /dev/rwd0d:
type: unknown
disk:
label: QUANTUM PD170A
flags:
bytes/sector: 512
sectors/track: 34
tracks/cylinder: 10
sectors/cylinder: 340
cylinders: 968
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
4 partitions:
# size offset fstype [fsize bsize cpg]
d: 329120 0 unused 0 0 # (Cyl. 0 - 967)