由于缺少交换 UUID,无法启用休眠

由于缺少交换 UUID,无法启用休眠

我已尝试按照上述说明进行操作这里为了在我的 Ubuntu 20.04.2 LTS 系统上激活休眠状态。

但是,我无法做到这一点,因为在我的 fstab 文件中,交换行没有提供 uuid,如下所示:

  GNU nano 4.8                       /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>
/dev/mapper/vgubuntu-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/nvme0n1p2 during installation
UUID=86a29cef-7076-4d45-9d5c-08065fd3e3fb /boot           ext4    defaults     >
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=6B80-CFF9  /boot/efi       vfat    umask=0077      0       1
/dev/mapper/vgubuntu-swap_1 none            swap    sw              0       0

  GNU nano 4.8                       /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>
/dev/mapper/vgubuntu-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/nvme0n1p2 during installation
UUID=86a29cef-7076-4d45-9d5c-08065fd3e3fb /boot           ext4    defaults     >
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=6B80-CFF9  /boot/efi       vfat    umask=0077      0       1
/dev/mapper/vgubuntu-swap_1 none            swap    sw              0       0

有人有什么建议吗?

相关内容