Comment 74 for bug 66637

Revision history for this message
Wiktor Wandachowicz (siryes) wrote :

There is another alternative to solve the UUID problem, that is use the "mkswap-uuid" program.

Look at these two locations:
* http://www.nabble.com/DRBL-1.8.0-15-(stable)-released-t4492611.html
* http://free.nchc.org.tw/drbl-core/old/src/

You need to compile it manually, but the whole process takes only several minutes :-)

So here are the steps:

1. sudo apt-get install build-essential uuid-dev
2. mkdir ~/work ; cd ~/work
3. wget http://free.nchc.org.tw/drbl-core/old/src/mkswap-uuid-0.1.0-2.tar.bz2
4. tar -xjf mkswap-uuid-0.1.0-2.tar.bz2
5. cd mkswap-uuid
6. make && sudo cp mkswap-uuid /usr/local/bin

After that you have the "mkswap-uuid" binary which you can use to recreate the swap partition with desired UUID:

7. swap_device=/dev/<name-of-swap-partition>
8. swap_uuid=<put-desired-swap-uuid-here>
9. sudo swapoff ${swap_device}
10. sudo mkswap-uuid -U ${swap_uuid}
11. sudo swapon ${swap_device}
12. sudo blkid ${swap_device}

There.