Fixing the swap partition

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. :)

ciao!

One Response to “Fixing the swap partition”

  1. [...] – bookmarked by 1 members originally found by andytseng on July 11, 2008 Fixing the swap partition http://ramfree17.net/capsule/?p=149 – bookmarked by 4 members originally found by jboivin on July [...]

Discussion Area - Leave a Comment