MKSWAP(8) mkswap - mkswap [] [] mkswap [] [] mkswap . ( /dev/sdb7) . , 82 (LINUX_SWAP) . (: . .) . ( 1024- . mkswap . - .) , swapon(8) . /etc/fstab swapon -a . . , . . mkswap, ,,mkfs" , . , mkswap (SUN, BSD, ...). -c, --check ( ) . , . -F, --file . -f, --force . . , , mkswap . -q, --quiet . -L, --label , swapon(8). --lock[=] Use an exclusive BSD lock for the device or file that is operated upon. The optional argument mode can be yes (1), no (0), or nonblock. If the mode argument is omitted, it defaults to yes. This option overrides the environment variable $LOCK_BLOCK_DEVICE. The default is to not use any lock at all, but using a lock is recommended to avoid collisions with systemd-udevd(8) or other tools. -p, --pagesize ( ) . ; mkswap . -U, --uuid . . - , : ,,c1b9d5a2-f162-11cf-9ece-0020afc76f16". : clear random time -e, --endianness , native, little big. native. -o, --offset . -s, --size : KiB (=1024), MiB (=1024*1024), GiB, TiB, PiB, EiB, ZiB YiB (,,iB" , ., ,,K" ,,KiB"). , . --file. -v, --swapversion 1 . ( , -v 0 -v 1. v0 2.5.22 ( 2002.). v1 2.1.117 ( 1998.).) --verbose . mkswap . -h, --help . -V, --version . LIBBLKID_DEBUG= ,,libblkid" . LOCK_BLOCK_DEVICE=<> . 1 0. --lock . . 4294967295 (32- ). . , 32 . /proc/swaps. mkswap 10 . , getconf PAGESIZE. mkswap --file, mkswap, . 2.41, mkswap --file ,,nocow" Btrfs-. # dd if=/dev/zero of=swapfile bs=1MiB count=$((8*1024)) 8GiB . , swapon(8) ( , --). fdisk(8), swapon(8) , ,,https://github.com/util-linux/util-linux/issues[issue tracker]". mkswap ,,util-linux" . util-linux 2.42.1 2026-05-18 MKSWAP(8)