Ubuntu: Memperbesar SWAP
Revision as of 10:06, 20 January 2018 by Onnowpurbo (talk | contribs)
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