I would want to install a partition encrypted with AES using a loop-device.
So first, I install the partition and its files system.
fdisk /dev/sda
mkfs.ext4 /dev/sdaX
(with "sdaX" the created partition byfdisk
)mount /dev/sdaX <mount_directory>
Then I create text files, images, etc. in mount_directory
.
Finally, I use a loop-device.
losetup -e aes /dev/loop0 /dev/sda<X>
mkfs.ext4 /dev/loop0
mount /dev/loop0 <mount_directory>
- I use
<mount_directory>
(creation again of files, images, delete them...) but a password will be asked because I encrypted/dev/loop0
unmount <mount_directory>
losetup -d /dev/loop0
0 Answers