→ → → Change Disk Encryption Password
How to change the password of an encrypted LVM system
LUKS allows for an encrypted partition/system to have multiple passwords and also to remove them. So to change the password we first add the new password and then remove the old one.
- Get the name of the encrypted volume
Open the terminal application Tilix and type the command:
It will show you the name of the partition, ignore /boot and /swap
Add a new password
- In Tilix run the command:
sudo cryptsetup luksAddKey /dev/device_name
- It will ask you for your user password, type it and press enter.
- Next you will be asked for the old disk encryption password, type it and press enter.
- Type the new password you want for the encrypted disk, and press enter
- Confirm the new password and press enter
The new password is now added
Removing the old password
From Tilix run the command:
sudo cryptsetup luksRemoveKey /dev/device_name
- Type the password that you want to delete and press enter
Start up GNOME Disks and click the encrypted volume you wish to change the password for, click the gear icon and select Change Passphrase...:
Enter your current and new password, and that's it: