Score:0

Cannot enable hybernation due to missing swap UUID

ph flag

I have tried to follow the instructions mentioned here in order to activate hybernation on my Ubuntu 20.04.2 LTS system.

However, I could not do it because in my fstab file the swap line does not provide a uuid as you can see below:

  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

Does anybody have recommendations?

paladin avatar
kr flag
Try instead `GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/mapper/vgubuntu-swap_1"` PS I'm not really sure if this works, please test it.
user3161330 avatar
ph flag
@paladin thank you for the suggestion but it did not work unfortunately. Any other idea?
paladin avatar
kr flag
You might use a swap partition instead of a swap file, this will have a UUID.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.