[net.unix-wizards] swapon problem

eichelbe@nadc.ARPA (09/10/85)

	I have a real puzzler on my 4.1 BSD system on my VAX 11/780.  I
recently reconfigured my system so that I needed to move my alternate
swapspace partition from hp1b to hp2b.  However, when I bring up the system
I now get:
	Adding /dev/hp2b as swap device
	No such device: /dev/hp2b

For some reason, the swapon program cannot access /dev/hp2b, but both /dev/hp2b
and /dev/rhp2b exist and are correct.  I have made no changes to my operating
system.  I do have source code, but swapon.c just shows a syscall of:
	#define VSWAPON 85
		...
	if (syscall(VSWAPON,fs->fs_spec) == -1)
		...

My swapping worked before for hp1b, but I've since converted its disk to a
"c" partition so I can't go back.  Please help.  Thanks.

Jon Eichelberger
eichelbe@NADC
P.S. I've already tried "swapon /dev/hp2b", thinking that fstab might be bad.
     This does not work, either.

ron@brl (Ron Natalie) (09/10/85)

In order to turn on a swap area with swapon it must be configured
into your swapvmunix file.  This is done by using the "swap on ...
and ..." clause in config.  See "Building Systems with Config" by
Sam Leffler.

-Ron

@CSNET-RELAY.ARPA,@ucsc.csnet:niel@ucsc.csne (niel) (09/17/85)

About that c partition... c accesses the whole disk including 
the space reserved bad blocks. 

-Niel