0

After exploring for a long time on the correct hibernation method with swapfile. I managed to hibernate without issue. However, the next booting after hibernating my computer looks almost identical to fresh start. And sometimes there are even inode issues, indicating that the shutdown might not be normal on hibernation.

Let me briefly explain what I have done. I am using swapfile for swap, bigger than the RAM I have. The /etc/default/grub.conf is modified with resume=/swapfile and resume_offset set to be the value obtained from filefrag. /boot/grub/grub.cfg contain

$ sudo less /boot/grub/grub.cfg | grep resume=                                                                                                                                                               [1]
    linux   /boot/vmlinuz-4.14-x86_64 root=UUID=bd71eede-cc76-4deb-8d87-38ccba20b1de rw  cryptdevice=UUID=b3b24a1e-6b66-4acc-ad11-8980430ae2e2:homeData resume=/swapfile resume_offset=5416960 quiet 
        linux   /boot/vmlinuz-4.14-x86_64 root=UUID=bd71eede-cc76-4deb-8d87-38ccba20b1de rw  cryptdevice=UUID=b3b24a1e-6b66-4acc-ad11-8980430ae2e2:homeData resume=/swapfile resume_offset=5416960 quiet 
        linux   /boot/vmlinuz-4.14-x86_64 root=UUID=bd71eede-cc76-4deb-8d87-38ccba20b1de rw  cryptdevice=UUID=b3b24a1e-6b66-4acc-ad11-8980430ae2e2:homeData resume=/swapfile resume_offset=5416960 quiet

This indicates that the setup was successful.

For kernel hook, I also placed resume before filesystems and ran the mkinitcpio afterwards.

So basically I have done whatever I can find on the internet. However, the resume still fail without much indications. The only entry of log I can see related to the hibernation is:

Jun 02 05:33:55 Thanatos-Linux swapon[336]: swapon: /swapfile: software suspend data detected. Rewriting the swap signature.

Do you know what other things could go wrong? What journal entry did I miss to consider?

I am using 64bit version Manjaro.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.