Well, you do not have any swap (or it is deactivated): it is normal you cannot hibernate. You can create either a swap partition (e.g., using fdisk or GNU parted or gParted, its graphical interface, which is far less intimidating) or, easier (especially if you have no partition to shrink; XFS cannot be shrunk), a swap file (here /mnt/swapfile, of size 4 GiB but setting it to the size of your RAM makes sense: you will be able to hibernate even if your RAM is full):
$ sudo dd if=/dev/zero of=/mnt/swapfile bs=1024 count=4194304
$ sudo mkswap /mnt/swapfile
$ sudo swapon /mnt/swapfile

For the swap to be enabled at init (rather than manually executing 'swapon' after every reboot), one line must be appended to /etc/fstab (here for the swap file above, indicate the partition instead of the file if you chose a swap partition):
$ echo '/mnt/swapfile swap swap defaults 0 0' | sudo tee -a /etc/fstab

Reply via email to