Linux – How to Remove GPT and Default Back to MBR

gdiskgptlinuxmbrparted

I keep receiving this error:

Warning!! Unsupported GPT (GUID Partition Table) detected. Use GNU Parted

I want to go back to the normal MBR. I found some advice here and did:

parted /dev/sda
mklabel msdos
quit

But when I get to the mklabel option it spits out a warning that I will lose all data on /dev/sda. Is there a way to get the normal MBR back without formatting the disk?

Best Answer

That link you posted looks like a very ugly hack type solution.

However, according to the man page, gdisk, which is used to convert MBR -> GPT, also has an option in the "recovery & transformation" menu (press r to get that) to convert GPT -> MBR; the g key will:

Convert GPT into MBR and exit. This option converts as many partitions as possible into MBR form, destroys the GPT data structures, saves the new MBR, and exits. Use this option if you've tried GPT and find that MBR works better for you. Note that this function generates up to four primary MBR partitions or three primary partitions and as many logical partitions as can be generated. Each logical partition requires at least one unallocated block immediately before its first block.

I'd try that first.