Thursday, 10 July 2008

USB Stick bootable with encypted partition

So I got this 4GB Sandisk thumb drive...

lets make it useful now...

Under linux:
cfdisk /dev/sdc
or
fdisk /dev/sdc

delete all partitions, create one FAT16 and one Linux, mark FAT16 as bootable and format them:
mkdosfs -F 16 /dev/sdc1

Install backtrack.. (I said useful right??)
mount /dev/sdc1 /mnt/memory

download the USB version from here
mount -o loop -t iso9660 bt3final_usb.iso /mnt/iso
cp /mnt/iso/* /mnt/memory
cd /mnt/memory/boot
./bootinst.sh

lets encrypt the other partition now...

boot Backtrack using the usb stick

create the encrypted volume
truecrypt /dev/sdc2

select None for filesystem

Load the volume without mounting it
truecrypt /dev/sdc2

truecrypt -vl
/dev/mapper/truecrypt0:
Volume: /dev/sda2
Type: Normal
Size: 2060089856 bytes
Encryption algorithm: AES-Twofish-Serpent
Mode of operation: LRW
Read-only: No
Hidden volume protected: No

mkfs.ext2 /dev/mapper/truecrypt0

to format the partition using the ext2 filesystem

dismount
truecrypt -d /dev/sdc2

and mount again using the truecrypt utility
truecrypt /dev/sdc2 /mnt/memory

all done!

thanks for playing :)

No comments:

Post a Comment