Review and repair a Linux SWAP Partition
Original article first published in Spanish on http://vidagnu.blogspot.it/
sudo badblocks -v /dev/sda2
The above command did not return any error, then searching the Internet I found this simple way to rebuild a damaged swap partition.
sudo swapoff /dev/sda2
If the above commands do not report any problems and complete successfully, then continue with the following:
sudo mkswap /dev/sda2
Ready, reboot and test, although this process is run in Astaro, applies to any Linux with a similar problem.
Comments are closed.