Difference between revisions of "Ubuntu: Memperbesar SWAP"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "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 by...")
 
 
Line 12: Line 12:
 
  sudo chmod 600 /mnt/extra.swap
 
  sudo chmod 600 /mnt/extra.swap
 
  sudo mkswap /mnt/extra.swap
 
  sudo mkswap /mnt/extra.swap
 
  
 
Tambahkan di  
 
Tambahkan di  

Latest revision as of 10:06, 20 January 2018

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