How to Recover a Linux LUKS Encrypted Disk

    Use a known LUKS slot, boot from a live USB, and back up your LUKS header before attempting recovery.

    JDCS
    By Jordan Dickson · Reviewed by CSG Security Engineers

    Updated June 2026 · 2 min read

    Check for Simple Issues First

    Before attempting complex recovery, always ensure that the issue isn't something straightforward. Many 'disk failures' are often due to easily fixable problems.
    • Verify the physical connections of the disk are secure. Loose cables are a common culprit.
    • Try to boot into a live Linux environment (e.g., Ubuntu Live CD/USB). This helps rule out issues with your installed operating system.
    • Check the system logs for error messages. Use journalctl -xe or examine logs in /var/log/ for clues.
    • Ensure you are using the correct passphrase. Typos or Caps Lock can prevent decryption.

    Tip

    Always double-check the basics before diving into advanced troubleshooting; it saves a lot of time!

    Attempt to Open the LUKS Volume

    If basic checks don't resolve the issue, the next step is to try and manually open the LUKS volume. This involves using the cryptsetup command.
    1. Identify the encrypted partition using sudo fdisk -l or lsblk. Look for partitions with type Linux filesystem but showing no mount point if it's not open.
    2. Attempt to open the LUKS volume: sudo cryptsetup luksOpen /dev/sdXN my_encrypted_volume (replace /dev/sdXN with your partition and my_encrypted_volume with a name you choose).
    3. If successful, try to mount the opened volume: sudo mount /dev/mapper/my_encrypted_volume /mnt/recovery (replace /mnt/recovery with your desired mount point).
    4. If mounting fails, try to run a filesystem check on the opened volume: sudo fsck -fv /dev/mapper/my_encrypted_volume.

    Good to know

    Remember that luksOpen only decrypts the volume; you still need to mount it to access your files.

    Recover from LUKS Header Backup

    The LUKS header contains crucial information for decrypting your disk. If it's corrupted, a backup can be a lifesaver. This is why making regular backups is critical.
    • Locate your LUKS header backup file. It's usually created with sudo cryptsetup luksHeaderBackup /dev/sdXN --header-backup-file header_backup.img.
    • Restore the header using: sudo cryptsetup luksHeaderRestore /dev/sdXN --header-backup-file header_backup.img.
    • After restoring, attempt to open the LUKS volume again as described in the previous section.

    Important

    Restoring a LUKS header is a destructive operation that *replaces* your current header. Only proceed if you are certain your current header is corrupted and you have a valid backup.

    Consider Data Recovery Specialists

    If all software-based recovery attempts fail, and your data is irreplaceable, professional data recovery services are your last resort. They have specialised tools and expertise.
    • Do not continue to attempt recovery if you are unsure; further attempts can worsen the damage.
    • Research reputable data recovery companies that specialise in encrypted drives.
    • Be prepared for potentially significant costs; professional data recovery is often expensive.
    • Provide them with as much detail as possible about the disk's history and the problem.

    Good to know

    Professional data recovery can be costly, so weigh the value of your data against the potential expense.

    Was this guide helpful?

    Know someone who needs this? Send them the guide.

    JD

    Written by

    Jordan Dickson

    Founder, CyberSecurityGuides

    Founder of CyberSecurityGuides, writing practical, jargon-free guides that help everyday people recover from and protect against online attacks.

    Reviewed by CSG Security Engineers

    More from Device Security