SWAPOFF(8) System Administration SWAPOFF(8) (NAME) swapoff - (SYNOPSIS) swapon [options] [specialfile...] swapoff [-va] [specialfile...] (DESCRIPTION) swapon (swapping) . specialfile . -L label -U uuid uuid . swapon (boot) . swapoff . -a ( /proc/swaps /etc/fstab ) . (OPTIONS) -a, --all /etc/fstab "swap" "noauto" . . -T, --fstab path fstab mount(8) . path strverscmp(3) <<.>> fstab. . . initramfs chroot . -d, --discard[=policy] (discard) discard trim . (SSD) . : --discard=once swapon --discard=pages . discard . (mount) /etc/fstab discard discard=once discard=pages discard . -e, --ifexists . nofail /etc/fstab . -f, --fixpgsz ( mkswap) . mkswap(8) . -L label label . ( /proc/partitions .) -o, --options opts fstab . : swapon -o pri=1,discard=pages,nofail /dev/sda2 opts (override) . -p, --priority priority . priority 0 32767 . . swapon(2) . pri=value swapon -a /etc/fstab . . -s, --summary . cat /proc/swaps . --show (DEPRECATED). --show[=column...] . --help . --output-all . --noheadings --show . --raw --show . --bytes --show . -U uuid uuid . -v, --verbose . -h, --help . -V, --version . (EXIT STATUS) swapoff v2.36 : 0 2 (OOM) 4 swapoff(2) 8 swapoff(2) ( ...) 16 32 swapoff --all 64 swapoff --all swapoff --all 0 ( ) 32 ( ) 64 ( ) . v2.36 0 . (ENVIRONMENT) LIBMOUNT_DEBUG=all libmount . LIBBLKID_DEBUG=all libblkid . (FILES) /dev/sd?? /etc/fstab (ASCII) (NOTES) (Files with holes) . (copy-on-write) Btrfs . cp(1) truncate(1) . swapon . fallocate(1) . XFS 4.18 . dd(1) /dev/zero . Btrfs Btrfs 5.0 nocow . btrfs(5) . 2.41 mkswap --file nocow . NFS NFS . (Suspend) swapon ( S1SUSPEND S2SUSPEND ...) . . (HISTORY) swapon 4.0BSD . (SEE ALSO) swapoff(2), swapon(2), fstab(5), init(8), fallocate(1), mkswap(8), mount(8), rc(8) (REPORTING BUGS) . . (AVAILABILITY) swapoff util-linux . . util-linux 2.41.5 2026-06-16 SWAPOFF(8)