Subject: swapon: /dev/sd1b: Device not configured
To: None <netbsd-help@NetBSD.ORG>
From: Sebastien Monassa <fcu@worldnet.fr>
List: netbsd-help
Date: 06/05/1996 13:47:57
I checked everything twice, compiled with different "config" lines and still can't get it to work.
swapon: /dev/sd1b: Device not configured
Here's all the stuff I've done for adding the new swap device:
The two disks (sd0 & sd1) are identical NEC SCSI2 drives.
*** First the disklabel of the root disk with first 32Mo swap partition
# /dev/rsd0d:
type: SCSI
disk: NetBSD
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 1416
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
5 partitions:
# size offset fstype [fsize bsize cpg]
a: 409248 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 405)
b: 65520 409248 swap # (Cyl. 406 - 470)
c: 1427328 0 unused 0 0 # (Cyl. 0 - 1415)
d: 1427328 0 unused 0 0 # (Cyl. 0 - 1415)
e: 952560 474768 4.2BSD 1024 8192 16 # (Cyl. 471 - 1415)
*** Second the disklabel of the usr disk with second 32Mo swap partition (the one not configured)
# /dev/rsd1d:
type: SCSI
disk: nec696usr
label: usr
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 1416
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]
a: 1361808 0 4.2BSD 1024 8192 0 # (Cyl. 0 - 1350)
b: 65520 1361808 swap # (Cyl. 1351 - 1415)
d: 1427328 0 unused 0 0 # (Cyl. 0 - 1415)
*** Third the /etc/fstab file
/dev/sd0a / ffs rw 0 1
/dev/sd0b swap swap sw 0 0
/dev/sd1a /usr ffs rw 0 2
/dev/sd1b swap swap sw 0 0 <- the faulty one
/dev/sd0e /usr/distrib ffs rw 0 3
/dev/sd2a /home ffs rw 0 2
/kern /kern kernfs rw 0 0
/proc /proc procfs rw 0 0
*** Fourth the devices (surely no problem here)
0 brw-r----- 1 root operator 4, 1 May 24 12:48 /dev/sd0b
0 brw-r----- 1 root operator 4, 9 May 24 12:48 /dev/sd1b
0 brw-r----- 1 root operator 4, 17 May 24 12:48 /dev/sd2b
0 brw-r----- 1 root operator 4, 25 May 24 12:48 /dev/sd3b
*** Fifth the kernel config line: i tried these with the same result
config netbsd root on sd0a swap on sd0b and sd1b dumps on sd1b
config netbsd root on sd0 swap on sd0 and sd1 dumps on sd1b
config netbsd root on sd0 swap on sd0 and sd1 dumps on sd2b
*** Finally
I check .../compile/BO/swapnetb.c and it contains sd1 as a swap device.
dev_t rootdev = makedev(4, 0); /* sd0 */
dev_t dumpdev = makedev(4, 9); /* sd1b */
struct swdevt swdevt[] = {
{ makedev(4, 1), 0, 0 }, /* sd0 */
{ makedev(4, 9), 0, 0 }, /* sd1 */
{ NODEV, 0, 0 }
};
My SCSI card is a AHA2940. Everything works fine and /usr is on sd1.
Now what could I do? Did I missed something?
Seb.