一 分区模式之MBR
1、主分区不超过4个
2、单个分区容量最大2TB
二 分区模式之GPT
1、主分区个数“几乎”没有限制。
在GPT的分区表中最多支持128个主分区。
2、单个分区容量“几乎”没有限制。
在GPT的分区模式中,每个分区的大小突破了MBR分区2TB限制。
75.png
三 实战
[root@localhost ~]# parted
GNU Parted 3.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) help
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table, available
devices, free space, all found partitions, or a particular partition
quit exit program
rescue START END rescue a lost partition near START and
END
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLA

最低0.47元/天 解锁文章
1205

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



