Manually set UUID of Linux swap/ext partition using cli


Set UUID to a swap file/device

swaplabel -U 427ec4fa-e8e5-47a5-af4c-e15583aeadd7 /dev/sdb5


Set UUID to an ext3/ext4 partition

tune2fs -U 95a40ae4-3f84-6ea1-bee3-7ad41ef76443 /dev/sdb1