perry@gatech.UUCP (06/03/83)
Check the file /sys/dev/swaphphp.c. In it you should see the following:
struct swdevt swdevt[] =
{
makedev(0, 1), 0, /* hp0b */
makedev(0, 9), 0, /* hp1b */
0, 0,
};
Before you can enable swapping on a partition, its device number must
be in this table. Add the following line after the entry for hp1b and
remake vmunix:
makedev(0, 31), 0, /* hp3h */
Perry Flinn
allegra!gatech!perry (uucp)
perry.gatech@udel-relay (csnet/internet)
thomson@utcsrgv.UUCP (Brian Thomson) (06/09/83)
Perry Flinn has indeed told you how to add a device to the swap table, but don't do it unless you meant /dev/hp3b rather than /dev/hp3h. You'll notice that swaphphp.c also contains an initialized variable 'nswap'. This is the number of blocks of EACH swap partition that will be used -- Un*x requires that all swap partitions be of the same size, and since /dev/hp3h is much much larger than any of the 'b' partitions you will waste almost 80% of it. By the way, /etc/swapon doesn't work for /dev/hp0b because, as the first entry in the swdev table, it is already enabled for swapping. Brian Thomson, CSRG Univ. of Toronto utcsrgv!thomson