Subject: Re: mbrlabel vs. "Device not configured"
To: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
From: None <cube@cubidou.net>
List: port-i386
Date: 06/24/2003 14:02:23
On Tue, Jun 24, 2003 at 01:51:23PM +0200, Hubert Feyrer wrote:
> On Tue, 24 Jun 2003 cube@cubidou.net wrote:
> > "unused", I believe. Change it to something else.
> 
> No, that's not the problem. I can cat wd0d just fine, and it's "unused"
> too. Same for raw devices btw.
> 
> I can also reproduce this on a NetBSD system (i386), where I can read
> rsd0d but not rsd0c (also "Device not configured"). Very strange...

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.

Quentin Garnier.