You are not logged in.

#1 2011-03-24 19:32:50

Beuntje
Member
Registered: 2011-03-24
Posts: 3

Create a encrypted pendrive/usb stick using cryptsetup and openluks

I've a problem to get this working again (got it working once on debian) but i switched to Arch Linux and i forgot the internet page how to get a usb stcik fully encrypted using cryptsetup and openluks.
as far as i know iI need openluks so i can also open the encrypted usb stick at my work with a windows pc using Freeofte.
can someone give me a manual or a link to a usb encrypted with archlinux using cryptsetup and openluks.

if everytthing is set up correctly (in debian) the automount function should pop up asking for a passprase when pluging in the USB in my linux box (now archlinux)

Last edited by Beuntje (2011-03-24 19:35:41)

Offline

#2 2011-03-24 20:58:47

siriusb
Member
From: Hungary
Registered: 2010-01-01
Posts: 422

Re: Create a encrypted pendrive/usb stick using cryptsetup and openluks

Arch Linux has excellent wiki pages, when you have a question, you should have a look at them in the first place. smile
https://wiki.archlinux.org/index.php/LU … Passphrase

Offline

#3 2011-03-25 07:00:38

Beuntje
Member
Registered: 2011-03-24
Posts: 3

Re: Create a encrypted pendrive/usb stick using cryptsetup and openluks

so i got a usb now who's asking for a passphrase, but not working on windows and or linux (seems that there is no partition (?????.)
This is what i did so far.

crypsetup --verbose -c aes-xts-plain -y -s 256 luksFormat /dev/sdb1
cryptsetup luksOpen /dev/sdb1 vault

What am i Missing?

Offline

#4 2011-03-25 08:01:06

Beuntje
Member
Registered: 2011-03-24
Posts: 3

Re: Create a encrypted pendrive/usb stick using cryptsetup and openluks

Beuntje wrote:

so i got a usb now who's asking for a passphrase, but not working on windows and or linux (seems that there is no partition (?????.)
This is what i did so far.

crypsetup --verbose -c aes-xts-plain -y -s 256 luksFormat /dev/sdb1
cryptsetup luksOpen /dev/sdb1 vault

What am i Missing?

seems that indeed a partition was not created...

i did the following

mkfs.vfat /dev/mapper/vault

cryptsetup luksClose /dev/mapper/vault

replaced the usb en accessable under linux.

Will now test it on Free OFTE on Windows......

Offline

#5 2011-03-25 08:47:16

siriusb
Member
From: Hungary
Registered: 2010-01-01
Posts: 422

Re: Create a encrypted pendrive/usb stick using cryptsetup and openluks

Of course with the first step you only created an encrypted container, then (as you already did) you have to create a filesystem on the top of it, too. Now you should be able to mount that pendrive of yours.

Offline

Board footer

Powered by FluxBB