Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 01-02-2013, 07:31 AM   #1
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 638

Rep: Reputation: 36
Retain LUKS-volume in external disk through reformat


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:
/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?


Last edited by Yalla-One; 01-02-2013 at 07:36 AM.
Old 01-03-2013, 06:29 AM   #2
Registered: Apr 2012
Location: Northern US
Distribution: Arch, Manjaro, CentOS/RHEL, SUSE
Posts: 88

Rep: Reputation: 14
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: RHEL6 volume encryption using LUKS LXer Syndicated Linux News 0 11-14-2011 09:30 PM
[SOLVED] Can you shrink a LUKS-encrypted physical volume? (LVM2) piratesmack Slackware 1 11-12-2010 10:40 AM
[SOLVED] Adding a volume to a LUKS/LVM setup bgeddy Slackware 6 03-21-2010 06:37 PM
Should I reformat my external HD to NTFS? Sunny Rabbiera Linux - General 1 01-20-2009 09:47 PM
reformat external harddisk alexbreugelmans Linux - Newbie 1 06-30-2005 08:11 AM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration