** Description changed: This behavior is very inconsistent. I'm using btrfs, which only recently received swap file support as of linux kernel version 5.0. I followed the directions to get a swap file working on btrfs, including using resume=swap_device and resume_offset=swap_file_offset. The physical offset was retrieved using this script: https://github.com/osandov /osandov-linux/blob/master/scripts/btrfs_map_physical.c. I then divided the physical offset by the page size to get the resume offset. At best, hibernating into a swap file only works the first time after creation. Every subsequent hibernation leads my system to boot as if it were not resuming. At worst, hibernating causes the backing device to unattach from the caching device, leading to an unbootable system. I then have to - forcefully recreate the cache in order to fix it. + forcefully recreate the cache in order to fix it. I should also mention + that at one point I think my filesystem became corrupted since there + were quite a lot of missing files, including commands, that made my + system unusable. I then had to reinstall the whole system.
** Description changed: This behavior is very inconsistent. I'm using btrfs, which only recently received swap file support as of linux kernel version 5.0. I followed the directions to get a swap file working on btrfs, including using resume=swap_device and resume_offset=swap_file_offset. The physical offset was retrieved using this script: https://github.com/osandov /osandov-linux/blob/master/scripts/btrfs_map_physical.c. I then divided the physical offset by the page size to get the resume offset. At best, hibernating into a swap file only works the first time after creation. Every subsequent hibernation leads my system to boot as if it were not - resuming. At worst, hibernating causes the backing device to unattach - from the caching device, leading to an unbootable system. I then have to - forcefully recreate the cache in order to fix it. I should also mention - that at one point I think my filesystem became corrupted since there - were quite a lot of missing files, including commands, that made my - system unusable. I then had to reinstall the whole system. + resuming. In a worse case, hibernating caused the backing device to + unattach from the caching device, leading to an unbootable system. I + then had to forcefully recreate the cache in order to fix it. At worst, + at one point I think my filesystem became corrupted since there were + quite a lot of missing files, including commands, that made my system + unusable. I then had to reinstall the whole system. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878340 Title: Backing device unattaches from caching device when hibernating into a swap file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bcache-tools/+bug/1878340/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs