Advertisement
Tritonio

cryptsetup cheat sheet

Oct 25th, 2021 (edited)
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. cryptsetup luksFormat --type=luks2 --integrity hmac-sha256 /dev/sda1
  2.  
  3. cryptsetup open /dev/sda1 sda1_crypt
  4.  
  5. mkfs.ext4 -i 4M -m 0 -L Label /dev/mapper/sda1_crypt
  6.  
  7. cryptsetup close /dev/mapper/sda1_crypt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement