Solved

EXT4 volume encryption

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you are on a Windows computer and decide to protect a file with sensitive data, you can encrypt the file, password protect it or rely on steganography (hiding a file in an image). This technique is especially useful because unless someone knows t…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

708 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

14 Experts available now in Live!

Get 1:1 Help Now