Member-only story
Convert an MBR disk into a GPT disk in Linux
In various scenarios, you may encounter an instance or Virtual Machine (VM) with a data (secondary) volume or disk formatted using the MBR (Master Boot Record) partition table and a size less than 2 TiB. Over time, you might find the need to extend the disk size beyond 2 TiB. However, a limitation of the MBR partitioning is its inability to support sizes larger than 2 TiB, unlike GPT (GUID Partition Table), which does support such capacities.
In this article, I will guide you through the process of converting the partition table from MBR to GPT and demonstrate how to successfully extend the disk size. Follow the step-by-step instructions below to achieve a seamless transition and efficiently extend your disk’s capacity.
MBR and GPT
Master Boot Record (MBR) disks use the standard BIOS partition table. GUID partition table (GPT) disks use the Unified Extensible Firmware Interface (UEFI). One advantage of GPT disks is that you can have more than four partitions on each disk. GPT is also required for disks larger than 2 terabytes (TB). For more details , check this link.
I — Initial state of the server
First, in my case, I’m using an AWS EC2 Nitro instance (t3), and the OS is RHEL 7. Therefore, the disks attached to the instance are NVMe and…









