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 1Comments

How to Fix Windows And Linux Showing Different Time In A Dual Boot System

This post was last updated on August 3rd, 2020 at 02:34 pmThere are many users who use a dual boot computer. Dual-booting Linux with Windows operating system has various advantages

How To 0 Comments

How To Remove/Uninstall Software Packages From Debian, Ubuntu, Linux Mint?

This post was last updated on August 1st, 2020 at 12:21 pmDifferent Linux distribution comes with different tools to manage software packages on it. Debian and its derivative use the

Linux Topics 0 Comments

How To Check System Hardware Information In Ubuntu 20.04 LTS?

This post was last updated on August 1st, 2020 at 12:20 pmA computer system is consists of different types of hardware such as processor, RAM, hard disk, network cards, etc.

0 Comments

No Comments Yet!

You can be first to comment this post!

Leave a Reply