Device Boot Start End Blocks Id System
/dev/sdb1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sdb2 64 36405 291908608 8e Linux LVM
3、硬盘分区,由于centOS 只能一次挂载2T。所有4T的需要分两个区
#sudo fdisk /dev/sda
Command (m for help):m
(1)、输入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)
(2)、 输入n 添加分区
Command (m for help): n
Command action
e extended
p primary partition (1-4)
(3)、选择分区数
Partition number (1-4): 2
(4)设置柱面,这里选择默认值就可以
First cylinder (267350-486401, default 267350): 267350
Last cylinder, +cylinders or +size{K,M,G} (267350-486401, default 486401): 486401
4、挂载分区
# fdisk -l 查看分区情况
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sdb2 64 36405 291908608 8e Linux LVM