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, the type is set to swap
2, activate the new swap partition, and the boot can automatically enable new swap
Command:
The first step: disk partition
fdisk -l to see whether the new hard drive found
The following steps partition type 82 as swap
Step two: the new partition as swap
NOTE: The new partition must first activate before use by partprobe
The third step: Mount swap
The fourth step: activate the new swap, and view
Before activating only one swap, activated by the swapon -a, you can see the new swap