To mount a LUKS-encrypted file system by its mounting point in the /etc/fstab file (here /vol), type:
# mount /vol
To mount a LUKS-encrypted file system by its LUKS name (here vol), type:
# mount /dev/mapper/vol
To unmount a LUKS-encrypted file system by its mounting point in the /etc/fstab file (here /vol), type:
# umount /vol
To unmount a LUKS-encrypted file system by its LUKS name (here vol), type:
# umount /dev/mapper/vol
To remove a LUKS-encrypted file system, follow these steps.
Unmount the LUKS file system (here /vol):
# umount /vol
Close the LUKS logical volume:
# cryptsetup luksClose /dev/mapper/vol
Remove the logical volume:
# lvremove /dev/vg/lv_vol
Remove the file where the passphrase is stored (here /root/luks.key):
# rm /root/luks.key
Edit the /etc/crypttab and /etc/fstab files and remove the entries associated with the LUKS logical volume (here vol).
Leave a Reply
You must be logged in to post a comment.