Sometimes it is useful to automatically mount a luks encrypted disk. In this post I’m going to describe to do this safely.
- My workstation, a Lenovo Thinkpad W510 has a drive bay, where you either store a hdd or a optical drive. I usually have a hdd placed there but sometimes I need the optical drive. So I don’t want to put the disk into
/etc/crypttab. But I also don’t want to mount it manually evry time.
- On my homeserver I use a SATA hotswap disk to make backups. I have two of those hdd, swap them weekly and always keep one of them at my workplace. These backup disks are encrypted of course. When changing the disk I always have ssh onto the server, find the disk, decrypt it and mount it. Would be great if I just had to plug it in.
- Same ideas also apply to external data or backup disks
The content however is old and might be outdated.