Swap: Difference between revisions

Zram writeback: os error 16
Line 107: Line 107:
</syntaxhighlight>
</syntaxhighlight>


If you are using GPT partitioning tables, <code>systemd-gpt-auto-generator(8)</code> will still mount your swap partition automatically. You must therefore turn on attribute 63 on your partition in the partition table. This can be done with gptfdisk or similar:
If you are using GPT partitioning tables, <code>systemd-gpt-auto-generator(8)</code> will still mount your swap partition automatically. You must therefore turn on attribute 63 ("no automount") on *every* swap partition partition in the partition table. This can be done with gptfdisk or similar:


<syntaxhighlight lang="console">
<syntaxhighlight lang="console">
Line 117: Line 117:
<enter>
<enter>
w
w
</syntaxhighlight>
Alternatively, <code>systemd-gpt-auto-generator(8)</code> for swap can be disabled globally through a kernel cmdline <code>systemd.swap=0</code>:
<syntaxhighlight lang="nix">
boot.kernelParams = [ "systemd.swap=0" ];
</syntaxhighlight>
</syntaxhighlight>