two swapping devices for a Sun 4.1.1 kernel

John C. Archambeau jca at crash.cts.com
Mon Jun 24 05:59:45 AEST 1991


In an article breck at ganzer.ecs.umass.edu (Liam Breck) writes:
>Just putting in a custom kernel, but SunOS config doesn't like:
>
>config	vmunix	  root on sd0a swap on sd0b and sd1b dumps on sd1b
>
>If I take out the "and sd1b" I get no complaints.  I thought this
>was the standard way to tell the kernel to swap on two devices!
>
>So someone please tell me and the net how it's done!

You're going about it the hard way.  You should always leave the swap
device as generic.  The easiest way to do it is to modify /etc/fstab.
For example, let's say I wanted to take /dev/sd0h (which defaults to the
/home file system) and use it as a swap device, here's what I add to
/etc/fstab:

/dev/sd0h    swap    swap    rw 0 0

Of course, I have to comment out the line in /etc/fstab that mounts
/dev/sd0h as /home since it is no longer being used as a 4.2 filesystem.
If you don't want to repartition your hard drive, you could make a
swap file and then add that line to /etc/fstab and use it as a swap
device, but I don't muck with the kernel configuration to add swap
devices, it's just too much of a headache.



More information about the Comp.unix.admin mailing list