Swap is usually configured automatically as part of the installation process.
I don't usually give it a second thought but you have pointed out that it is
probably not enabled.
I do recall from previous Slack versions that the swapon command usually appeared
in dmesg. It doesn't in my Slack 12.0. A swap entry also doesn't appear in fstab.
fdisk -l produces:
Code:
Disk /dev/hda: 40.0 GB, 40000000000 bytes
255 heads, 63 sectors/track, 4863 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1279 10273536 c W95 FAT32 (LBA)
/dev/hda2 1280 1380 811282+ 82 Linux swap
/dev/hda3 1381 4008 21109410 83 Linux
So I added the following to fstab:
Code:
/dev/hda2 swap swap defaults 0 0
Rebooted but still did not see swap activated in dmesg.
cat /etc/mtab produces:
Code:
/dev/hda3 / ext3 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
usbfs /proc/bus/usb usbfs rw 0 0
/dev/hda1 /fat32 vfat rw 0 0
and cat /proc/swaps produces:
Code:
Filename Type Size Used Priority
/dev/hda2 partition 811272 0 -1
It seems to me that somewhere in rc.M there used to be an entry to enable swap but
I don't see that anymore. I just assumed that maybe HAL or UDEV somehow magically
enabled it in Slack 12.0.
I tried mkswap /dev/hda2 and swapon -a on the running system but don't know if it
is truly enabled since it still does not appear in /etc/mtab.
Is this enough information?