Subject: port-i386/930: swapon: /dev/sd0b: Device not configured
To: None <gnats-admin@NetBSD.ORG>
From: Simon J. Gerraty <sjg@zen.void.oz.au>
List: netbsd-bugs
Date: 03/30/1995 12:35:03
>Number:         930
>Category:       port-i386
>Synopsis:       swapon: /dev/sd0b: Device not configured, but it is...
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 30 12:35:01 1995
>Originator:     Simon J. Gerraty
>Organization:
Zen Programming...
>Release:        1.0
>Environment:
	
System: NetBSD zen.void.oz.au 1.0A NetBSD 1.0A (ZEN) #0: Wed Mar 29 22:56:59 EST 1995 root@zen.void.oz.au:/d2/current/src/sys/arch/i386/compile/ZEN i386

Sources SUPed 95/03/27

>Description:
	
Kernel config states:
config		netbsd	root on wd0 swap on wd0 and sd0 and sd1 and sd2
#config		netbsd	swap generic
#options		GENERIC

and indeed swapnetbsd.c reflects that:
$ more ../compile/ZEN/swapnetbsd.c
#include <sys/param.h>
#include <sys/conf.h>

dev_t   rootdev = makedev(0, 0);        /* wd0 */
dev_t   dumpdev = makedev(0, 1);        /* wd0b */

struct  swdevt swdevt[] = {
        { makedev(0, 1),        0,      0 },    /* wd0 */
        { makedev(4, 1),        0,      0 },    /* sd0 */
        { makedev(4, 9),        0,      0 },    /* sd1 */
        { makedev(4, 17),       0,      0 },    /* sd2 */
        { NODEV, 0, 0 }
};

Yet when I booted of the new kernel, I got:
swapon: /dev/sd0b: Device not configured

I assumed that by the time I'd installed swapon again (after building
new libs)  all would be well, but the result is the same.

>How-To-Repeat:
	
>Fix:
	
>Audit-Trail:
>Unformatted: