Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

In previous versions of Ubuntu I was able to encrypt USB flashdrives using the disks tool in any format I pleased. Now unfortunately I am only able to encrypt a flash drive in EXT format. This is bothersome as when the flashdrive is taken to another machine it will not allow the user accessing it to have ownership of the files. How would I encrypt a flashdrive using LUKS + FAT?

share|improve this question

1 Answer 1

First find your USB flash drive's device block - plug in the drive and run dmesg | tail. The device name should be of form sdX.

cryptsetup lukscreate /dev/sdX - this will prompt for a passphrase, create one. cryptsetup luksOpen crsdX /dev/sdx - this will prompt for the passphrase again. mkfs.vfat /dev/mapper/crsdX - create the file system

Now you can mount the drive and access the files as expected.

When you are done, run cryptsetup luksClose /dev/mapper/crsdX. You might be able to mount the drive in your file manager at this point.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.