LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   Retain LUKS-volume in external disk through reformat (http://www.linuxquestions.org/questions/fedora-35/retain-luks-volume-in-external-disk-through-reformat-4175443800/)

Yalla-One 01-02-2013 07:31 AM

Retain LUKS-volume in external disk through reformat
 
All,

I have an external HDD with an encrypted partition. I'm switching from Fedora to CentOS and in the process I do not want to lose the data on the encrypted partition.

I'm pretty sure it's just to reformat and mount the encrypted volume again on the new disk, but is there anything I need to do in order to recreate the /dev/mapper system files or similar?

Anything special to watch out for?

The entry in the current fstab is as follows:
Code:

/dev/mapper/luks-131d2fab-xxxx-yyyy-zzzz-ff3af1313925 /export/secure  ext4    no
auto        1 2

The partition in question is /dev/sdb2 which is FStype crypto_LUKS.

How do I recreate this /dev/mapper/luks-* in CentOS?

What do I need to beware of in order not to lose important data?

-y1

digigold 01-03-2013 06:29 AM

Make sure you copy /etc/crypttab to your new system. Also if you are not prompted at boot for passphrase you will need the key file.


All times are GMT -5. The time now is 01:46 PM.