In my /etc/fstab file I have an entry for my swap as follows:
/root/swap swap swap sw 0 0
I have other machines and also I've seen online that sometimes they put default or xfs or other options. Then, I'm a little confused on what 'sw' means and what's for, and also which one would be the best option to put there and why.
Best Answer
From the
fstab
manual on my system:So basically,
sw
is used to tellswapon
(orswapctl
on my system) that this is a valid candidate for use as swap space that will be added as part of the system start-up routine.From the manual describing
swapctl -A
:That's on OpenBSD. On the Ubuntu Linux system that I have access to, neither manual mentions
sw
as a mount option for swap for some reason.