Luks | cli | Linux

Set a UUID for the LUKS partition:
cryptsetup luksUUID --uuid "" /dev/sdxX
Open a LUKS device:
cryptsetup luksOpen
dmsetup info
Create quickly a key:
dd if=/dev/urandom of=$HOME/keyfile bs=32 count=1 chmod 600 $HOME/keyfile
Add a key for device :
cryptsetup luksAddKey ~/keyfile
Remove a device key:
cryptsetup luksRemoveKey
Close the volume group:
lvchange -a n My_vg_crypt cryptsetup -v
Close the LUKS device:
luksClose My_Crypt luks-bxxaccxx-xxxd-4f3a-xxxx-16965ea084d1


2019-04-26 09:57:40


Add a Comment

Login or Register to post a Comment.