fallocate

This commit is contained in:
Benoît S. 2020-07-22 04:48:24 +02:00
parent 425b516df9
commit a657b6e131

View file

@ -32,6 +32,7 @@ Par exemple pour ajouter un fichier de SWAP nommé `swapfile3` de 4G dans /home.
~~~ ~~~
# cd /home # cd /home
# dd if=/dev/zero of=./swapfile3 bs=1M count=4096 # dd if=/dev/zero of=./swapfile3 bs=1M count=4096
# OU # fallocate -l 4G ./swapfile3
# chown root: swapfile3 # chown root: swapfile3
# chmod 0600 swapfile3 # chmod 0600 swapfile3
# mkswap -LSWAP3 ./swapfile3 # mkswap -LSWAP3 ./swapfile3