相关疑难解决方法(0)

打开:cryptsetup 内存不足(“没有足够的可用内存来打开密钥槽。”)

我正在开发 yocto 发行版,包括 2.3.2 版本中的 cryptsetup

我在具有 1 GB RAM 的主板上运行此类发行版,在尝试打开无法正确调试的加密分区时遇到“内存不足”错误。有任何想法吗?

我的发行版从具有 3 个分区的 mSD 运行;第三个 (30 MB) 是加密的。

我使用ArchLinux 指南中描述的步骤来加密该分区,使用 ext3 而不是 ext4

# cryptsetup -y -v luksFormat /dev/sda2
# cryptsetup open /dev/sda2 cryptroot
# mkfs.ext3 /dev/mapper/cryptroot
Run Code Online (Sandbox Code Playgroud)

但尝试在我的主板上打开该分区会引发错误:

cryptsetup --debug open /dev/mmcblk0p3  cryptroot
# cryptsetup 2.3.2 processing "cryptsetup --debug open /dev/mmcblk0p3 cryptroot"
# Running command open.
# Locking memory.
# Installing SIGINT/SIGTERM handler.
# Unblocking interruption on signal.
# Allocating context for crypt device /dev/mmcblk0p3.
# Trying …
Run Code Online (Sandbox Code Playgroud)

encryption luks cryptsetup yocto

8
推荐指数
2
解决办法
5295
查看次数

标签 统计

cryptsetup ×1

encryption ×1

luks ×1

yocto ×1