swapon -a
swapoff -a
swapon --show&&swapoff -v /swap.img&& rm -rf /swap.img
,
delete /etc/fstab
add
dd if=/dev/zero of=/swapfile bs=1024 count=2097152;
chmod 600 /swapfile;mkswap /swapfile;swapon /swapfile;
echo "/swapfile none swap sw 0 0" | sudo tee -a /etc/fstab
Top comments (0)