卸载 Encrypted LVM 功能删除 Ubuntu Boot 时提示的密码输入

Xia*_*lin 5 linux boot ubuntu encryption lvm

当我安装 Ubuntu 11.04 时,我被提供了为我的硬盘启用“加密 LVM”的选项。选择该选项后,系统会在引导期间提示我输入密码以解密 LVM。

现在,我正在考虑取消/卸载/删除“加密的 LVM”功能,因为我不想每次系统重新启动时都输入“加密的 LVM”密码。我知道您可以设置 SSH 来解密 LVM,但是这需要安装其他程序。有没有更好/干净的方法来解决这个问题,比如卸载“加密的 LVM”?如何做,这个问题不是 Ubuntu 特有的。谢谢。

bsd*_*bsd 5

There is no simple "remove encryption" command that will preserve your data.
The Arch Wiki explains how to remove encryption and basically it describes the process of data backup, remove encryption, format fs, restore data.

If you entered a long key, and you're tired of typing it every time you login, you could add a new, shorter key.

Before you do any of the following you need to enter your key and backup the unencrypted data.

cryptsetup luksAddKey /dev/mapper/encrypted
Enter any passphrase: current_key_needs_to_be_entered 
Enter new passphrase for key slot: new_short_key
Verify passphrase:  new_short_key
Run Code Online (Sandbox Code Playgroud)

Your new passphrase can be short, just a few chars, 123 if you wish.

This can be done quickly, but leaves the data encrypted with a short useless key.
I would recommend following the wiki and eliminating the encryption.