How to Check the Partition Table is GPT or MBR in Linux System

There are several ways to check whether a disk uses MBR or GPT partitioning scheme in Linux as well.

The command line method should work on all Linux distributions.

sudo parted -l
[root@vps01 ~]# sudo parted -l
Disk /dev/ploop31780: 42.9GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name  Flags
 1      1049kB  42.9GB  42.9GB  ext4

For MBR, it would show msdos.

[root@centos7 ~]# sudo parted -l
Disk /dev/sda: 64.4GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  1075MB  1074MB  primary  xfs          boot
 2      1075MB  64.4GB  63.3GB  primary               lvm

Leave a Comment

Required fields are marked *