[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: swap partition



You can just run swapon by hand:

	bash# swapon /dev/hd0s2

and the /etc/fstab can look just like it does for Linux or BSD:

/dev/hd0s2	none	swap	sw		0 0

or:

/dev/hd0s2               swap                    swap    defaults        0 0

are the same (and the same as "swapon /dev/hd0s2" will do).  After you've
editted fstab, you can do "swapon -a" to do everything in fstab, and that
will tell you if you've gotten the format right ("swapon -a" is exactly
what gets run by /libexec/rc at boot time).  

The essential thing is to have the /dev node you need set up already:

	bash# cd /dev; ./MAKEDEV hd0s2

You should make nodes for all the disks and partitions you have, and it
doesn't hurt to make nodes for devices you don't actually have:

	bash# cd /dev; ./MAKEDEV hd{0,1,2,3}{,s1,s2,s3,s4}


If you really need swap to be enabled earlier in the boot process, the
other way to do it is in /boot/servers.boot; but if that seems to be
necessary then there is probably something else wrong that we should look
into.



Reply to: