i trying delete swapfile on digital ocean virtual server using instructions given here: https://www.digitalocean.com/community/questions/delete-swap-file
however, when type:
sudo rm /swapfile
i following error:
rm: cannot remove `swapfile': operation not permitted
i have changed permissions on swap file 777 , believe have root privileges. still cannot delete it.
run following commands:
sudo swapoff -a -v sudo rm /swapfile #back /etc/fstab: sudo cp /etc/fstab /etc/fstab.bak sudo sed -i '/\/swapfile/d' /etc/fstab
Comments
Post a Comment