Administering Filesystems  «Prev  Next»

Implementing swap space

  1. Set up the partition table and add a swap using the cfdisk utility.
  2. Reboot the system before continuing.
  3. Enable the swap partition using mkswap or fdisk.
  4. Add an entry for the swap to /etc/fstab.
  5. Activate the swap partition or file using swapon -a.
  6. Check the swap partition's status using swapon -s or free.