Security
From Linuxintro
Revision as of 13:29, 27 March 2010 by imported>ThorstenStaerk
encrypted image as safe
Have aes and cryptoloop loaded
dd if=/dev/zero of=/save.img bs=1024k count=100
--> creates an image of 100 MB
losetup -e aes /dev/loop0 /save.img
you can delete this again with -d, but for a new access to loop0 you will need a reboot --> assigns loop device and password to device
mkfs.ext3 /dev/loop0
--> formats the device with ext3
mount -o encryption=aes /safe.img /secret
--> mounts the image with password prompt Or enter into /etc/fstab:
/safe.img /secret ext3 rw,user,loop=/dev/loop1,encryption=aes 0 0