Ask Your Question

How to set up encrypted space in encrypted drive?

asked 2018-04-27 12:47:25 -0500

psmis gravatar image

updated 2018-04-27 12:52:20 -0500

What I have:

  • Notebook (LUKS encrypted)
  • External hard disk (LUKS encrypted)

The idea is that when I mount my external disk to access "everyday data" on it, I don't necessarily give access to the more sensitive data inside of it.

I was wondering if it is possible to create an additional (for example 5GB) encrypted space (maybe password+key) inside of the encrypted drive for more sensitive content? What is the best way to do it? I'm looking for native linux tools, not true-/veracrypt or the likes.

Additional question:

I once heared about a patch for LUKS that erases your entire drive if you enter a special password instead of the real password, did it ever land in the main branch?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-04-27 14:47:56 -0500

fcomida gravatar image

Encrypt a loop device. You can do it with cryptsetup directly or using losetup first.

edit flag offensive delete link more



Thank you! This answer let me into the right direction. For anyone interested: someone made a guide already:

Second question about erasing is still open.

psmis gravatar imagepsmis ( 2018-04-27 15:16:41 -0500 )edit

Question Tools

1 follower


Asked: 2018-04-27 12:47:25 -0500

Seen: 92 times

Last updated: Apr 27 '18