Difference between revisions of "Security"
From Linuxintro
imported>ThorstenStaerk (New page: = 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 (mit -d kan...) |
imported>ThorstenStaerk |
||
Line 5: | Line 5: | ||
losetup -e aes /dev/loop0 /save.img | 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 | mkfs.ext3 /dev/loop0 | ||
--> formats the device with ext3 | --> formats the device with ext3 | ||
mount -o encryption=aes /safe.img /secret | mount -o encryption=aes /safe.img /secret | ||
− | --> | + | --> mounts the image with password prompt |
− | + | Or enter into /etc/fstab: | |
− | /safe.img / | + | /safe.img /secret ext3 rw,user,loop=/dev/loop1,encryption=aes 0 0 |
Revision as of 13:29, 27 March 2010
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