我知道有人问过这个问题,但我之所以问这个问题,是因为我发现的解决办法不管用。我也遇到了同样的问题:Ubuntu19.04“等待加密的源设备/swapfile”,然后在启动时提示initramfs :linux问答
但我尝试了修复,即在/etc/crypttab中添加"size=256“。我这样做了,但它仍然警告我,我还没有指定大小的密码,仍然需要时间来启动。(如果我在提示符下输入exit,我的计算机仍将引导到工作gui )
以下是/etc/fstab的内容:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/nvme0n1p2 during installation
UUID=694b4858-ead8-400d-9406-f9fc45dc71f1 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=CA5F-286C /boot/efi vfat umask=0077 0 1
#/swapfile none swap sw 0 0
#/dev/mapper/cryptswap1 none swap sw 0 0
#/swapfile swap swap defaults 0 0
/dev/mapper/cryptswap1 none swap sw,pri=100 0 0这是/etc/crypttab:
# <target name> <source device> <key file> <options>
cryptswap1 /swapfile /dev/urandom swap,offset=1024,cipher=aes-xts-plain64,size=256在我编辑/etc/crypttab之前,它一直在工作,但现在却不能工作,而且我必须使用Ubuntu恢复模式DPKG,这对我有帮助吗?
任何帮助都将不胜感激。泰伊提前了!
编辑:如果我能保留交换,因为我只有5.7gb内存(2.3gb内存是系统保留的),那就太好了。
发布于 2020-06-25 21:43:11
我找到了解决这个问题的方法。
/etc/fstab和/etc/crypttab中注释密码相关行sudo swapoff -a && sudo update-initramfs -u然而,尽管这是可行的,但我认为这对于每一个新的内核更新都是不利的。
https://askubuntu.com/questions/1253428
复制相似问题