Linux / Ubuntu / Mint > Hendri's Programing Notes
Bigger Swap file on Linux Mint.
(1/1)
admin:
Turn off swap file
--- Code: ---sudo swapoff -a
--- End code ---
Reformat swapfile to 2G
--- Code: ---sudo dd if=/dev/zero of=/swapfile bs=1k count=2048k
--- End code ---
Set permisions of file
--- Code: ---sudo chmod 0600 /swapfile
--- End code ---
Link swap space to file
--- Code: ---sudo mkswap /swapfile
--- End code ---
Turn on swapfile function
--- Code: ---sudo swapon -a
--- End code ---
Make it permanent
--- Code: ---sudo echo "/swapfile swap swap auto 0 0" | tee -a /etc/fstab
--- End code ---
Navigation
[0] Message Index
Go to full version