Stop making swap partitions–use swap files instead
gist.github.com
Stop making swap partitions–use swap files instead
1–8 of 8 posts
Re: Stop making swap partitions–use swap files instead
#2Thank you for your opinion, Bill.
Just kidding, I agree with the sentiment. It's 2026 not 1976. You don't need separate physical partitions for most use cases.
Re: Stop making swap partitions–use swap files instead
#3Anything that does
create file
chmod 0600 file
should be umask 077
create fileRe: Stop making swap partitions–use swap files instead
#4Probably not a great idea if you're using btrfs [0].
[0]: https://btrfs.readthedocs.io/en/latest/Swapfile.html#:~:text...
Re: Stop making swap partitions–use swap files instead
#5Probably not a great idea if you're using btrfs [0]. [0]: https://btrfs.readthedocs.io/en/latest/Swapfile.html#:~:text...
I wonder if it works [reliably] on ZFS…
Re: Stop making swap partitions–use swap files instead
#6just buy more RAM, it's cheap enough...
Re: Stop making swap partitions–use swap files instead
#7just buy more RAM, it's cheap enough...
Where do you live ? Must be some magical place where RAM is cheap !
Re: Stop making swap partitions–use swap files instead
#8Anything that does create file chmod 0600 file should be umask 077 create file
Foe the ones, like me, who didn't know why you recommended that:
By setting umask 077 first and then creating the file, the file gets created with the correct restrictive permissions (0600) in one step instead leaving the file readable for "everyone" for a moment.