![]() |
Slackware64 14 suspend to disk with swapfile broken
Hi,
i have set up a swapfile instead a swap partition on a fresh slackware64 14.0 system Code:
root@orion7:~# dd if=/dev/zero of=/swapfile bs=1M count=4096Code:
[ 2213.764376] PM: thaw of devices complete after 345.673 msecsdo i miss something? regards fl0 |
If you want to resume from a swap file, you need an extra kernel parameter, see:
https://wiki.archlinux.org/index.php..._file_resuming Yes, I know it's the Arch wiki in the Slackware forum, but it's a good explanation. |
Quote:
according to http://git.kernel.org/?p=linux/kerne...2d0319;hb=HEAD and http://git.kernel.org/?p=linux/kerne...af9527;hb=HEAD and http://suspend.sourceforge.net/ there are some more pitfalls, like LVM and initramfs usage (i use both), so i think i will use a swap partition, its much easier. The only reason i would use a swapfile , i assumed it was easier..... regards fl0 |
Ok i finally got it working...maybe i have misunderstood the kernel docs, or they are not correct. It is a dirty hack, but works, later i write a How To at docs.slackware.com but here is the short version - patch initrd to understand resume_offset and find the right resume device - patch mkinitrd to write resume_offset information to the initrd image regards fl0 |
|
| All times are GMT -5. The time now is 05:12 AM. |