Swap space question...

George Robbins grr at cbmvax.commodore.com
Fri Aug 10 06:25:14 AEST 1990


In article <10063 at hubcap.clemson.edu> hubcap at hubcap.clemson.edu (System Janitor) writes:
> With all this talk about swap going on, what do you think of this?...
> My config file looks like:
> 
> config vmunix	root on ra0a  swap on ra0b and ra1b and ra2b  dumps on ra2b  
> 
> My fstab has:
> /dev/ra1b::sw:0:0:ufs::
> /dev/ra2b::sw:0:0:ufs::
> 
> And I've got ``swapon -a'' in /etc/rc...
> 
> But at boot time (or anytime I type ``swapon -a'' or ``swapon /dev/ra1b'')
> I get:      ``/dev/ra1b: No such device''

Interesting question...  The actual swap configuration from the config file
goes into /sys/{MIPS/}swapvmunix.c, and puts hard coded major and minor numbers
in a table.  You get the "No such device" if you're adding an area already in
use, but might also get it if the partition wasn't allocated or if you don't
have an appropriate /dev entry for the device - it may be that swapon makes
some references to the /dev entry before issuing the "swapon" system call.

-- 
George Robbins - now working for,     uucp:   {uunet|pyramid|rutgers}!cbmvax!grr
but no way officially representing:   domain: grr at cbmvax.commodore.com
Commodore, Engineering Department     phone:  215-431-9349 (only by moonlite)



More information about the Comp.unix.ultrix mailing list