*BSD News Article 3303


Return to BSD News archive

Path: sserve!manuel!munnari.oz.au!hp9000.csc.cuhk.hk!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!mips!mips!kpc!amdcad!BitBlocks.com!bvs
From: bvs@BitBlocks.COM (Bakul Shah)
Newsgroups: comp.unix.bsd
Subject: Re: Using Swap partition on 2nd drive?
Message-ID: <1992Aug8.233253.3870@BitBlocks.COM>
Date: 8 Aug 92 23:32:53 GMT
References: <1992Aug7.171205.10281@gumby.dsd.trw.com> <1992Aug7.181344.497@zip.eecs.umich.edu> <1992Aug7.202016.17333@coe.montana.edu> <BsnH56.6G2@obiwan.uucp>
Organization: Bit Blocks, Inc.
Lines: 41

bob@obiwan.uucp (Bob Willcox) writes:

>swapon: /dev/wd1b: Device not configured

>Can someone please tell me what I have failed to do or done wrong?
>I am quite new to BSD systems and have run out of ideas.

I haven't used that patch so this is pure speculation but
seems like the second disk was not found by the kernel.
Look for a  startup message of the kind

wd1 <...> at 0x1f0 irq 14 on isa

If you don't see that the disk was not seen by the kernel.

If the disk was seen, you may not have disklabel'ed it.
Check by doing a 

disklabel wd1

If the disk was labelled, the above should succeed.

One other possibility is that /dev/wd1b does not exist.
/dev/MAKEDEV will make these special files for you if
you do (as root and in the /dev directory)

	MAKEDEV wd1

or you can manually do

	mknod /dev/wd1b b 0 9

If all of the above works *and* your swapon /dev/wd1b doesn't, 
maybe the patch hasn't worked for you somehow.

Once swapon works you can add the following line to your /etc/fstab
to add wd1b swap on bootup:

/dev/wd1b	none	swap	sw

-- Bakul Shah <bvs@bitblocks.com>