I have Fedora 31 installed in VirtualBox, and I am trying to test out hibernation with a swap file, but no matter what I do I am unable to get Hibernation to work.
I am using a 6GB swap file with the RAM allocated to the VM is 5GB, so the file should be sufficient for a successful hibernate.
This is my /etc/fstab:
/dev/mapper/vgfedora-fedora / ext4 defaults 1 1
UUID=070a13c2-7c99-4703-bb7a-e408245316c4 /boot ext4 defaults 1 2
/fedora.swap none swap 0 0
UUID=070a13c2-7c99-4703-bb7a-e408245316c4 /boot ext4 defaults 1 2
/fedora.swap none swap 0 0
This is my grub.cfg:
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rd.lvm.lv=vgfedora/fedora rhgb quiet resume=/dev/vgfedora/fedora resume_offset=587776"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rd.lvm.lv=vgfedora/fedora rhgb quiet resume=/dev/vgfedora/fedora resume_offset=587776"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true
I have followed the instructions from the Arch wiki:
I am hibernating using the following command:
sudo /usr/lib/systemd/systemd-sleep hibernate
Weirdly, there are no errors in the log that I get with journalctl -b : https://pastebin.com/9cfnRx8V
I have not added any hooks to the initramfs because if you see the tutorial it says that if you are using systemd then you don't need any additional hooks in the initramfs. Thus, I did not rebuild my initramfs.
Do I have to do that ? Fedora uses systemd by default right ?
I don't understand what I am doing wrong, I am only using LVM but no encryption.
This is my lsblk -f output:
NAME FSTYPE LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
sda
├─sda1 ext4 070a13c2-7c99-4703-bb7a-e408245316c4 739.3M 17% /boot
└─sda2 LVM2_member m1OMiT-aeUG-9Fb1-pNSw-LmUn-rKJK-cHYASh
└─vgfedora-fedora ext4 8cec892a-8da9-4ee2-95fe-bc2e0c4cd3aa 24G 34% /
sr0
sda
├─sda1 ext4 070a13c2-7c99-4703-bb7a-e408245316c4 739.3M 17% /boot
└─sda2 LVM2_member m1OMiT-aeUG-9Fb1-pNSw-LmUn-rKJK-cHYASh
└─vgfedora-fedora ext4 8cec892a-8da9-4ee2-95fe-bc2e0c4cd3aa 24G 34% /
sr0
Let me know if there are any other logs I can include, I am unable to understand what is the root cause of the problem, there are no errors any where.
Even SELinux is not complaining.
Thanks.
-- Regards,
Sreyan Chakravarty
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx