After a few failed attempts in getting my ArchLinux desktop system go into hibernation, my boot-up shows an error during the mounting of the swap file. Issuing the “free” command validates that I don’t have any swap space running. My desktop system has 2GB of physical RAM but I wouldn’t want to wait for something to fail before fixing the swap space.
The fix is to format the swap partition (/dev/sda8) again before activating it using this command sequence:
# mkswap /dev/sda8
# swapon -a
mount -a would also work in place of the swapon command.
NOTE: mkswap will happily format the device or file you pass on as parameter so make sure you are passing the correct partition or you will be sorry.