mkswap命令
【NAME】
mkswap - set up a Linux swap area
创建一个swap分区
【SYNOPSIS】
mkswap [OPTIONS] device
【OPTIONS】
-L LABEL:指明卷标
-f:强制
【EXAMPLES】
[root@Centos6.8-180 ~]# fdisk -l /dev/sdaDisk /dev/sda: 85.9 GB, 85899345920 bytes255 heads, 63 sectors/track, 10443 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x000a0f18 Device Boot Start End Blocks Id System/dev/sda1 * 1 64 512000 83 LinuxPartition 1 does not end on cylinder boundary./dev/sda2 64 6591 52428800 8e Linux LVM/dev/sda3 6591 7896 10482796 83 Linux/dev/sda4 7897 10443 20458777+ 5 Extended/dev/sda5 7897 9202 10490413+ 83 Linux/dev/sda6 9203 9464 2104483+ 82 Linux swap / Solaris[root@Centos6.8-180 ~]# mkswap /dev/sda6 #创建swap分区Setting up swapspace version 1, size = 2104476 KiBno label, UUID=4f8b74d7-cce7-47aa-83e1-42c11eedd36a
转载于:https://blog.51cto.com/zhucke/1906330