diff --git a/disk-utils/mkswap.8 b/disk-utils/mkswap.8 index a6ab8530d..27f922171 100644 --- a/disk-utils/mkswap.8 +++ b/disk-utils/mkswap.8 @@ -124,10 +124,12 @@ e.g.\& using a command like .nf .RS -# fallocate \-\-length 8GiB swapfile +# dd if=/dev/zero of=swapfile bs=1MiB count=$((8*1024)) .RE .fi +to create 8GiB swapfile. + Note that a swap file must not contain any holes. Using .BR cp (1) to create the file is not acceptable. Neither is use of