Changes

Jump to navigation Jump to search
411 bytes added ,  08:16, 11 November 2019
m
Line 1: Line 1: −
== Modify swap partition ==
+
==Create swap==
 +
<syntaxhighlight lang="bash">
 +
sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
 +
sudo chmod 600 /var/swap.1
 +
sudo /sbin/mkswap /var/swap.1
 +
sudo /sbin/swapon /var/swap.1
 +
</syntaxhighlight>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 />
 +
/var/swap.1        none        swap    sw        0  0
 +
 
 +
==Modify swap partition==
 
  swapoff /dev/sda3
 
  swapoff /dev/sda3
 
  mkswap /dev/sda4
 
  mkswap /dev/sda4

Navigation menu