From: Mike Yuan Date: Fri, 10 May 2024 17:03:51 +0000 (+0800) Subject: mkswap.8.adoc: update note regarding swapfile creation X-Git-Tag: v2.42-start~350^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7b4e937c862ea84e1568b01cd5ec69918920f9a5;p=thirdparty%2Futil-linux.git mkswap.8.adoc: update note regarding swapfile creation Follow-up for 7377b0d99560460806eab9efa9d8224d084c2082 (the addition of --file option) --- diff --git a/disk-utils/mkswap.8.adoc b/disk-utils/mkswap.8.adoc index 17212438a..2aba655de 100644 --- a/disk-utils/mkswap.8.adoc +++ b/disk-utils/mkswap.8.adoc @@ -112,7 +112,7 @@ Presently, Linux allows 32 swap areas. The areas in use can be seen in the file If you don't know the page size that your machine uses, you can look it up with *getconf PAGESIZE*. -To set up a swap file, it is necessary to create that file before initializing it with *mkswap*, e.g. using a command like +Aside from *mkswap --file*, it is also possible to create the swapfile manually before initializing it with *mkswap*, e.g. using a command like .... # dd if=/dev/zero of=swapfile bs=1MiB count=$((8*1024)) @@ -120,7 +120,7 @@ To set up a swap file, it is necessary to create that file before initializing i to create 8GiB swapfile. -Please read notes from *swapon*(8) about *the swap file use restrictions* (holes, preallocation and copy-on-write issues). +In such a case, please read notes from *swapon*(8) about *the swap file use restrictions* (holes, preallocation and copy-on-write issues). == SEE ALSO