tech:cheatsheets:linux:luks
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tech:cheatsheets:linux:luks [2024/04/02 14:16] – [Setup automatic unlock] waldemar | tech:cheatsheets:linux:luks [2024/09/27 07:46] (current) – waldemar | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| <code bash> | <code bash> | ||
| cryptsetup luksOpen / | cryptsetup luksOpen / | ||
| - | mount / | + | mount / |
| </ | </ | ||
| + | ==== Grow partition ==== | ||
| + | Note: filesystem should not be mounted when resizing | ||
| + | * https:// | ||
| ===== Change key of encrypted partition ===== | ===== Change key of encrypted partition ===== | ||
| <code bash> | <code bash> | ||
| Line 37: | Line 40: | ||
| clevis luks regen -d / | clevis luks regen -d / | ||
| </ | </ | ||
| + | |||
| + | ==== Change PCRs ==== | ||
| + | To change PCRs you first need to delete the key and then re-add using the wanted PCRs. | ||
| + | |||
| + | List the used slots: | ||
| + | <code bash> | ||
| + | clevis luks list -d / | ||
| + | </ | ||
| + | |||
| + | Remove the slot: | ||
| + | <code bash> | ||
| + | clevis luks unbind -d / | ||
| + | </ | ||
| + | Note: '' | ||
| + | |||
| + | After that re-add the key like above. | ||
| ===== References ===== | ===== References ===== | ||
| Line 46: | Line 65: | ||
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
tech/cheatsheets/linux/luks.1712067396.txt.gz · Last modified: by waldemar