Encrypt your USB Stick

Encrypt your USB Stick with cryptsetup or TrueCrypt on Ubuntu.

1. Use cryptsetup

1.1 Install cryptsetup:
aptitude install cryptsetup
1.2 Setup cryptsetup volume:

Unmount the stick and format it:

umount /dev/usb1
cryptsetup luksFormat /dev/usb1

Type “YES” an choose a password.

Open the crypt partition:

cryptsetup luksOpen /dev/usb1 crypt_USB

Create new Filesystem and mount it:

mkfs.ext4 /dev/mapper/crypt_USB
mount /dev/mapper/crypt_USB /mnt

Remove the drive:

umount /dev/mapper/crypt_extern
cryptsetup luksClose crypt_extern
1.3 Mount cryptsetup:

Now reattach the stick. Ubuntu ask you for the password (LUKS passphrase) you choose and mount the crypted partition.

luks_passphrase1

Note: “/dev/usb1” is may be different on your System.

2. Use TrueCrypt

2.1 Installation:

Download tar.gz from truecrypt.org

Extract and run setup script:

tar vfx truecrypt-7.1-linux-x64.tar.gz

./truecrypt-7.1-setup-x64

Select “Install TrueCrypt” and accept the licence terms.

tc1tc2

Press enter to exit the setup tool..

tc3

2.2 Setup TrueCrypt Volume

Run TrueCrypt from your Start Menu and select “Create Volume” now choose “Create a volume with a partition/drive” and press “Next”.

tc4tc5

Choose “Standard TrueCrypt volume” select a Volume and select your preferred encryption options:

tc6tc7tc8

Now enter a password for your usb stick, enable the large file support and select the filesystem type. (I take ext4)

tc9tc10tc11

If you want to use your usb stick on other operating system than linux you can enable the cross-platform support. But you have to choose a filesystem type which windows and/or macos understand in the previous step.

tc12

Now make some random moves with your mouse and select “Format”. (This will take a few minutes)

tc13tc14

2.3 Mounten:

Run TrueCrypt from your Start Menu.

“Select Device” and select your TrueCrypt Partition:

tc15

Press “Mount” and enter your password.

tc16

Device “truecrypt1” is now mounted on your system and ready to use.D

3. Links:

* http://www.selbstdatenschutz.info/linux/externe_datentraeger_verschluesseln

* http://wiki.ubuntuusers.de/truecryptn

Schreibe einen Kommentar

eMail-Benachrichtigung bei weiteren Kommentaren.
Auch möglich: Abo ohne Kommentar.

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.