How To Convert A Disk From MBR To GPT On Linux?
 

How To Convert A Disk From MBR To GPT On Linux?

 

The firmware interface is a way by which firmware interacts with the operating system. The BIOS is the usual firmware interface while UEFI is the newer one that has more features.

MBR uses the standard BIOS partition table while GPT uses Unified Extensible Firmware Interface (UEFI). The GPT has various advantages over MBR disk, for example, you can create more than four primary partitions on a GPT disk. The GPT is required if the size of a disk is greater than 2 TB.

So let’s see how to convert an MBR disk to GPT on the Linux.

Why convert MBR to GPT

GPT takes advantage of UEFI to support storage devices larger than 2 TB. It lets you set up as many partitions as you need for example – Windows support 128 partitions on a GPT disk.

To boot your computer from UEFI mode, you need to use the drive formatted as GPT partition structure. You can read the subsequent part of this article if you want to convert an MBR disk to GPT.

Converting a disk from MBR to GPT

For converting an MBR disk to GPT we will use a GPT aware program for example gptfdisk or gdisk. The gdisk tool is a text-based menu-driven program for the creation and manipulation of partition tables.

First, you need to install the gdisk if it is not in your system. You can install it by using the following command –

sudo apt install gdisk -y

After installing gdisk follow the given steps.

Note: Before converting a disk from MBR to GPT backup any data on it.

Step 1: List and identify the disk

Use the following command to list the disk available in your system –

sudo fdisk -l

Scroll and identify the disk that is to be converted from MBR to GPT in the output of this command.

Step 2: Use the gdisk tool

Run the following command in your terminal –

sudo gdisk /dev/sdb1

or use the –

sudo gdisk

This will ask you to enter the disk name, enter the name of the disk and then press the return key.

Now this command will scan and display the partition table present on this partition –

Step 3: Entering command to write gpt partition table

Now enter the w and then press the return key. This will write the gpt partition table on the given disk. If asked press y to confirm your choice.

Step 4: Verify the conversion

The disk is now converted from the MBR to GPT. You could verify this by using the following command –

sudo gdisk /dev/sda1

Conclusion

By following this you are now able to convert an MBR disk into GPT. Now if you have anything to say on this topic then you can write to us in the comments below.

Previous Troubleshooting Steam network connection error?
Next How To Convert A Disk From GPT To MBR On Linux?
 

About author

You might also like

Linux Topics 0 Comments

How To Install GParted On CentOS 8?

Gparted (also known as GNOME partition editor) is a free partitioning tool. This is a GUI application that uses GNU parted in the backend. Gparted is used to create, delete,

Linux Topics 0 Comments

How To Check Default Gateway Or Router IP Address In Linux?

A large network like the internet can have multiple smaller interconnected networks. A gateway is a network node or point which serves as the access point to another network. All

Linux Topics 0 Comments

How To Install PuTTY In Linux And Use It As An SSH Client?

This post was last updated on August 1st, 2020 at 10:12 pmEarlier I published how to connect to a Linux server using SSH using the command line. This article describes

0 Comments

No Comments Yet!

You can be first to comment this post!

Leave a Reply