Apr 02
Activating Swap... failed on Debian Squeeze
Recently, on a very fresh install of Debian Squeeze I've noticed that on boot, the log said "Activating Swap... FAILED".
A look into /etc/fstab brought up nothing helpful: UUID=xyz none swap sw 0 0 seemed okay. So as it seems there was an error with the volume that was listed as swap.
Then, listing partitions with fdisk -l showed that there was no swap.
swapon -a -v gave me:
swapon on /dev/sda5
swapon: /dev/sda5: found swap signature: version 1, page-size 4, same byte order
swapon: /dev/sda5: pagesize=4096, swapsize=3016753152, devsize=3007315968
swapon: /dev/sda5: last_page 0xb3d00000 is larger than actual size of swapspace
swapon: /dev/sda5: swapon failed: Invalid argument
Looks like something corrupted my swap. Or the swap might not be formatted. Thus, I created/formatted it anew with:
mkswap /dev/sda5
which gave the device a new UUID. After adding the new UUID to /etc/fstab the swapon command worked and swap was there. Looking at the boot sequence is a todo.
All this might have resulted from a strange hiccup before I possibly never will find out about.
August 21st, 2015 at 12:31 pm
Thanks! This work ๐
August 21st, 2015 at 12:31 pm
Thanks! This work ๐