Lock and remove the decrypted device mapping.
Section: RAID and Encryption
Close a LUKS device
bash
bash
sudo cryptsetup close cryptdataExplanation
Lock and remove the decrypted device mapping.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing RAID and Encryption
Show decrypted mapper devices
Verify decrypted mapper devices and mountpoints.
Show active MD arrays
Quick view of RAID sync, rebuild, and degraded state.