3 ms·
I have an encrypted swap partition. Hibernation works well with that. I don't believe it is possible with a swap file since the containing filesystem would al
by rogerbinns 10y ago
I have an encrypted swap partition. Hibernation works well with that. I don't believe it is possible with a swap file since the containing filesystem would also be mounted by the hibernation image.
- 77pt77 10y ago> 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-for-hibernation.html 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.
- rogerbinns 10y agoI 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.