Mounting a ecryptfs partition other than Private

Asked by Bennett

Hi all,

I created a new encrypted partition on /dev/sda4. Using ubuntu there is a disk manager called palimpsest where I created the partition. I can go into palimpsest and see that the partition is encrypted and locked. In the gui I can unlock it and it asks for passphrase which when entered unlocks the partition and then I can mount it with:

mount /dev/dm-1 /encrypted

I am wondering how do I unlock the partition /dev/sda4 and mount it using the fstab. I would expect to be prompted for the passphrase at boot time but not sure if this is something setup in an encryptfsrc or something. So I have two questions:

1) How do I unlock the partion so the devmapper device is created?
2) How do I automate the unlock?

Thanks,

Bennett

Question information

Language:
English Edit question
Status:
Solved
For:
eCryptfs Edit question
Assignee:
No assignee Edit question
Solved by:
Bennett
Solved:
Last query:
Last reply:
Revision history for this message
Bennett (bleve-9) said :
#1

I figured it out. Turns out that palimpsest uses dm-crypt not ecryptfs. Being new to encrypting filesystems and directories I assumed that since Ubuntu used ecryptfs for the encrypted home directory that ecryptfs was the standard for all encryption. It was not until I went and started looking at some wiki pages that I found that dm-crypt was being used for encrypting the block devices.

What makes things more confusing is ecryptfs seems to imply that you are encrypting a filesystem.

Revision history for this message
Dustin Kirkland  (kirkland) said :
#2

eCryptfs *is* an encrypted filesystem, not a way of encrypting a block
device, like dmcrypt.
On Dec 29, 2011 10:10 PM, "Bennett" <email address hidden>
wrote:

> Question #181955 on eCryptfs changed:
> https://answers.launchpad.net/ecryptfs/+question/181955
>
> Status: Open => Solved
>
> Bennett confirmed that the question is solved:
> I figured it out. Turns out that palimpsest uses dm-crypt not ecryptfs.
> Being new to encrypting filesystems and directories I assumed that since
> Ubuntu used ecryptfs for the encrypted home directory that ecryptfs was
> the standard for all encryption. It was not until I went and started
> looking at some wiki pages that I found that dm-crypt was being used for
> encrypting the block devices.
>
> What makes things more confusing is ecryptfs seems to imply that you are
> encrypting a filesystem.
>
> --
> You received this question notification because you are an answer
> contact for eCryptfs.
>