使用 uefi 和加密在半驱动器上安装 ubuntu 会出现交换错误

使用 uefi 和加密在半驱动器上安装 ubuntu 会出现交换错误

我正在尝试安装 lUbuntu,并且只需要将其安装在一半的磁盘上,但使用 UEFI 和加密。

至于我只需要使用一半的磁盘,我在他们要求安装类型的步骤中偷看了“其他内容”。然后我在那里有我的空驱动器。我创建新的分区表。为 UEFI 创建 100M 驱动器,作为“创建 EFI 系统分区”。然后我创建 12G 驱动器用于交换。然后我创建 150G 驱动器用于实际的 Linux 安装。但我想加密它,所以我创建了 150G 的“用于加密的物理卷”,输入我的密码并按“确定”。但是,我得到了“检测到不安全的交换空间”:

 An unsafe swap space has been detected.

 This is a fatal error since sensitive data could be written out to
 disk unencrypted. This would allow someone with access to the disk to
 recover parts of the encryption key or passphrase.

 Please disable the swap space (e.g. by running swapoff) or configure
 an encrypted swap space and then run setup of encrypted volumes again.
 This program will now abort.

到目前为止。第一个问题 - 我如何为交换分区创建单独的驱动器并使用相同的加密?没有交换分区我该如何工作?无论如何,我已经删除了交换分区,在控制台中运行sudo swapoff -a并再次尝试。这次我只有 uefi 分区,这个 150G 分区带有加密,还有一个用于 ext4 加密分区的映射器。然后我发出错误,说我没有根分区,所以我选择挂载点作为/该加密驱动器。然后我得到错误,/boot应该在加密容器之外,所以我创建了另一个 100M 分区用于启动。第二个问题:我需要为 UEFI 和 分开分区吗/boot?无论如何,然后我单击下一步进行安装并收到警告:

You have not selected any partitions for use as swap space. Enabling swap space is recommended so that the system can make btter use of availabe physical memory and so that it behaves better when physical memory is sarce.
you may experience installation problems if you do not have enough physical memory.

If you do not go back to the partitioning menu and assign a swap partition, the installation will continue without swap space.

到目前为止,第三个问题:如果在上一步中它要求 ne 删除交换,那么为什么它说我需要交换?无论如何,我按“继续”。它会安装吗?


更新:安装过程中我得到:the attempt to mount a filesystem with type ext4 in Encrypted volume (sda_crypt) failed。Linux。最好的。

相关内容