LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 01-02-2013, 08:31 AM   #1
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 635

Rep: Reputation: 35
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

Last edited by Yalla-One; 01-02-2013 at 08:36 AM.
 
Old 01-03-2013, 07:29 AM   #2
digigold
Member
 
Registered: Apr 2012
Location: Northern US
Distribution: Arch, Manjaro, CentOS, Debian
Posts: 66

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


Reply


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 10:30 PM
[SOLVED] Can you shrink a LUKS-encrypted physical volume? (LVM2) piratesmack Slackware 1 11-12-2010 11:40 AM
[SOLVED] Adding a volume to a LUKS/LVM setup bgeddy Slackware 6 03-21-2010 07:37 PM
Should I reformat my external HD to NTFS? Sunny Rabbiera Linux - General 1 01-20-2009 10:47 PM
reformat external harddisk alexbreugelmans Linux - Newbie 1 06-30-2005 09:11 AM


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

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