How to change password on encrypted disk

Anyone know how I can change the harddisk password once it’s set through reform-setup-encrypted-disk?

sudo cryptsetup luksChangeKey /dev/nvme0n1

This will:

  1. ask you for your sudo password
  2. ask you for your old luks password
  3. ask you for the new luks password

Make sure that there is no power failure in the middle of this operation!

I successfully verified that this does the right thing.

1 Like

Also note: there’s a luksAddKey which allows you to add multiple passphrases. Convenient to handle common typos and sharing a computer with somebody.

2 Likes

This did the trick! thank you