Subject: Re: new disk
To: Richard Horwood <rich@mondial.com.au>
From: None <rmcm@compsoft.com.au>
List: netbsd-help
Date: 08/26/1998 16:14:17
1. Put a minimal entry in /etc/disktab - dt,ty,se,ns and nc
attributes should be enough.
eg
fuj1606|FUJITSU M1606S-512 1041MB SCSI2:\
:dt=SCSI:ty=winchester:se#512:nt#6:ns#102:nc#3457:
2. Write the label using this prototype
disklabel -w -r sd1 fuj1606
^ ^^^
| \------ from disktab
\--------new disk id
3. You will then have a basic label on the disk, which you can edit
(add partitions etc) with
disklabel -e -r sd1
4. newfs etc
Richard Horwood writes:
> [...]
> > You probably want the -w option in there also. The default action of
> > disklabel is to try to read the label.
> >
> > Do you have a NetBSD system already up and running that you can read the
> > disklabel manpage on?
>
> Yes, but it's not especially straightforward. I did this:
>
> # disklabel -e /dev/rwd1d
> [...edit label...]
> disklabel: ioctl DIOCWDINFO: No disk label on disk;
> use "disklabel -r" to install initial label
> re-edit the label? [y]:
>
> So I try:
>
> # disklabel -r -e /dev/rwd1d
>
> or
> # disklabel -i -r /dev/rwd1d
>
> And get:
> disklabel: no disk label
>
> in both instances.
>
> So, in order to write the initial label, there must be an initial label?
> That makes absolutely not damn sense at all.
>
> -R.
--
------------------------------------------------------------
Rex McMaster rmcm@compsoft.com.au
rex@mcmaster.wattle.id.au
PGP Public key: http://www.compsoft.com.au/~rmcm/pgp-pk