Subject: Re: mbrlabel vs. "Device not configured"
To: <>
From: David Laight <david@l8s.co.uk>
List: port-i386
Date: 06/25/2003 11:29:34
> Well, code says so (from wdopen in sys/dev/ata/wd.c):
> 
>         /* Check that the partition exists. */
>         if (part != RAW_PART &&
>             (part >= wd->sc_dk.dk_label->d_npartitions ||
>              wd->sc_dk.dk_label->d_partitions[part].p_fstype == FS_UNUSED)) {
>                 error = ENXIO;
> 
> So yeah, it works for wd0d, but not for wd0g.

One interestingly effect of this check is that (on i386) the 'c' partition
details are only ever used in one place - the one that stops you writing to
the sector where the netbsd disklabel is assumed to be.

(The label is written to the 2nd sector of the first bios/fdisk partition
that has type 169.)

	David

-- 
David Laight: david@l8s.co.uk