Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save YannMoisan/d29b0d3defbac75965c2a52615ec5aae to your computer and use it in GitHub Desktop.

Select an option

Save YannMoisan/d29b0d3defbac75965c2a52615ec5aae to your computer and use it in GitHub Desktop.
Encrypt an external drive
Context : Encryption of an external drive that need to be accessed from OSX and Linux
The drive has an existing NTFS partition
I use veracrypt. It's open source, and seems to be the de facto standard nowadays.
On OSX, I installed OSX Fuse.
I create a volume within the partition, and the problems begin with the choice of the filesystem.
Firstly, this choice depends on the OS from which I create the volume :
- From OSX, I can choose HFS+
- From Linux, I can choose Linux Ext2, Ext3, Ext4, NTFS and exFAT
Now let's go through the result of my tests :
- with HFS+, R/W works from OSX, but write doesn't work from Linux
- with ext4, R/W works from Linux, but can't mount on OSX (error: hdiutil: attach failed, no mountable file systems)
- with NTFS, R/W works from Linux, but can't write from OSX (I may need to install ntfs-3g)
- with exFAT, R/W works from Linux, and R/W works from OSX. Eureka !
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment