Solved

EXT4 volume encryption

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

You cannot be 100% sure that you can protect your organization against crypto ransomware but you can lower down the risk and impact of the infection.
Encryption for Business Encryption (https://en.wikipedia.org/wiki/Encryption) ensures the safety of our data when sending emails. In most cases, to read an encrypted email you must enter a secret key that will enable you to decrypt the email. T…
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 …

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now