# How to change the disk encryption password

**URL:** <https://forums.suse.com/t/how-to-change-the-disk-encryption-password/34068>\
**Category:** SLED Configure-Administer\
**Created:** [June 14, 2019, 4:43am UTC](https://forums.suse.com/t/how-to-change-the-disk-encryption-password/34068 "2019-06-14T04:43:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![widyachacra](https://avatars.discourse-cdn.com/v4/letter/w/d9b06d/32.png) [@widyachacra](https://forums.suse.com/u/widyachacra)\
**Post date:** [June 14, 2019, 4:43am UTC](https://forums.suse.com/t/how-to-change-the-disk-encryption-password/34068/1 "2019-06-14T04:43:04Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [June 15, 2019, 9:00pm UTC](https://forums.suse.com/t/how-to-change-the-disk-encryption-password/34068/2 "2019-06-15T21:00:15Z")

</div>

From my notes from my laptop which uses LUKS (I’m assuming your box does  
too) these steps exist:

```auto
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.
