CentOS 磁盘空间扩容操作方法
1、使用命令查看磁盘信息,标红的为新增的磁盘空间
2、使用fdisk命令,创建新分区
参考:https://blog.51cto.com/12185273/2048111
root@localhost# fdisk /dev/sdb
命令(输入 m 获取帮助): m
命令操作
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)
命令(输入 m 获取帮助): n #new 新分区
Partition type:
p primary (1 primary, 1