Linux中MBR和GPT分区的区别

在Linux中对磁盘分区有两个方案

1、MBR分区方案
2、GPT分区方案

MBR分区方案特点:

1、最多支持四个主分区,
2、在Linux上使用扩展分区和逻辑分区最多可以创建15个分区,
3、由于分区中的数据以32位存储,使用MBR分区是最大支持2T空间。
4、fdisk管理工具只能创建MBR分区

GPT分区方案特点

1、是UEFI标准的一部分,主板必须要支持UEFI标准
2、GPT分区列表支持最大128PB(1PB=1024TB)
3、可以定义128个分区
4、没有主分区,扩展分区和逻辑分区的概念,所有分区都能格式化
5、gdisk管理工具可以创建GPT分区

区分MBR和GPT分区

1、使用fdisk -l 命令

看到如下信息说明该分区是GPT分区

WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.

Disk label type: gpt

看到如下信息说明该分区是MBR分区

/dev/sda1   *        2048     1026047      512000   83  Linux
/dev/sda2         1026048   419430399   209202176   8e  Linux LVM

Disk label type: dos

fdisk -l 命令输出

[root@localhost home]# fdisk -l

Disk /dev/sda: 214.7 GB, 214748364800 bytes, 419430400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000bd24a

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     1026047      512000   83  Linux
/dev/sda2         1026048   419430399   209202176   8e  Linux LVM
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.

Disk /dev/sdb: 214.7 GB, 214748364800 bytes, 419430400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: gpt

 Start          End    Size  Type            Name
 1         2048    419430366    200G  Linux filesyste Linux filesystem
<省略部分输出>

2、使用parted -l

[root@localhost home]# parted -l
Model: VMware Virtual disk (scsi)
Disk /dev/sda: 215GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End    Size   Type     File system  Flags
 1      1049kB  525MB  524MB  primary  xfs          boot
 2      525MB   215GB  214GB  primary               lvm


Model: VMware Virtual disk (scsi)
Disk /dev/sdb: 215GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End    Size   File system  Name              Flags
 1      1049kB  215GB  215GB               Linux filesystem

<省略部分输出>
  • 6
    点赞
  • 27
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

刘贝斯

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值