Will an external HDD encrypted with 17.10 be accessible with 18.04 after an upgrade?

You should have no trouble mounting the external drive as long as you have cryptsetup:

sudo apt install cryptsetup

Once this is installed you will be able to mount the drive via file browser.


You are using LUKS so Ubuntu is using cryptsetup behind the scene. Normally, encrypted volumne with LUKS should still work after an upgrade unless the default encryption method has changed.

There was a time many years ago, the default aes-cbc-plain was changed and that causes some drives not to mount unless the old encryption method is specifed explicitly. There is no such change between 17.10 and 18.04, so your situation should be okay.

NB: In Ubuntu 18.04, cryptsetup should came installed by default but if you wish to use cryptsetup as a command line tool in bash, you should install cryptsetup-bin

sudo apt-get install cryptsetup-bin

I recommend that you boot a live system with Ubuntu 18.04 and simply try it out.

In any case you don't need to worry about data loss between releases, installations, or systems since with LUKS all the necessary parameters are stored in the volume header. Just make sure that cryptsetup is installed and don't lose your passphrase and/or key files!

If Ubuntu 18.04 lacks an auto-mount feature that asks for a decryption key upon device connection please ask a new question and I'm sure we can cook up some Udev magic to replicate this feature.