Skip to content

cryptsetup: Difference between luksRemoveKey and luksremovekey

luksKillSlot: wipe key with number <key slot> from LUKS device. A remaining passphrase or key file (via --key-file) must be supplied.

luksremovekey: remove supplied key or key file from LUKS device

The only difference I see here is that the first command requires that at least one keyslot is kept intact. I assume that this is not the reason for having two commands for the same action. Thus there is probably a difference in what goes on "behind the curtain," so to speak. From reading the documentation and the man page, I was unable to figure it out.

Thanks!

2 points2 comments
Open on Reddit
About this post
Posted
Archived
Score
2 · 100% up
Kind
Text
ID
2ohn27

Author

13
posts
127
comments
3
media
View profile

2 comments

the difference is in how the key is selected: the first removes by number the second by example

1 points

Ah yes. How silly of me to overlook this. Since one command has 'key' in its name and the other 'slot,' I thought it has to do with that - but it did not occur to me that I either supply the slot or the key itself and that is the explanation. Thanks!

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.