Wednesday, October 9, 2013

Set new UUID for Swap

I restore my old Debian 6 after testing Debian 7 i notice that
the swap partition is not used any more.

Debian 7 has created a new swap partition with new UUID during the installation.
I look for the old UUID at the /etc/fstab file and use this for creating
a new swap partition.

swapoff -v /dev/sdaX
mkswap -U NEW_UUID /dev/sdaX
swapon -v /dev/sdaX

with bulkid i check the result.