Before I mess things up, figured it would be wise to ask the Linux Gurus about this.
Have a Raspberry Pi 4 running Arch-Arm, and the main system running EOS, all good and dandy.
The Pi has an external HD (4TB) that is used for backups, among other things, etc, but it is not encrypted (yet). Figured the best way to protect my data would be to encrypt said HD to be on the safe side, which brings us to the crux of the problem.
Have a general idea on how to encrypt the drive using LUKS, but would like to auto-mount it at boot, to avoid typing a password (since the Pi is headless), but also, want to mount it on the main laptop for easy access in case of traveling, troubleshooting, etc.
To sum it up:
- Encrypt external HD with LUKS
- Create key to auto-mount encrypted volume on a headless setup (Pi) and un-mount to close partition.
- Be able to mount encrypted HD on a different system for troubleshooting, data access, etc.
What would be the suggested course to follow here?
Looking forward to hear your suggestions