From MEPIS Documentation Wiki

Jump to: navigation, search

If you forgot to create a swap partition when you installed you can create it afterwards by following these instructions (it is also possible to use a swap file instead of a swap partition if you can't repartition your drive):

  1. Use gparted (MEPIS 8.5 and 11: KDE Partition Manager) to create a swap partition, being careful to select Swap as the filesystem for that partition. Recommended size for partition, between 256MB and 1GB depending on how much space you have available on your harddisk (more than 1GB is probably wasteful, however, if you use suspend-to-disk (hibernate) you need to set up the swap partition at least as big as your RAM)
  2. Try to reboot to see if Mepis detects the swap partition (that might depend on Mepis version). To see that, run "free" in terminal and look for Swap size or look for the same info in kinfocenter.

If Swap space is not detected automatically follow these instructions:

  • you have to add this in /etc/fstab (add it in the first part of the file)
/dev/sda1 swap swap sw,pri=1 0 0

"/dev/sda1" is only an example, use your partition name.

  • after you create the entry you can enable it with (as root):
swapon -a
  • to disable swap you can use this command (as root):
swapoff -a
  • to test whether swap is used type:
swapon -s
Personal tools
In other languages