← 返回手记
未分类

修改ubuntu 磁盘加密密钥

历史文章,保留原始发布日期与正文。文中软件、链接及操作方法可能已变化,实践前请核对当前环境。

Here is the answer that worked for me, after Hamish helped me to realize my typo:

To add a new password, use luksAddKey:

sudo cryptsetup luksAddKey /dev/sda5

To remove an existing password, use luksRemoveKey:

sudo cryptsetup luksRemoveKey /dev/sda5