I secured my data by setup disk encryption password on the installation wizard. Now I want to change it.
How to change the existing disk encryption password?
I secured my data by setup disk encryption password on the installation wizard. Now I want to change it.
How to change the existing disk encryption password?
From my notes from my laptop which uses LUKS (I’m assuming your box does
too) these steps exist:
cryptsetup is the tool to do use.
#First, verify device is LUKS device (returns zero, or add -v to be verbose):
sudo /sbin/cryptsetup -v isLuks /dev/sda2
#Now show used slots, just so we know what is going on:
sudo /sbin/cryptsetup luksDump /dev/sda2
#Next change the LUKS key for that device AFTER entering the prompted-for
existing key for that slot
sudo /sbin/cryptsetup luksChangeKey /dev/sda2 -S 0 #where zero is the
target slot number, the first of eight total available
–
Good luck.
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below.
If you want to send me a private message, please let me know in the
forum as I do not use the web interface often.