Skip to content

Instantly share code, notes, and snippets.

@sokil
Last active February 8, 2021 20:15
Show Gist options
  • Save sokil/6b1d94706178d9768d5dd788ae9bdcfc to your computer and use it in GitHub Desktop.
Save sokil/6b1d94706178d9768d5dd788ae9bdcfc to your computer and use it in GitHub Desktop.
Crypt Partition
# format in luks
sudo cryptsetup luksFormat --hash=sha512 --key-size=512 /dev/sda7
# create mapping
sudo cryptsetup open --type=luks /dev/sda7 SECURED
# check mapping
sudo cryptsetup -v status SECURED
# format partition
sudo mkfs.ext4 /dev/mapper/SECURED
# mount martition
sudo mount /dev/mapper/SECURED /media/SECURED/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment