nswap and swplo in /etc/default/boot

Jim Morton jim at applix.com
Wed Jun 7 03:46:09 AEST 1989


In article <17874 at mimsy.UUCP>, meyer at mimsy.UUCP (John R. Meyer) writes:
> 
> 	swplo=1144 nswap=1000
> 
> I cannot seem to find what these mean in the boot(HW) manual page.

These are holdovers from the old Microsoft Xenix where you could not
change swap after the OS install like you can with divvy and boot in
SCO Xenix. They are the starting block address, and total number of
1k blocks, respectively, in the swap area. In SCO Xenix the swap partiton
is a separate divvy partition, so for example if your swap partition is
the second divvy partition on your first hard disk, /dev/swap would be
major #=1, minor #=41. If divvy showed the difference between first block
and last block to be 6000, nswap would be 6000 and swplo would be 0. 
Remember that unlike Xenix filesystem blocks, these are 1k blocks so
6000 blocks=6 megabytes. If you wanted to change your swap space to 
second hard drive, run divvy -b 1 -c 1 -p 1 and add a partition called
swap, edit /etc/default/boot and add "swapdev=hd(104)" (104=first divvy
partition on second hard drive). I forget if divvy does new mknods for
you - if not, rm /dev/*swap, then mknod /dev/swap b 1 104 and mknod
/dev/rswap c 1 104, chmod 600 /dev/*swap. NOTE: I think specifying an
alternate swap device via the boot line was broken in Xenix 2.2.1 and
fixed in 2.2.3.
--
Jim Morton, APPLiX Inc., Westboro, MA
...uunet!applix!jim
jim at applix.COM



More information about the Comp.unix.xenix mailing list