News for hackers. Stuff that matters.
Re:Getting LUKS, Btrfs, Hibernation and Swap file working in... by mattpallissard on Friday March 10, 2023 @01:41PM (#35098942)
As a daily arch user for over a decade I can't help but be that guy; why not just RTFM? Isn't that arch/gentoo's thing? good docs? about 15 seconds of searching turned up all the info. To be fair use a btrfs swapfile on an encrypted/compress filesystem so I knew what to look for. But still, I find the wiki very reasonable to navigate and nearly up to date.

https://wiki.archlinux.org/title/installation_guide

https://wiki.archlinux.org/title/Power_management#Suspend_an...

https://wiki.archlinux.org/title/Power_management/Suspend_an...

https://wiki.archlinux.org/title/btrfs#Swap_file

Added note, there is currently a bug in systemd's suspend-then-hibernate behavior (doesn't ever wake up and hibernate). To use it you'll have to downgrade to the arch version 251.7-4.

edit: formatting

Re:Getting LUKS, Btrfs, Hibernation and Swap file working in... by nwb99 on Friday March 10, 2023 @02:54PM (#35099967)
That's exactly what I did to make all of this work. While the Arch Wiki is the best thing since sliced bread, some things on it are spread out or aren't clear: given some of the sections actually have some talk going on. That was my experience trying to figure out the topic of my blog post. Anyway, I produced the blog post for fun and in hopes it may help someone who is confused or unclear as to why something they do may not be working. I 100% cited those exact wiki articles in my blog post and recommended the reader to go through them prior to doing anything else (especially if the configuration was slightly different, i.e., UEFI vs BIOS). While I agree that RTFM is a good attitude to have, it has too many gate-keeping vibes and can discourage new users from learning the ropes. Some people need a little bit of hand holding to get going before being let loose. I was once that person, and I wanted to share my experience with others. Nonetheless, I still agree with your comment. Just thought I'd clear it up some.