Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I encrypt an external device (i.e. USB keys, external hard-drives, memory sticks, etc.) so that it would subsequently be readable/writable on any computer that I plug it in?

For instance, it should then be possible to easily plug the encrypted device on a Linux, Windows, or OS X machine, and be able to access the contents without any fuss.

How can I do that?

share|improve this question
You can try truecrypt it's supported both by windows and linux.. – karthick87 Dec 24 '10 at 18:46
Related:… – landroni Jan 23 '15 at 23:26
up vote 3 down vote accepted

You could also consider installing Truecrypt on your USB. Once installed, use TrueCrypt to create an encrypted container, which can be opened with the software on the key. Saves you time installing software on multiple computers, still leaving you with the encryption you wanted.

share|improve this answer
Thanks for the answer @Phinx, that should work fine.. – Ondrej Sotolar Dec 26 '10 at 20:57
Veracrypt is considered the successor to Truecrypt. – Flimm Jun 20 at 8:46

Truecrypt is probably your best choice, though you'll need to be able to install the software on any computer you want to use.

share|improve this answer
Veracrypt is considered the successor to Truecrypt. – Flimm Jun 20 at 8:46

I would use encfs which is available for linux, osx and windows. Advantage is that you can also use it with cloud storage since encfs encrypts on filesystem level and therefore the changes only affect the files changed not a partition as a whole.

Edit, additional info

On Linux it's as easy as

encfs ~/Dropbox/encrypted ~/Private

I presume it's similar on windows but I have only tested it between OSX and Linux so far. You can find a little more info here

On Linux Gonme Encfs Manager is a pretty handy GUI tool to manage encfs encrypted directories, store passwords in keyring, etc.

share|improve this answer
Could you provide step-by-step instructions on how to encrypt a partition on Linux, and then decrypt it say on Windows? – landroni Jan 26 '15 at 4:08
On Linux it's as easy as 'encfs ~/Dropbox/encrypted ~/Private' I presume it's similar on windows but I have only tested it between OSX and Linux so far. You can find a little more info here… – binaryanomaly Jan 26 '15 at 9:39
Could you please edit your answer and include this info? It would be very useful for future users. – landroni Jan 26 '15 at 11:57
Sure, good idea, why not. – binaryanomaly Jan 26 '15 at 14:32

There is DoxBox:

Open-Source disk encryption for Windows

  • Easy to use, with a 'wizard' for creating new 'DoxBoxes'.
  • Full transparent encryption, DoxBoxes appear as removable disks in Windows Explorer.
  • Explorer mode lets you access DoxBoxes when you don't have admin permissions.
  • Compatible with Linux encryption, Cryptoloop "losetup", dm-crypt, and LUKS. Linux shell scripts support deniable encryption on Linux.
  • Supports smartcards and security tokens.
  • Encrypted DoxBoxes can be a file, a partition, or a whole disk.
  • Opens legacy volumes created with FreeOTFE
  • Runs on Windows Vista onwards (see note below for 64 bit versions).
  • Supports numerous hash (including SHA-512, RIPEMD-320, Tiger) and encryption algorithms (Including AES, Twofish, and Serpent) in several modes (CBC, LRW, and XTS), giving more options than any other disk encryption software.
  • Optional 'key files' let you use a thumb-drive as a key.
  • Portable mode doesn't need to be installed and leaves little trace on 3rd party PCs (administrator rights needed).
  • Deniable encryption protects you from 'rubber hose cryptography'.

After open-source computer program FreeOTFE for on-the-fly disk encryption (OTFE) got discontinued, the DoxBox fork sprung up.

This means that you can encrypt a partition using LUKS (How to encrypt external devices?), and then access it from a Windows machine using DoxBox.

share|improve this answer

Your Answer


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.