centos7 create swap partitions and mount

learning target:

Through this experiment to master the creation and management under Linux swap partition.

Steps:

1, in the second a new hard disk partition 1G, swap type is set to
2, activate the new swap partition, and the boot is automatically enabled new swap

Command:

The first step: disk partition

fdisk -l to see the new hard drive is found
centos7 create swap partitions and mount
for the swap partition according to the following steps, type 82
centos7 create swap partitions and mount

Step two: the new partition as swap

centos7 create swap partitions and mount
NOTE: The new partition must first activate before use by partprobe

The third step: Mount swap

centos7 create swap partitions and mount

The fourth step: activate the new swap, and view

centos7 create swap partitions and mount
Before activating only one swap, activated by the swapon -a, you can see the new swap

centos7 create swap partitions and mount

Guess you like

Origin blog.51cto.com/14324549/2416834