Creation of a swap zone

From EN Ikoula wiki
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽

ro:Crearea unei zone de schimb ru:Создание своп-зоны pl:Utworzenie strefy swap ja:スワップゾーンの創設 zh:建立一个交换区 de:Erstellung einer Swap-Zone nl:Instelling van een ruilzone it:Creazione di una zona di scambio pt:Criação de uma zona de troca 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



You are not allowed to post comments.