Changes

Jump to navigation Jump to search
370 bytes added ,  08:11, 24 May 2017
Line 1: Line 1:  +
== Create swap ==
 +
sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
 +
sudo /sbin/mkswap /var/swap.1
 +
sudo chmod 600 /var/swap.1
 +
sudo /sbin/swapon /var/swap.1
 +
 +
If you need more than 1024 then change that to something higher.<br />
 +
To enable it by default after reboot, add this line to /etc/fstab:<br />
 +
 +
swap        /var/swap.1 swap    defaults        0  0
 +
 +
 
== Modify swap partition ==
 
== Modify swap partition ==
 
  swapoff /dev/sda3
 
  swapoff /dev/sda3

Navigation menu