How to share TrueCrypted drive for OSX and Linux with write perms
Jan 21, '11 07:30:00AM
Contributed by: paczor
Let's say you have hard drive encrypted with TrueCrypt with HFS+ filesystem on it and you want to use it under both: OSX and Linux. That's no problem because TrueCrypt works great on both systems. But when you want to WRITE to such drive under Linux you'll get an error. That's because Linux do not support writing to journaled HFS. This is how to remove journaling from such drive.
Disabling journalingu on Mac is simple:
- connect encrypted hard drive (e.g. TC-Disk) with TrueCrypt and then
- open Terminal and type:
diskutil disableJournal /Volumes/TC-Disk
Disabling journaling on Linux is slightly more complicated. Open up a shell window and do the following (comments are in parentheses, the # is the prompt):
- # truecrypt --filesystem=none /dev/sda (TrueCrypt connects drive without knowledge of filesystem type.)
- # truecrypt -l (Look for the mount path of the drive.)
- You should see something similar to:
/dev/mapper/truecrypt1 /dev/sda
- then:
# fsck.hfs -fy /dev/mapper/truecrypt1 (The fsck.hfs command to turn journaling OFF.)
- And now you can mount TC-Disk under Linux with read-write permissions:
# mount -t hfsplus -o rw /dev/mapper/truecrypt1 /mnt/my_encrypted_drive
[crarko adds: I haven't tested this one. OK, it's a little obscure but it might help someone.]
Comments (3)
Mac OS X Hints
http://hints.macworld.com/article.php?story=20110110060024871