Showing posts from 2020

Ubuntu - Auto-mount an encrypted drive

My new computer has a "small" SSD and a large HDD. Solid-State Drives are the popular choice for startup disks as they are blazing fast, while ordinary Hard-Disk Drives are excellent for long time storage. [As an aside, don't ignore your backup strategy. I've written (and published) my own open-source backup utility .] When I installed Ubuntu, I encrypted both drives, which is cool. However, when I started the computer for the first time, the HDD did not mount. Bummer. I managed to semi-auto-mount the HDD with the Disks Utility (encryption options -> Unlock at system startup) and with Nautilus, but I still had to manually navigate to the HDD (in Nautilus) before I could work. Not good. Recently, I solved this problem and I'm sharing the solution with you. It's not as hard as it seems. First, you need some code to mount the HDD. This code will not work. First, you need to create a mount point. Then you need to mount the HDD. Once you have the mount point cr