Marco Betschart
  • About Me
  • Curriculum Vitae
  • About this Website
  • Recent Activities
    • SBB Half Fair Plus Comparison
    • How things evolved since January
    • How things evolved since January
    • Why elementary OS is the right choice for me
    • It's Christmas Time: Jólnir brings many gifts
    • GnuCash Dashboard
    • elementary OS: Office Productivity Improvements
    • elementary OS 6: Post Release Bugfixing
    • A month dedicated to elementary Mail
    • Granite HyperTextView
    • elementary Online Accounts
    • Dipping elementary OS' toes into Virtual Reality
    • The 3 pillars of my PKMS
  • Got a Question?
  • My Projects
    • Bachelor's degree in Computer Science
    • FOSS Productivity System
    • Time Limit
  • My Areas
    • CalyxOS
    • Arch Linux
      • Setup Checklist
      • OpenXR: Monado
      • xrdesktop: wxrd
    • Knowledge Management
      • The PARA Method
      • Zettelkasten
      • Howto setup Zotero
  • Resources
    • Add Binary to GitHub Gist
    • Catch-All E-Mail Address on Gandi.net
    • Dell XPS 7390 eGPU
    • Linux Desktop
      • Calibre Settings PDF conversion
      • Convert Kobo ACSM to DRM free ePub
      • Encrypt USB Stick with Vera Crypt
      • Install Eclipse Java EE
      • Install Nextcloud Client
      • Install Oracle SQL Developer
      • Install Steam
      • Setup Printer and Scanner
      • Setup Local Kubernetes Development Environment
      • VSCode: Vala Development
  • Archives
    • elementary OS
      • Debug a Vala or C App
      • Dual Boot elementary OS and Windows with Full Disk Encryption
      • elementary Mail v6
      • elementary Online Accounts v6
      • elementary Tasks v6
      • Missing Features & Workarounds
      • Setup Checklist
      • Support for xrdesktop (Virtual Reality) in elementary
    • Error: could not find distribution template for Elementary/odin
    • Half Life: Alyx
    • Progress for Apple Reminders
  • Open Source Contributions
  • Lebenslauf
Powered by GitBook
On this page
  • Installation
  • Traveler Disk Setup
  • Partition the USB Stick
  • Copy VeraCrypt binaries
  • Create encrypted partition
  • Further Reading

Was this helpful?

  1. Resources
  2. Linux Desktop

Encrypt USB Stick with Vera Crypt

How to encrypt an USB stick using Vera Crypt.

PreviousConvert Kobo ACSM to DRM free ePubNextInstall Eclipse Java EE

Last updated 3 years ago

Was this helpful?

If you like my work, . It would mean the world to me!

Installation

VeraCrypt is not available on the default Ubuntu repositories. Therefore, to install it using the package manger, you have to add the PPA repositories.

Add PPA repos using the command below. Note that this repository is not related to VeraCrypt even though Unit 193 is Xubuntu developer and he is a great contributor to the open source community;

sudo add-apt-repository ppa:unit193/encryption
sudo apt-get update
sudo apt install veracrypt

Traveler Disk Setup

PLEASE NOTE: Since we are not using Windows, there is no Tools > Traveler Disk Setup option. This is expected. Nevertheless, we can create the Traveler Disk manually:

... For linux and MAC this option is not available, but the apps are already portable. I just had to copy the executables from /usr/bin in Linux and Applications in OSX. I've tested them on clean system where TrueCrypt wasn't installed.

Partition the USB Stick

The first step is to create two Partitions on your USB Stick:

  • a small one called Travel-Disk using the NTFS file system and is 512 MB in size

    • this partition won't be encrypted; It will provide the VeraCrypt binaries

  • a big one claiming all of the remaining space of your USB Stick

    • we are going to encrypt this partition in a minute

Copy VeraCrypt binaries

Next we'll transfer the VeraCrypt binaries to the Travel-Disk Partition. Below we are assuming it is mounted under /media/$USER/Travel-Disk.

Linux

# Create a Linux directory:
mkdir /media/$USER/Travel-Disk/Linux

# Copy the veracrypt binary:
cp /usr/bin/veracrypt /media/$USER/Travel-Disk/Linux/

# Create a brief README:
cat > /media/$USER/Travel-Disk/Linux/README.md << 'EOF'
# VeraCrypt for Linux

Execute the veracrypt binary from your Terminal:

sh -c /media/$USER/Travel-Disk/Linux/veracrypt
EOF

macOS

# Create a macOS directory:
mkdir /media/$USER/Travel-Disk/macOS

# Copy the VeraCrypt DMG file:
cp ~/Downloads/VeraCrypt*.dmg /media/$USER/Travel-Disk/macOS/

# Copy the macFuse DMG file:
cp ~/Downloads/macfuse*.dmg /media/$USER/Travel-Disk/macOS/

# Create a brief README:
cat > /media/$USER/Travel-Disk/macOS/README.md << 'EOF'
# VeraCrypt for macOS

No standalone version available.
macFUSE 3.10 or newer must be installed too.
EOF

Windows

# Create a Windows directory:
mkdir /media/$USER/Travel-Disk/Windows

# Copy the VeraCrypt Portable exe file:
cp ~/Downloads/VeraCrypt*.exe /media/$USER/Travel-Disk/Windows/

# Create a brief README:
cat > /media/$USER/Travel-Disk/Windows/README.md << 'EOF'
# VeraCrypt for Windows

IMPORTANT: DON'T EXTRACT THE APP TO THE USB STICK!

Because the VeraCrypt driver is not unloaded
after exiting VeraCrypt, you won't be able to
unmount the stick without a system reboot.

https://www.veracrypt.fr/en/Portable%20Mode.html
EOF

Create encrypted partition

Now everything is ready to create the encrypted partition:

  1. Start VeraCrypt

  2. Go to Tools > Volume Creation Wizard

  3. Select Create a Volume within a partition/drive

  4. Select Standard VeraCrypt volume

  5. In Volume Location, click Select Device...

    • then select the previously created, big partition (probably /dev/sda2)

  6. Enter the local machine's Administrator password when prompted

  7. Then set your Volume Password

  8. Enable Large File support

  9. Choose NTFS as the Filesystem Type

  10. Enable Cross-Platform Support

  11. Format the Volume

  12. Click Exit - and you're done

Further Reading

Unfortunately for macOS there is no standalone version available, because macFUSE 3.10 or newer must be installed too. So the best we can do is to along with the and copy both files to Travel-Disk together with a brief README file:

There is a portable version available for Windows, so we download the and copy it to Travel-Disk/Windows:

In Encryption Options make sure to select

download the latest stable VeraCrypt DMG file
latest stable macFuse
latest stable version
something different than the defaults
VeraCrypt Documentation
Create veracrypt traveler disk in Ubuntu
How to work with DMG files on Linux
Breaking VeraCrypt containers
❤️ Sponsor Me
- Ask Ubuntu: Create veracrypt traveler disk in Ubuntu
Installation
Traveler Disk Setup
Troubleshooting
Further Reading
Status: Verified
elementary OS: 6.0 Odin