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

Sunday, 7 March 2010

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

No comments: