I'm assuming you are using dm-crypt
and LUKS
. If that is the case, then you can add a new password, and then delete the old one.
In this setup, you are not changing the actual encryption key, you are just changing the password that encrypts (locks) the encryption key. With Luks you can have multiple passwords set that can decrypt (unlock) the disk encryption key.
To be a bit more descriptive, you would do the following (or similar):
sudo cryptsetup luksAddKey /location/to/encrypted/device
<<enter a new password>> # Once completed, it should tell you which slot the
# new key was added to.
sudo cryptsetup luksKillSlot /location/to/encrypted/device <<slot number of old key>>