SWAPON(8) SWAPON(8) swapon - swapoff - / (swapping) (paging) swapon [] [specialfile...] swapoff [-va] [specialfile...] swapon . specialfile. -L -U uuid (uuid). swapon . swapoff . -a ( /proc/swaps /etc/fstab). -a --all "swap" /etc/fstab "noauto". . FSTAB . -T --fstab fstab mount(8). strverscmp(3) "." .fstab. . initramfs chroot . -d --discard[=] (discard) (trim). (SSD) . : --discard=once swapon --discard=pages . . /etc/fstab discard discard=once discard=pages . -e --ifexists . nofail /etc/fstab . -f --fixpgsz ( mkswap) . mkswap(8) . -L () . ( /proc/partitions.) -o --options opts fstab. : swapon -o pri=1,discard=pages,nofail /dev/sda2 opts . -p --priority . 0 32767. . swapon(2) . pri= /etc/fstab swapon -a. . -s --summary . cat /proc/swaps. --show . --show[=...] . --help . --output-all . --annotate[=] . . always never auto. auto . --noheadings --show. --raw --show . --bytes --show . -U uuid uuid . -v --verbose . -h --help . -V --version . FSTAB swapon --all /etc/fstab ( --fstab). fstab ( ) "swap". --options fstab. () (swap). . LABEL= UUID= ( mkswap(8) ) PARTLABEL= PARTUUID=. () swapon "none". () "swap" . () . . "defaults". fstab swapon . : noauto swapon --all. nofail . discard[=] (discard) . discard discard=once discard=pages. --discard. pri= . --priority. swapon . swapon . 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 . LIBMOUNT_DEBUG=all libmount. LIBBLKID_DEBUG=all libblkid. /dev/sd?? /etc/fstab ascii . (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. swapon ( S1SUSPEND S2SUSPEND ...) . . swapon 4.0BSD. swapoff(2) swapon(2) fstab(5) init(8) fallocate(1) mkswap(8) mount(8) rc(8) . swapon util-linux . util-linux 2.42.1 2026-05-18 SWAPON(8)