Ubuntu: Memperbesar SWAP

From OnnoWiki
Revision as of 10:06, 20 January 2018 by Onnowpurbo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sumber: http://sysadminnotebook.blogspot.co.id/2011/09/add-extra-swap-file.html

Membuat 1Gb swap

dd if=/dev/zero of=/mnt/extra.swap count=1024 bs=1048576 #(where 1048576 bytes = 1Mb)
sudo chmod 600 /mnt/extra.swap
sudo mkswap /mnt/extra.swap

Membuat 2Gb swap

dd if=/dev/zero of=/mnt/extra.swap count=2048 bs=1048576 #(where 1048576 bytes = 1Mb)
sudo chmod 600 /mnt/extra.swap
sudo mkswap /mnt/extra.swap

Tambahkan di

vi /etc/fstab
/mnt/extra.swap none swap sw 0 0

Aktifkan

swapon -a


Referensi