Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I don't believe it is possible with a swap file since the containing filesystem would also be mounted by the hibernation image.

for sure it is. Even for swap files inside an encrypted volume.

https://vadim-kirilchuk-linux.blogspot.com/2013/05/swap-file...

The crux is knowing the swap-file offset and passing that argument as resume_offset on boot.

Have a look. It's totally doable and you won't need to have an actual partition.



I never realised the swap header on files also provides enough information to locate the other blocks without going through the filesystem. Logical I guess. This is however more work that "works out of the box" swap partitions.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: