Solved

EXT4 volume encryption

Posted on 2014-09-04
5
431 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If you thought ransomware was bad, think again! Doxware has the potential to be even more damaging.
The recent Petya-like ransomware attack served a big blow to hundreds of banks, corporations and government offices The Acronis blog takes a closer look at this damaging worm to see what’s behind it – and offers up tips on how you can safeguard your…
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 …

635 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