From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10b612,5b2940ae07e1328f X-Google-Attributes: gid10b612,public X-Google-Thread: 1164f8,5b2940ae07e1328f X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1990-08-10 05:38:58 PST Path: gmdzi!unido!mcsun!uunet!cbmvax!grr From: grr@cbmvax.commodore.com (George Robbins) Newsgroups: comp.sys.dec,comp.unix.ultrix Subject: Re: Swap space question... Message-ID: <13733@cbmvax.commodore.com> Date: 9 Aug 90 20:25:14 GMT References: <13707@cbmvax.commodore.com> <10063@hubcap.clemson.edu> Reply-To: grr@commodore.com (George Robbins) Organization: Commodore, West Chester, PA Xref: gmdzi comp.sys.dec:2815 comp.unix.ultrix:3425 Posted: Thu Aug 9 21:25:14 1990 In article <10063@hubcap.clemson.edu> hubcap@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@cbmvax.commodore.com Commodore, Engineering Department phone: 215-431-9349 (only by moonlite)