GoGreen PC Tune-Up™
Learn More

this is how ssl encrypt our websites
MTNCOMP | List View | Table View | myBlog (1751 Entries)
myBlog Home


Linux - Encrypted LVM partition management notes to self

Linux Tux

by Mountain Computers Inc., Publication Date: Monday, September 21, 2020

View Count: 1668, Keywords: Ubuntu, cryptsetup, luksAddKey, luksRemoveKey, Hashtags: #Ubuntu #cryptsetup #luksAddKey #luksRemoveKey

notes to self... with all the encryption management I am having to do, have to stop going back to my sent email folder for these notes...

First, you need to find out which is the encrypted LVM partition, it may be sda3, but it can also be sda5, sdX2, ...:

cat /etc/crypttab

Toadd a new password, use luksAddKey:

sudo cryptsetup luksAddKey /dev/sda3

Toremove an existing password, use luksRemoveKey:

sudo cryptsetup luksRemoveKey /dev/sda3

View currently used slots of the encrypted partition:

sudo cryptsetup luksDump /dev/sd3



if you found this article helpful, consider contributing $10, 20 an Andrew Jackson or so..to the author. more authors coming soon
FYI we use paypal or patreon, patreon has 3x the transaction fees, so we don't, not yet.

© 2024 myBlog™ v1.1 All rights reserved. We count views as reads, so let's not over think it.