I have an external 1TB USB hard drive linked to a Raspbmc setup (XBMC on Raspberry Pi), Currently the files (pictures, music, movies) on this drive are naked, so anyone can copy or delete them if he attached the drive to his laptop.

I want to password protect my files on this drive so it could not be copied however Raspbmc should able to access the files somehow, is there a way to set a password in XBMC to read password protected drives?


2 Answers 2


You can use Logical Volume Management (LVM) to create a logical volume on the HDD. You can then use dm-crypt to encrypt your LVM.

Archlinux has great documentation on Disk Encryption and Encrypted LVMs. I highly recommend these open-source options over TrueCrypt.

If you want the pi to be able to access the information easily, you may want to use a file instead of a passphrase for decryption.


Your best bet is going to be TrueCrypt, or something like that. Encrypt the volume, and only mount it when you want to use the disk.

I don't think you will find the solution you want already written but in an open source world, I'm sure it can be done... That would be a pretty cool expansion for XBMC.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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