I've found this interesting tutorial on flossstuff blog.
It explains how to create an empty file, format it as ext4, and mount it as a device.
I'd like to know if it can be created as an encrypted ext4 file system.
I've tried using palimpsest (the disk utility found in System menu) to format the already created file system but it doesn't work as it detects the file system being used.
If I try to unmount the file system, that won't work either because it doesn't detect the device (since it's not a real device like a harddrive or a USB drive).
So my question is, is there an option to create the file system as encrypted from the beginning? I've used these commands:
Create an empty file 200Mb size:
dd if=/dev/zero of=/path/to/file bs=1M count=200
Make it ext4:
mkfs -t ext4 file
Mount it in a folder inside my home:
sudo mount -o loop file /path/to/mount_point
Is there any way the
mkfs command can create an encrypted ext4 filesystem asking for a decryption password?
I'm planing to use this as a way to encrypt files inside Dropbox.