我相信我已经设置好交换了,但是不确定,因为在启动时它说是“无法为手动S挂载/ dev / mapper / cryptswap1 M来跳过手动S”。但是好像要装吗?我已经尝试过此解决方案,但没有成功。
当我运行free -m
输出是:
total used free shared buffers cached
Mem: 3887 769 3117 0 54 348
-/+ buffers/cache: 366 3520
Swap: 4026 0 4026
并且sudo bklid
是:
/dev/sda1: UUID="9fb3ccd6-3732-4989-bfa4-e943a09f1153" TYPE="ext4"
/dev/mapper/cryptswap1: UUID="bd9fe154-8621-48b3-95d2-ae5c91f373fd" TYPE="swap"
并且cat /etc/crypttab
是:
cryptswap1 /dev/sda5 /dev/urandom swap,cipher=aes-cbc-essiv:sha256
我/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).
#
#
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=9fb3ccd6-3732-4989-bfa4-e943a09f1153 / ext4
errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
#UUID=bb0e378e-8742-435a-beda-ae7788a7c1b0 none swap
sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0
cat /proc/swaps
输出为:
Filename Type Size Used Priority
/dev/dm-0 partition 4123644 0 -1
我的交换设置是否正确,或者我该如何解决引导消息?