Tag

fstab

0 views collected around this technical thread.

Raymond Ops
Raymond Ops
Mar 30, 2025 · Operations

How to Permanently Disable Swap on Modern Linux Systems

This guide explains why the traditional /etc/fstab comment method fails on newer Linux distributions and provides two reliable techniques—masking the swap.target unit with systemd and adding the noauto option to the fstab swap entry—to permanently disable swap across Ubuntu, CentOS, openEuler, and other major systems.

CentOSUbuntufstab
0 likes · 7 min read
How to Permanently Disable Swap on Modern Linux Systems