Difference between revisions of "Swap"

37 bytes added ,  3 years ago
Use dd instead of fallocate: https://man.archlinux.org/man/swapon.8#Files_with_holes
(Marked this version for translation)
(Use dd instead of fallocate: https://man.archlinux.org/man/swapon.8#Files_with_holes)
Line 135: Line 135:


<translate><!--T:43--> First create and intialize the file to hold the swap.  For example, to create a 4GB swapfile, you could use the command:</translate>
<translate><!--T:43--> First create and intialize the file to hold the swap.  For example, to create a 4GB swapfile, you could use the command:</translate>
  sudo fallocate -l 4G /swapfile
  sudo dd if=/dev/zero of=/swapfile bs=1M count=4096 status=progress
  sudo mkswap /swapfile
  sudo mkswap /swapfile


Line 151: Line 151:


<translate>
<translate>
==Swapfiles on BTRFS== <!--T:47-->
==Swapfiles on BTRFS== <!--T:47-->