Solved

EXT4 volume encryption

Posted on 2014-09-04
5
424 Views
Last Modified: 2014-09-05
I need a solution to encrypt a volume in a storage cluster.
We are using Ubuntu 10.04 and 12.04.
This will not be a hard disk level, it will be at volume level

I will not use truecrypt.

Is there a good encrypting file system, or application I can use for a data store?
This will not be on the /, and not be bootable.

I would prefer something like EXT4.

I can clarify this if needed.


Thank you very much!

Brian Holcomb.
0
Comment
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 33

Accepted Solution

by:
Dave Howe earned 500 total points
ID: 40303946
sounds like what you want is LUKS.
there is a walkthough here but the potted version is, to encrypt a partition such as /dev/sdb2 you could run:
cryptsetup luksFormat -c aes-xts-plain64 s- 512 -h sha512 /dev/sdb2
cryptsetup luksOpen /dev/sdb2 sdb2_luks

this will format the partition and unlock it - prompting for the passphrase both times.

once you have unlocked it, you should have a block object /dev/mapper/sdb2_luks which you can use mkfs on (to format as ext4) then mount.

lots more options, just read the cryptsetup manpage in ubuntu :)
0
 
LVL 1

Author Comment

by:Orcatec Operations Team
ID: 40304262
Very, Very cool, Dave. Thank you very much. I will check LUKS out.

Cheers,
Brian Holcomb
0
 
LVL 1

Author Closing Comment

by:Orcatec Operations Team
ID: 40304270
Very helpful comment with direct command line references and link to walkthrough.

Pinpoint accuracy.
0
 
LVL 33

Expert Comment

by:Dave Howe
ID: 40305561
You are welcome. There is also a way to make LUKS TC compatible, but as you are using EXT4 within the volume, that seems a bit pointless.

you should also investigate the cryptsetup "luksHeaderBackup" command - this is vital for recovery if you should experience disk corruption in the future, so should be exported to other media in case of future need :)
0
 
LVL 1

Author Comment

by:Orcatec Operations Team
ID: 40305774
Will do!
Thanks for all your help Dave.

We can now offer one of 2 proper solutions for some of our potential government contracts.

Cheers,
Bri...


Brian Holcomb
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Explore the encryption capabilities built into Google Apps and how these features can help you meet privacy policy and regulatory compliance, but are not a full solution. Understand and compare the most popular email encryption services for Google A…
There are many Password Managers (PM) out there to choose from. PM's can help with your password habits and routines, but they should not be a crutch you rely on too heavily. I also have an article for company/enterprise PM's.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question