I have / and swap area of Ubuntu 14.04 LTS (and Linux Mint 17.1 LTS) encrypted in dm-crypt/LUKS. / and swap area reside in /dev/mapper/UUID_1 and /dev/mapper/UUID_2. Is it possible to recreate the /dev/mapper/UUID (e.g. on the different hard drive) (with the same UUID of course)? It would make recovery of the system with TAR possible in case of disaster. As you know, TAR records UUID of copied partition. Furthermore, grub.cfg, /etc/fstab and initframs contains the number as well.
sudo tune2fs /dev/mapper/UUID ‐U UUID
command doesn't work.
cryptsetup luksUUID /device/ --UUID
can change only UUID of external container.
Thank you for responses.