Skip to content

Instantly share code, notes, and snippets.

View brianwoo's full-sized avatar

Brian Woo brianwoo

View GitHub Profile
@flbuddymooreiv
flbuddymooreiv / cryptsetupluks.md
Last active March 25, 2023 19:19
CryptSetup / LUKS cheat sheet
# Install the tools
apt-get install cryptsetup

# -y for password confirmation prompt
cryptsetup -y -v luksFormat /dev/sdx # THIS DELETES ALL THE DATA

# Open it and look at status
cryptsetup luksOpen /dev/sdx cryptoblock
cryptsetup -v status cryptoblock