Change Cryptsetup Passphrase

In order to know which devices are encrypted, we need to list them out crisp and clear. This section guides you on how to list all Cryptsetup encrypted partitions, be in internally setup or external devices.

Listing Devices

You need to identify the correct partition for the passphrase changes. Visit the following link if you need the know how.

Change Passphrase

Now that you got your device name, it's time to change the passphrase for that encrypted partition. In this example, we will be using sda5 as our dummy device.

The command is:

$ cryptsetup luksChangeKey /path/to/device

Based on our example, it is:

$ cryptsetup luksChangeKey /dev/sda5

Prompt for Passphrase

Note that cryptsetup is quite smart in terms of finding your passphrases. That also means you need your previous passphrase for identifications. Otherwise, you would not be able to change it.

Once done, new passphrase will be requested and you may follow the instructions easily.

That's all about changing cryptsetup passphrase for encrypted medium.