#######################################################################
#######################################################################
NAME
fdisk - Partition table manipulator for Linux
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 141 614400 82 Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sda3 141 1306 9358336 83 Linux
[iyunv@nginx ~]#
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types 查看分区
m print this menu 帮助信息
n add a new partition 新建分区
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help):
2. n 新建分区
e extended
p primary partition(1-4)
3.w 分区完成后w保存
4.[iyunv@nginx-master opt]# partprobe
5.[iyunv@nginx-master opt]# mkfs.ext4 /dev/sda
4.写入 fs /etc/fstab