Friday, February 5, 2010

Mounting Encrypted disks with loop-aes


$ sudo apt-get install loop-aes-utils
$ sudo modprobe cryptoloop

to mount the encrypted device /dev/sdg

$ sudo mount /dev/sdg /mnt -o loop,encryption=AES128

the long way round (useful for understanding what's going on, fscking etc)

$ sudo losetup -e AES128 /dev/loop0 /dev/sdg
$ sudo mount /dev/loop0 /mnt
$ sudo losetup -a
$ sudo losetup -d /dev/loop0

to actually create an ext4 filesystem on /dev/loop0:

$ sudo mkfs -t ext4 /dev/loop0

to check it:
$ sudo fsck /dev/loop0

No comments:

Post a Comment