2

I am following this to enable hibernation in my ubuntu 20.04LTS system. I followed exactly as mentioned in the first answer. But when I run grep swap /etc/fstab to get the UUID value I get the below as the output.

/swapfile                                 none            swap    sw              0       0

I don't understand where my UUID is. How do I enable hibernation in my system?

2 Answers2

2

You don't need the swapfile UUID for hibernation but the UUID of the swapfile's physical partition, which might not be your root partition. To enable hibernation follow this guide instead.

To get the UUID of the swapfile which AFAIK is of no use try:

sudo swapoff /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
evfokas
  • 21
0

Use this swaplabel command with \swapfile argument (sudo is needed).

$ sudo swaplabel /swapfile
UUID:  bb7f30c2-6d9d-4594-bcab-ed8e643ccb50
sugab
  • 4,417