rasti.hil@hilandco.com +41 79 367-9677

Search This Blog

Linux add a swap file howto

Procedure to add a swap file
1.

su - root

2.

dd if=/dev/zero of=/swapfile1 bs=1M count=1000

3.

mkswap /swapfile1

4.

swapon /swapfile1

5.

vi /etc/fstab
/swapfile1 swap swap defaults 0 0

6.

free -m