Let's suppose I create a file, map it to
/dev/loop0, and create a LUKS partition inside
dd if=/dev/zero of=myfile bs=1M count=1000 losetup /dev/loop0 myfile cryptsetup -c aes-cbc-essiv:sha256 -s 256 -v -y luksFormat /dev/loop0
I then open the encrypted partition
cryptsetup luksOpen /dev/loop0 myfile
Now, I have my encrypted file appear as a disk
/dev/mapper/myfile. I need to create a filesystem before I can use it.
Here is my question: Given that this my new filesystem-inside-file resides on another ext4 filesystem (which already is using journal), what options would be best for this new filesystem ?
Specifically, if I format my new filesystem-inside-file ext4, should I use journal?. Somehow, the idea of journal filesystem inside another journal filesystem seems not right to me, intuitively.