I encrypted an SD card using the following command: "cryptsetup -y --cipher aes-xts-essiv:sha256 --key-size 512 luksFormat /dev/PARTITION" The encryption worked fine. So I proceeding to test by moving some data to it (although I can only do this as root for some reason). I then unmounted the drive and switched on the hardware lock to prevent any changes. The problem is that for some reason I can't unencrypt the drive is the hardware switch is on.

Any tips on how to encrypt the drive in such a way that I'm able to unencrypt with the hardware switch on? Anyone know why only root can write to the encrypted volume?

Reply via email to