User Tools

Site Tools


encryption:luks-partition

This is an old revision of the document!


LUKS Encrypted Partition


Change LUKS Partition Password

  • Find the drive with the luks headers:
    cat /etc/crypttab
  • Find the partition using the disk label from the previous command:
    sudo fdisk -l /dev/sda
    • If it is listed by uuid, use:
      ls -l /dev/disk/by-uuid/{insert your uuid here}
  • Verify the Keyslots used:
    sudo cryptsetup luksDump /dev/sda5
  • Test passphrase:
    sudo cryptsetup --verbose open --test-passphrase /dev/sda5
  • Change Keyslot 0's key:
    sudo cryptsetup luksChangeKey /dev/sda5 -S 0
  • Verify new passphrase:
    sudo cryptsetup --verbose open --test-passphrase /dev/sda5

Unlock LUKS Partition from GRUB


encryption/luks-partition.1636503213.txt.gz · Last modified: by chuck