-/+ buffers/cache: 747 232
Swap: 0 0 0 # 可以看到现在是没有swap空间的
=========================================================================
[root@server0 ~]# fdisk /dev/sdb 【硬盘根据实际情况选择】
Welcome to fdisk (util-linux 2.23.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p【打印】
Disk /dev/sdb: 10.7 GB, 10737418240 bytes, 20971520 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x229e658e
Device Boot Start End Blocks Id System
/dev/sdb1 2048 10487807 5242880 8e Linux LVM
Command (m for help): n【创建分区】
Partition type:
p primary (1 primary, 0 extended, 3 free)
e extended
Select (default p): p【主分区】
Partition number (2-4, default 2): 【直接回车即可】
First sector (10487808-20971519, default 10487808): 【选择开始块,直接回车即可】
Using default value 10487808
Last sector, +sectors or +si