扩展分区,主分区,逻辑分区
gpt
划分分区
[root@localhost ~]# fdisk -l

[root@localhost ~]# fdisk /dev/vdb

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 #####删除分区
g create a new empty GPT partition table
G create an IRIX (SGI) partition table
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 &n

本文介绍了如何在Linux中进行磁盘分区,包括使用fdisk创建扩展分区、主分区和逻辑分区,以及格式化分区和挂载操作。详细步骤涵盖了从创建分区到永久挂载,包括使用parted工具和编辑fstab文件。
最低0.47元/天 解锁文章
2220

被折叠的 条评论
为什么被折叠?



