• oriond@lemmy.mlOP
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    10 months ago

    Here is the command that will render a LUKS encrypted device un recoverable
    From the documentation.

    5.4 How do I securely erase a LUKS container?

    For LUKS, if you are in a desperate hurry, overwrite the LUKS header and key-slot area. For LUKS1 and LUKS2, just be generous and overwrite the first 100MB. A single overwrite with zeros should be enough. If you anticipate being in a desperate hurry, prepare the command beforehand. Example with /dev/sde1 as the LUKS partition and default parameters:

    head -c 100000000 /dev/zero > /dev/sde1; sync