Create a LUKS-encrypted block device.
Section: RAID and Encryption
Initialize a LUKS container
bash
bash
sudo cryptsetup luksFormat /dev/sdb1Explanation
Create a LUKS-encrypted block device.
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.