Chapter 1 Installing Operating System
3.4.2
Using the swap file
If the swap partition cannot be secured, the swap file can be created and the swap area can be expanded. The
procedure for creating the swap file with the file name "swap file" and 1 GB capacity in the root directory is
described here.
1.
Log in to the server as the root user. If you login with graphical mode, select [Others...] to login.
2.
Execute the following command to create the file for swap.
# dd if=/dev/zero of=/swapfile bs=1024 count=1048576
3.
Execute the following command to create the swap area.
# mkswap /swapfile
4.
Execute the following command to change the permission "/swapfile".
# chmod 0600 /swapfile
5.
Set so that the partition can be mounted automatically at startup.
Open "/etc/fstab" with the editor, and add the following line.
/swapfile swap swap defaults 0 0
6.
Execute the following command to disable all swaps.
# swapoff -a
7.
Execute the following command to enable all swaps.
# swapon -a
8.
Execute the following command to check that swap is enabled.
# swapon -s
54
Express5800/R320e-E4, R320e-M4 Installation Guide (Linux)
3. Procedure for Changing the System Environment Setting