Friday, July 14, 2006
3:44 AM

Creating a encrypted patition visible from both windows and linux

Download and install uuid-dev, e2fsck and cryptsetup.


dd if=/dev/zero of=myencryptedfile.enc bs=1M count=20
losetup /dev/loop2 myencryptedfile.enc
cryptsetup -c aes -s 256 --verify-passphrase luksFormat /dev/loop2
cryptsetup luksOpen /dev/loop2 encrypted
mkdosfs /dev/mapper/encrypted
mount /dev/mapper/encrypted /mnt
ls /mnt
umount /mnt
cryptsetup luksClose encrypted
losetup -d /dev/loop2

0 comments:

Post a Comment

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.