Is it possible to boot Linux from a GPT disk on a BIOS system?

5

3

I have an AMI BIOS computer.

Is it possible to boot Linux from a GPT disk on such a BIOS system?

Edit 1:

It is a Asus EB1501P with a Seagate ST9250315AS 250GB HDD.

SebMa

Posted 2018-07-07T22:02:48.200

Reputation: 599

2

Theoretically, GPT should work with BIOS, but there are occasional incompatibilities. See https://www.rodsbooks.com/gdisk/bios.html.

– fixer1234 – 2018-07-08T00:23:24.030

@fixer1234 Thanks. Can you please convert your response to an answer ? – SebMa – 2018-07-09T09:29:41.497

@phuclv Thank you, can you please convert your comment to an answer ? – SebMa – 2018-07-12T12:03:35.233

Answers

5

Theoretically the BIOS doesn't care anything about your hard drives1. It simply loads the MBR and transfer control to the boot loader in MBR. Therefore technically it'll be possible to boot a GPT drive in BIOS mode, because the GPT drive still has a protective MBR at the beginning

However, here a problem arises. Because on MBR drives the boot loaders often cheat a bit by storing part of them in the next sectors called "MBR gap", "boot track", or "embedding area" which are often leaved empty by disk partitioning tools. On a GPT disk the sectors right after the MBR are GPT data structures, hence can't be used for that purpose and you must create a small BIOS Boot Partition for Grub to store its data

On a BIOS/GPT configuration, a BIOS boot partition is required. GRUB embeds its core.img into this partition.

Note:

  • Before attempting this method keep in mind that not all systems will be able to support this partitioning scheme. Read more on GUID partition tables.
  • This additional partition is only needed on a GRUB, BIOS/GPT partitioning scheme. Previously, for a GRUB, BIOS/MBR partitioning scheme, GRUB used the Post-MBR gap for the embedding the core.img). GRUB for GPT, however, does not use the Post-GPT gap to conform to GPT specifications that require 1_megabyte/2048_sector disk boundaries.
  • For UEFI systems this extra partition is not required, since no embedding of boot sectors takes place in that case. However, UEFI systems still require an EFI system partition.

Create a mebibyte partition (+1M with fdisk or gdisk) on the disk with no file system and with partition type GUID 21686148-6449-6E6F-744E-656564454649.

  • Select partition type BIOS boot for fdisk, ef02 for gdisk.
  • For parted set/activate the flag bios_grub on the partition.

GUID Partition Table (GPT) specific instructions

For more information you can read


Another way is converting the GPT drive back to MBR if your HDD is smaller than 2TB (or 4TB with a big 2TB partition lasting from just before the 2TB margin). There are multiple tools to that without loss of data like gdisk, MiniTool Partition Wizard, AOMEI Partition Assistant, EaseUS Partition Master... (I'm not affiliated with any of them).

Since your HDD is just 250GB so it'll work fine MBR. But just using GPT seems much safer


1Because there are buggy BIOSes that eagerly unnecessarily check the MBR signature or the active boot flag and refuse to boot on such drives

phuclv

Posted 2018-07-07T22:02:48.200

Reputation: 14 930

4

Theoretically, GPT should work with BIOS. However, there are occasional incompatibilities. These are generally in the nature of bugs or idiosyncrasies of specific hardware, so the information tends to be reports of exceptions rather than what you find in documentation of BIOS and GPT.

All of the possibilities are too broad to cover here, but see, for example, https://www.rodsbooks.com/gdisk/bios.html, which also discusses some potential solutions if you experience problems. The options depend on whether you want to stick with BIOS or switch to EFI/UEFI if your motherboard supports it.

If you add your motherboard, computer, and hard drive models to the question, someone who has tried it on an equivalent system and sees your question may be able to describe their experience.

fixer1234

Posted 2018-07-07T22:02:48.200

Reputation: 24 254

Hi, I added my hardware info. in EDIT 1. – SebMa – 2018-07-09T22:42:26.997

-1

See quick gentoo installation: BIOS/GPT. Here you will find sample commands. I've just verified it, works good.

puchu

Posted 2018-07-07T22:02:48.200

Reputation: 1 202