Last active
February 8, 2021 20:15
-
-
Save sokil/6b1d94706178d9768d5dd788ae9bdcfc to your computer and use it in GitHub Desktop.
Crypt Partition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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