In the past I’ve wrote an article about the commands du and df that can respectively give you information about the Disk Usage and the Disk Free of your Linux computer. I personally use both of these commands a lot of times at work to check file system and/or directory, but I also understand that [...]
Original article first published in Spanish on http://vidagnu.blogspot.it/
Yesterday I ran into a problem in a SWAP partition on an Astaro Command Center, so I decided to restart with an Ubuntu CD, and my first attempt to repair the system was with the
fsck command, but when trying to use it I got the message fsck.swap: command not found
So I check with the
badblocks command that the partition had no bad blocks.
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.