Bigger Swap file on Linux Mint.

Author Topic: Bigger Swap file on Linux Mint.  (Read 3972 times)

admin

  • Administrator
  • Newbie
  • *****
  • Posts: 37
    • View Profile
Bigger Swap file on Linux Mint.
« on: September 11, 2020, 11:57:35 am »
Turn off swap file
Code: [Select]
sudo swapoff -aReformat swapfile to 2G
Code: [Select]
sudo  dd if=/dev/zero of=/swapfile bs=1k count=2048kSet permisions of file
Code: [Select]
sudo chmod 0600 /swapfileLink swap space to file
Code: [Select]
sudo mkswap /swapfileTurn on swapfile function
Code: [Select]
sudo swapon -aMake it permanent
Code: [Select]
sudo echo "/swapfile       swap    swap    auto      0       0" | tee -a /etc/fstab
« Last Edit: October 17, 2023, 12:13:19 pm by admin »