Difference between revisions of "Creation of a swap zone"
⧼vector-jumptonavigation⧽
⧼vector-jumptosearch⧽
(Created page with "<span data-link_translate_fr_title="Création d'une zone de swap" data-link_translate_fr_url="Création d'une zone de swap"></span>fr:Création d'une zone de swapfr:Cr...") |
|||
Line 1: | Line 1: | ||
+ | <span data-link_translate_es_title="Creación de una zona de intercambio" data-link_translate_es_url="Creación de una zona de intercambio"></span>[[:es:Creación de una zona de intercambio]][[es:Creación de una zona de intercambio]] | ||
<span data-link_translate_fr_title="Création d'une zone de swap" data-link_translate_fr_url="Création d'une zone de swap"></span>[[:fr:Création d'une zone de swap]][[fr:Création d'une zone de swap]] | <span data-link_translate_fr_title="Création d'une zone de swap" data-link_translate_fr_url="Création d'une zone de swap"></span>[[:fr:Création d'une zone de swap]][[fr:Création d'une zone de swap]] | ||
<br />This article has been created by an automatic translation software. You can view the article source [[:fr:Array|here]].<br /><span data-translate="fr"></span><br /> | <br />This article has been created by an automatic translation software. You can view the article source [[:fr:Array|here]].<br /><span data-translate="fr"></span><br /> |
Revision as of 12:20, 26 July 2021
es:Creación de una zona de intercambio
fr:Création d'une zone de swap
This article has been created by an automatic translation software. You can view the article source here.
Introduction
We will see how to create a swap zone in a file.
This can also be used to complement an existing swap area as a partition or file.
Course
Example to add 1GB of swap to the swapfile1 file in the root.
We generate the file :
# dd if=/dev/zero of=/swapfile1 bs=1024 count=1048576
Format the file in swap:
# mkswap /swapfile1 1048576
Mount the area of swap:
# swapon /swapfile1
We add the following configuration to the /etc/fstab file so that the swap zone is mounted at startup:
/swapfile1 swap swap defaults 0 0
Cet article vous a semblé utile ?
0
Enable comment auto-refresher