Crypted disk image

From Alessandro's Wiki
Revision as of 21:27, 7 September 2013 by Xunil (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

dd if=/dev/urandom of=crypted_image.img bs=1M count=50

  • open the device (device_name will be in /dev/mapper)
cryptsetup -M plain -c aes-cbc-plain -h plain open crypted_image.img device_name
  • mount
mount /dev/mapper/crypted_image /media/disk
  • open the device (deprecated)
losetup -e aes /dev/loop0 crypted_image.img 
  • make filesystem (deprecated)
mkfs -t ext2 /dev/loop0
  • mount via loop (deprecated)
mount -o loop,encryption=aes crypted_image.img /media/disk