Installation and booting scenarios for combinations of boot sector (GPT or MBR), firmware (BIOS or UEFI)?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















I think all the confusions in this post come from coexistence of old and new technologies and abuse of terminology such as mentioned in https://en.wikipedia.org/wiki/System_partition_and_boot_partition. I am not sure if creators of computer technologies or terms already try to avoid making things that are confusing and make things clearly and coherently documented. I can't figure them out on my own.



https://en.wikipedia.org/wiki/BIOS_boot_partition seems to mention different scenarios for different combinations of boot sector (GPT or MBR), firmware (BIOS or UEFI), bootloader (GRUB or ...?). I feel lost in reading it:




A BIOS boot partition is needed on GPT-partitioned storage devices to
hold the second stages of GRUB. On traditional MBR-partitioned
devices, the disk sectors immediately following the first are usually
unused, as the partitioning scheme does not designate them for any
special purpose and partitioning tools avoid them for alignment
purposes. On GPT-based devices, the sectors hold the actual partition
table, necessitating the use of an extra partition. On MBR-partitioned
disks, boot loaders are usually implemented so the portion of their
code stored within the MBR, which cannot hold more than 512 bytes,
operates as a first stage that serves primarily to load a more
sophisticated second stage, which is, for example, capable of reading
and loading an operating system kernel from a file system.




There is also an article for EFI partition https://en.wikipedia.org/wiki/EFI_system_partition. Since UEFI replaces BIOS, and BIOS is stored in ROM not in any partition, I thought UEFI is stored in ROM too, but fell into confusion when seeing "EFI partition". Is "EFI partition" a partition dedicated to store UEFI, or some bootloader program?



I also found https://askubuntu.com/a/579259/1471 which seems to explain better, but am still lost in the wording "booting Linux in legacy mode" and "booting another legacy operating system" and more.



Can you try to use plain language to describe what scenarios there are?



What are being deprecated and what are being adopted more and more and therefore worth my time to know?



Here is what I heard



  1. Some OS books, such as Modern Operating System, say that part of a boot loader is stored in the MBR sector of a boot disk and and the rest of it is stored in the boot sector of a boot partition. There doesn't seem to be a partition dedicate to firmware or bootloader. I understand that a boot partition is where OS is installed, not a partition dedecated to store (part of) a bootloader. The MBR sector of a boot disk is also not a partition dedicated to store (part of) a bootloader.



  2. I have an old laptop, with GPT boot disk and a BIOS GRUB partition. I don't know if that partition is dedicate to store the full program of GRUB, or just part of GRUB, and the rest of GRUB is stored in the boot sector of the partition where the OS is installed, or ...?



    $ sudo parted -l
    [sudo] password for t:
    Model: ATA ST1000LM014-1EJ1 (scsi)
    Disk /dev/sda: 1000GB
    Sector size (logical/physical): 512B/4096B
    Partition Table: gpt
    Disk Flags:

    Number Start End Size File system Name Flags
    1 1049kB 2097kB 1049kB bios_grub
    2 2097kB 16.0GB 16.0GB linux-swap(v1)
    4 116GB 716GB 600GB ext4
    3 716GB 1000GB 284GB ext4



  3. I found an old but newer laptop, with GPT boot disk and a UEFI
    partition. I have similar questions as in 2, and I don't know if the UEFI partition stores UEFI or some bootloader (partial or full).



    $ sudo parted -l
    [sudo] password for t:
    Model: ATA TOSHIBA MQ01ABF0 (scsi)
    Disk /dev/sda: 500GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt
    Disk Flags:

    Number Start End Size File system Name Flags
    1 1049kB 538MB 537MB fat32 EFI System Partition boot, esp
    2 538MB 500GB 500GB ext4


    Thanks.











share|improve this question



















  • 1





    I've had a more comprehensive treatment of the subject than that Wikipedia article since 2006. jdebp.eu./FGA/boot-and-system-volumes.html

    – JdeBP
    Feb 22 at 0:40











  • Thanks. It partially touches my questions here. I'd appreciate if you could also consider unix.stackexchange.com/questions/502189/….

    – Tim
    Feb 22 at 0:51
















0















I think all the confusions in this post come from coexistence of old and new technologies and abuse of terminology such as mentioned in https://en.wikipedia.org/wiki/System_partition_and_boot_partition. I am not sure if creators of computer technologies or terms already try to avoid making things that are confusing and make things clearly and coherently documented. I can't figure them out on my own.



https://en.wikipedia.org/wiki/BIOS_boot_partition seems to mention different scenarios for different combinations of boot sector (GPT or MBR), firmware (BIOS or UEFI), bootloader (GRUB or ...?). I feel lost in reading it:




A BIOS boot partition is needed on GPT-partitioned storage devices to
hold the second stages of GRUB. On traditional MBR-partitioned
devices, the disk sectors immediately following the first are usually
unused, as the partitioning scheme does not designate them for any
special purpose and partitioning tools avoid them for alignment
purposes. On GPT-based devices, the sectors hold the actual partition
table, necessitating the use of an extra partition. On MBR-partitioned
disks, boot loaders are usually implemented so the portion of their
code stored within the MBR, which cannot hold more than 512 bytes,
operates as a first stage that serves primarily to load a more
sophisticated second stage, which is, for example, capable of reading
and loading an operating system kernel from a file system.




There is also an article for EFI partition https://en.wikipedia.org/wiki/EFI_system_partition. Since UEFI replaces BIOS, and BIOS is stored in ROM not in any partition, I thought UEFI is stored in ROM too, but fell into confusion when seeing "EFI partition". Is "EFI partition" a partition dedicated to store UEFI, or some bootloader program?



I also found https://askubuntu.com/a/579259/1471 which seems to explain better, but am still lost in the wording "booting Linux in legacy mode" and "booting another legacy operating system" and more.



Can you try to use plain language to describe what scenarios there are?



What are being deprecated and what are being adopted more and more and therefore worth my time to know?



Here is what I heard



  1. Some OS books, such as Modern Operating System, say that part of a boot loader is stored in the MBR sector of a boot disk and and the rest of it is stored in the boot sector of a boot partition. There doesn't seem to be a partition dedicate to firmware or bootloader. I understand that a boot partition is where OS is installed, not a partition dedecated to store (part of) a bootloader. The MBR sector of a boot disk is also not a partition dedicated to store (part of) a bootloader.



  2. I have an old laptop, with GPT boot disk and a BIOS GRUB partition. I don't know if that partition is dedicate to store the full program of GRUB, or just part of GRUB, and the rest of GRUB is stored in the boot sector of the partition where the OS is installed, or ...?



    $ sudo parted -l
    [sudo] password for t:
    Model: ATA ST1000LM014-1EJ1 (scsi)
    Disk /dev/sda: 1000GB
    Sector size (logical/physical): 512B/4096B
    Partition Table: gpt
    Disk Flags:

    Number Start End Size File system Name Flags
    1 1049kB 2097kB 1049kB bios_grub
    2 2097kB 16.0GB 16.0GB linux-swap(v1)
    4 116GB 716GB 600GB ext4
    3 716GB 1000GB 284GB ext4



  3. I found an old but newer laptop, with GPT boot disk and a UEFI
    partition. I have similar questions as in 2, and I don't know if the UEFI partition stores UEFI or some bootloader (partial or full).



    $ sudo parted -l
    [sudo] password for t:
    Model: ATA TOSHIBA MQ01ABF0 (scsi)
    Disk /dev/sda: 500GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt
    Disk Flags:

    Number Start End Size File system Name Flags
    1 1049kB 538MB 537MB fat32 EFI System Partition boot, esp
    2 538MB 500GB 500GB ext4


    Thanks.











share|improve this question



















  • 1





    I've had a more comprehensive treatment of the subject than that Wikipedia article since 2006. jdebp.eu./FGA/boot-and-system-volumes.html

    – JdeBP
    Feb 22 at 0:40











  • Thanks. It partially touches my questions here. I'd appreciate if you could also consider unix.stackexchange.com/questions/502189/….

    – Tim
    Feb 22 at 0:51














0












0








0


0






I think all the confusions in this post come from coexistence of old and new technologies and abuse of terminology such as mentioned in https://en.wikipedia.org/wiki/System_partition_and_boot_partition. I am not sure if creators of computer technologies or terms already try to avoid making things that are confusing and make things clearly and coherently documented. I can't figure them out on my own.



https://en.wikipedia.org/wiki/BIOS_boot_partition seems to mention different scenarios for different combinations of boot sector (GPT or MBR), firmware (BIOS or UEFI), bootloader (GRUB or ...?). I feel lost in reading it:




A BIOS boot partition is needed on GPT-partitioned storage devices to
hold the second stages of GRUB. On traditional MBR-partitioned
devices, the disk sectors immediately following the first are usually
unused, as the partitioning scheme does not designate them for any
special purpose and partitioning tools avoid them for alignment
purposes. On GPT-based devices, the sectors hold the actual partition
table, necessitating the use of an extra partition. On MBR-partitioned
disks, boot loaders are usually implemented so the portion of their
code stored within the MBR, which cannot hold more than 512 bytes,
operates as a first stage that serves primarily to load a more
sophisticated second stage, which is, for example, capable of reading
and loading an operating system kernel from a file system.




There is also an article for EFI partition https://en.wikipedia.org/wiki/EFI_system_partition. Since UEFI replaces BIOS, and BIOS is stored in ROM not in any partition, I thought UEFI is stored in ROM too, but fell into confusion when seeing "EFI partition". Is "EFI partition" a partition dedicated to store UEFI, or some bootloader program?



I also found https://askubuntu.com/a/579259/1471 which seems to explain better, but am still lost in the wording "booting Linux in legacy mode" and "booting another legacy operating system" and more.



Can you try to use plain language to describe what scenarios there are?



What are being deprecated and what are being adopted more and more and therefore worth my time to know?



Here is what I heard



  1. Some OS books, such as Modern Operating System, say that part of a boot loader is stored in the MBR sector of a boot disk and and the rest of it is stored in the boot sector of a boot partition. There doesn't seem to be a partition dedicate to firmware or bootloader. I understand that a boot partition is where OS is installed, not a partition dedecated to store (part of) a bootloader. The MBR sector of a boot disk is also not a partition dedicated to store (part of) a bootloader.



  2. I have an old laptop, with GPT boot disk and a BIOS GRUB partition. I don't know if that partition is dedicate to store the full program of GRUB, or just part of GRUB, and the rest of GRUB is stored in the boot sector of the partition where the OS is installed, or ...?



    $ sudo parted -l
    [sudo] password for t:
    Model: ATA ST1000LM014-1EJ1 (scsi)
    Disk /dev/sda: 1000GB
    Sector size (logical/physical): 512B/4096B
    Partition Table: gpt
    Disk Flags:

    Number Start End Size File system Name Flags
    1 1049kB 2097kB 1049kB bios_grub
    2 2097kB 16.0GB 16.0GB linux-swap(v1)
    4 116GB 716GB 600GB ext4
    3 716GB 1000GB 284GB ext4



  3. I found an old but newer laptop, with GPT boot disk and a UEFI
    partition. I have similar questions as in 2, and I don't know if the UEFI partition stores UEFI or some bootloader (partial or full).



    $ sudo parted -l
    [sudo] password for t:
    Model: ATA TOSHIBA MQ01ABF0 (scsi)
    Disk /dev/sda: 500GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt
    Disk Flags:

    Number Start End Size File system Name Flags
    1 1049kB 538MB 537MB fat32 EFI System Partition boot, esp
    2 538MB 500GB 500GB ext4


    Thanks.











share|improve this question
















I think all the confusions in this post come from coexistence of old and new technologies and abuse of terminology such as mentioned in https://en.wikipedia.org/wiki/System_partition_and_boot_partition. I am not sure if creators of computer technologies or terms already try to avoid making things that are confusing and make things clearly and coherently documented. I can't figure them out on my own.



https://en.wikipedia.org/wiki/BIOS_boot_partition seems to mention different scenarios for different combinations of boot sector (GPT or MBR), firmware (BIOS or UEFI), bootloader (GRUB or ...?). I feel lost in reading it:




A BIOS boot partition is needed on GPT-partitioned storage devices to
hold the second stages of GRUB. On traditional MBR-partitioned
devices, the disk sectors immediately following the first are usually
unused, as the partitioning scheme does not designate them for any
special purpose and partitioning tools avoid them for alignment
purposes. On GPT-based devices, the sectors hold the actual partition
table, necessitating the use of an extra partition. On MBR-partitioned
disks, boot loaders are usually implemented so the portion of their
code stored within the MBR, which cannot hold more than 512 bytes,
operates as a first stage that serves primarily to load a more
sophisticated second stage, which is, for example, capable of reading
and loading an operating system kernel from a file system.




There is also an article for EFI partition https://en.wikipedia.org/wiki/EFI_system_partition. Since UEFI replaces BIOS, and BIOS is stored in ROM not in any partition, I thought UEFI is stored in ROM too, but fell into confusion when seeing "EFI partition". Is "EFI partition" a partition dedicated to store UEFI, or some bootloader program?



I also found https://askubuntu.com/a/579259/1471 which seems to explain better, but am still lost in the wording "booting Linux in legacy mode" and "booting another legacy operating system" and more.



Can you try to use plain language to describe what scenarios there are?



What are being deprecated and what are being adopted more and more and therefore worth my time to know?



Here is what I heard



  1. Some OS books, such as Modern Operating System, say that part of a boot loader is stored in the MBR sector of a boot disk and and the rest of it is stored in the boot sector of a boot partition. There doesn't seem to be a partition dedicate to firmware or bootloader. I understand that a boot partition is where OS is installed, not a partition dedecated to store (part of) a bootloader. The MBR sector of a boot disk is also not a partition dedicated to store (part of) a bootloader.



  2. I have an old laptop, with GPT boot disk and a BIOS GRUB partition. I don't know if that partition is dedicate to store the full program of GRUB, or just part of GRUB, and the rest of GRUB is stored in the boot sector of the partition where the OS is installed, or ...?



    $ sudo parted -l
    [sudo] password for t:
    Model: ATA ST1000LM014-1EJ1 (scsi)
    Disk /dev/sda: 1000GB
    Sector size (logical/physical): 512B/4096B
    Partition Table: gpt
    Disk Flags:

    Number Start End Size File system Name Flags
    1 1049kB 2097kB 1049kB bios_grub
    2 2097kB 16.0GB 16.0GB linux-swap(v1)
    4 116GB 716GB 600GB ext4
    3 716GB 1000GB 284GB ext4



  3. I found an old but newer laptop, with GPT boot disk and a UEFI
    partition. I have similar questions as in 2, and I don't know if the UEFI partition stores UEFI or some bootloader (partial or full).



    $ sudo parted -l
    [sudo] password for t:
    Model: ATA TOSHIBA MQ01ABF0 (scsi)
    Disk /dev/sda: 500GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt
    Disk Flags:

    Number Start End Size File system Name Flags
    1 1049kB 538MB 537MB fat32 EFI System Partition boot, esp
    2 538MB 500GB 500GB ext4


    Thanks.








boot system-installation uefi gpt mbr






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 21 at 18:58







Tim

















asked Feb 21 at 18:13









TimTim

27.8k78269486




27.8k78269486







  • 1





    I've had a more comprehensive treatment of the subject than that Wikipedia article since 2006. jdebp.eu./FGA/boot-and-system-volumes.html

    – JdeBP
    Feb 22 at 0:40











  • Thanks. It partially touches my questions here. I'd appreciate if you could also consider unix.stackexchange.com/questions/502189/….

    – Tim
    Feb 22 at 0:51













  • 1





    I've had a more comprehensive treatment of the subject than that Wikipedia article since 2006. jdebp.eu./FGA/boot-and-system-volumes.html

    – JdeBP
    Feb 22 at 0:40











  • Thanks. It partially touches my questions here. I'd appreciate if you could also consider unix.stackexchange.com/questions/502189/….

    – Tim
    Feb 22 at 0:51








1




1





I've had a more comprehensive treatment of the subject than that Wikipedia article since 2006. jdebp.eu./FGA/boot-and-system-volumes.html

– JdeBP
Feb 22 at 0:40





I've had a more comprehensive treatment of the subject than that Wikipedia article since 2006. jdebp.eu./FGA/boot-and-system-volumes.html

– JdeBP
Feb 22 at 0:40













Thanks. It partially touches my questions here. I'd appreciate if you could also consider unix.stackexchange.com/questions/502189/….

– Tim
Feb 22 at 0:51






Thanks. It partially touches my questions here. I'd appreciate if you could also consider unix.stackexchange.com/questions/502189/….

– Tim
Feb 22 at 0:51











1 Answer
1






active

oldest

votes


















2














I think it helps if you try to walk across the entire chain starting where you as a computer just finished Power On Self Test and have been issued to start an operating system from a particular disk. With MBR you face a lot of historic limitations and have to go very tiny steps and can only do very simple things. With UEFI you have platform drivers that can help you abstract hardware and tasks.



MBR chain:



  • Boot loader code (vector) in the partition table.

  • Master Boot Record with boot loader code between the end of the partition table and the first partition.

  • Volume Boot Record on the OS or dedicated boot partition.

  • Full boot loader with menu such as Grub on the OS or dedicated boot partition (to hold the OS kernel with drivers to read filesystems not supported by the boot loader).

MBR with GPT chain:



  • Boot loader code on the BIOS boot partition.

  • Volume Boot Record on the OS or dedicated boot partition.

  • Full boot loader with menu such as Grub on the OS or dedicated boot partition (to hold the OS kernel with drivers to read filesystems not supported by the boot loader).

Since you are still booting the old way, you have to rely on old mechanisms like finding the next boot stage of the OS on the OS partition in the special first sector of the partition.



One of the unusual things I saw was how chrx developers boot 3rd party Linux on Chromebooks which have a special ChromeOS-GPT layout, as far as I remember I haven't seen a BIOS boot partition. Grub complains that it is unsafe to boot with block lists, but many users boot their Chromebooks with custom Linux this way.



UEFI chain:



  • Boot loader in default or OS specific directory (e.g. /boot/efi/EFI/ubuntu) on the EFI System Partition on the OS partition.

  • Full boot loader with menu such as Grub on the OS or dedicated boot partition (to hold the OS kernel with drivers to read filesystems not supported by the boot loader).

I have rsynced root partitions and only had to place the Grub image on the EFI partition in the right place (and the ESP partition flagged as such). This usually does not work with the more complex MBR boot chain where you have to ensure that not just files are in the right place but data patterns in the partition table, behind the partition table, that your OS partition isn't outside the range where it can be addressed from the boot loader code at this stage and that it is one of up to 4 primary partitions, not extended partitions (Grub can manage to boot in some of these scenarios too though).



I hope I did not cause more confusion. Sorry I can't put it any simpler at the moment, nor do I think that I have grasped the entire topic myself and I'm not involved with writing any code in this regard.






share|improve this answer

























  • Thanks. If I am correct, you listed three scenarios. (1) Does "Full boot loader with menu" in the last two scenarios mean the same as the first scenario's "Full boot loader with menu such as Grub on the OS or dedicated boot partition"? (2) In the first scenario, are "Volume Boot Record" and "Full boot loader with menu such as Grub" either both on the OS partition, or "Volume Boot Record" on the OS partition and "Full boot loader with menu such as Grub" on a dedicated boot partition?

    – Tim
    Feb 21 at 20:33












  • I made an edit to my answer. Thanks for pointing out the issues.

    – LiveWireBT
    Feb 24 at 0:19










Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f502145%2finstallation-and-booting-scenarios-for-combinations-of-boot-sector-gpt-or-mbr%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














I think it helps if you try to walk across the entire chain starting where you as a computer just finished Power On Self Test and have been issued to start an operating system from a particular disk. With MBR you face a lot of historic limitations and have to go very tiny steps and can only do very simple things. With UEFI you have platform drivers that can help you abstract hardware and tasks.



MBR chain:



  • Boot loader code (vector) in the partition table.

  • Master Boot Record with boot loader code between the end of the partition table and the first partition.

  • Volume Boot Record on the OS or dedicated boot partition.

  • Full boot loader with menu such as Grub on the OS or dedicated boot partition (to hold the OS kernel with drivers to read filesystems not supported by the boot loader).

MBR with GPT chain:



  • Boot loader code on the BIOS boot partition.

  • Volume Boot Record on the OS or dedicated boot partition.

  • Full boot loader with menu such as Grub on the OS or dedicated boot partition (to hold the OS kernel with drivers to read filesystems not supported by the boot loader).

Since you are still booting the old way, you have to rely on old mechanisms like finding the next boot stage of the OS on the OS partition in the special first sector of the partition.



One of the unusual things I saw was how chrx developers boot 3rd party Linux on Chromebooks which have a special ChromeOS-GPT layout, as far as I remember I haven't seen a BIOS boot partition. Grub complains that it is unsafe to boot with block lists, but many users boot their Chromebooks with custom Linux this way.



UEFI chain:



  • Boot loader in default or OS specific directory (e.g. /boot/efi/EFI/ubuntu) on the EFI System Partition on the OS partition.

  • Full boot loader with menu such as Grub on the OS or dedicated boot partition (to hold the OS kernel with drivers to read filesystems not supported by the boot loader).

I have rsynced root partitions and only had to place the Grub image on the EFI partition in the right place (and the ESP partition flagged as such). This usually does not work with the more complex MBR boot chain where you have to ensure that not just files are in the right place but data patterns in the partition table, behind the partition table, that your OS partition isn't outside the range where it can be addressed from the boot loader code at this stage and that it is one of up to 4 primary partitions, not extended partitions (Grub can manage to boot in some of these scenarios too though).



I hope I did not cause more confusion. Sorry I can't put it any simpler at the moment, nor do I think that I have grasped the entire topic myself and I'm not involved with writing any code in this regard.






share|improve this answer

























  • Thanks. If I am correct, you listed three scenarios. (1) Does "Full boot loader with menu" in the last two scenarios mean the same as the first scenario's "Full boot loader with menu such as Grub on the OS or dedicated boot partition"? (2) In the first scenario, are "Volume Boot Record" and "Full boot loader with menu such as Grub" either both on the OS partition, or "Volume Boot Record" on the OS partition and "Full boot loader with menu such as Grub" on a dedicated boot partition?

    – Tim
    Feb 21 at 20:33












  • I made an edit to my answer. Thanks for pointing out the issues.

    – LiveWireBT
    Feb 24 at 0:19















2














I think it helps if you try to walk across the entire chain starting where you as a computer just finished Power On Self Test and have been issued to start an operating system from a particular disk. With MBR you face a lot of historic limitations and have to go very tiny steps and can only do very simple things. With UEFI you have platform drivers that can help you abstract hardware and tasks.



MBR chain:



  • Boot loader code (vector) in the partition table.

  • Master Boot Record with boot loader code between the end of the partition table and the first partition.

  • Volume Boot Record on the OS or dedicated boot partition.

  • Full boot loader with menu such as Grub on the OS or dedicated boot partition (to hold the OS kernel with drivers to read filesystems not supported by the boot loader).

MBR with GPT chain:



  • Boot loader code on the BIOS boot partition.

  • Volume Boot Record on the OS or dedicated boot partition.

  • Full boot loader with menu such as Grub on the OS or dedicated boot partition (to hold the OS kernel with drivers to read filesystems not supported by the boot loader).

Since you are still booting the old way, you have to rely on old mechanisms like finding the next boot stage of the OS on the OS partition in the special first sector of the partition.



One of the unusual things I saw was how chrx developers boot 3rd party Linux on Chromebooks which have a special ChromeOS-GPT layout, as far as I remember I haven't seen a BIOS boot partition. Grub complains that it is unsafe to boot with block lists, but many users boot their Chromebooks with custom Linux this way.



UEFI chain:



  • Boot loader in default or OS specific directory (e.g. /boot/efi/EFI/ubuntu) on the EFI System Partition on the OS partition.

  • Full boot loader with menu such as Grub on the OS or dedicated boot partition (to hold the OS kernel with drivers to read filesystems not supported by the boot loader).

I have rsynced root partitions and only had to place the Grub image on the EFI partition in the right place (and the ESP partition flagged as such). This usually does not work with the more complex MBR boot chain where you have to ensure that not just files are in the right place but data patterns in the partition table, behind the partition table, that your OS partition isn't outside the range where it can be addressed from the boot loader code at this stage and that it is one of up to 4 primary partitions, not extended partitions (Grub can manage to boot in some of these scenarios too though).



I hope I did not cause more confusion. Sorry I can't put it any simpler at the moment, nor do I think that I have grasped the entire topic myself and I'm not involved with writing any code in this regard.






share|improve this answer

























  • Thanks. If I am correct, you listed three scenarios. (1) Does "Full boot loader with menu" in the last two scenarios mean the same as the first scenario's "Full boot loader with menu such as Grub on the OS or dedicated boot partition"? (2) In the first scenario, are "Volume Boot Record" and "Full boot loader with menu such as Grub" either both on the OS partition, or "Volume Boot Record" on the OS partition and "Full boot loader with menu such as Grub" on a dedicated boot partition?

    – Tim
    Feb 21 at 20:33












  • I made an edit to my answer. Thanks for pointing out the issues.

    – LiveWireBT
    Feb 24 at 0:19













2












2








2







I think it helps if you try to walk across the entire chain starting where you as a computer just finished Power On Self Test and have been issued to start an operating system from a particular disk. With MBR you face a lot of historic limitations and have to go very tiny steps and can only do very simple things. With UEFI you have platform drivers that can help you abstract hardware and tasks.



MBR chain:



  • Boot loader code (vector) in the partition table.

  • Master Boot Record with boot loader code between the end of the partition table and the first partition.

  • Volume Boot Record on the OS or dedicated boot partition.

  • Full boot loader with menu such as Grub on the OS or dedicated boot partition (to hold the OS kernel with drivers to read filesystems not supported by the boot loader).

MBR with GPT chain:



  • Boot loader code on the BIOS boot partition.

  • Volume Boot Record on the OS or dedicated boot partition.

  • Full boot loader with menu such as Grub on the OS or dedicated boot partition (to hold the OS kernel with drivers to read filesystems not supported by the boot loader).

Since you are still booting the old way, you have to rely on old mechanisms like finding the next boot stage of the OS on the OS partition in the special first sector of the partition.



One of the unusual things I saw was how chrx developers boot 3rd party Linux on Chromebooks which have a special ChromeOS-GPT layout, as far as I remember I haven't seen a BIOS boot partition. Grub complains that it is unsafe to boot with block lists, but many users boot their Chromebooks with custom Linux this way.



UEFI chain:



  • Boot loader in default or OS specific directory (e.g. /boot/efi/EFI/ubuntu) on the EFI System Partition on the OS partition.

  • Full boot loader with menu such as Grub on the OS or dedicated boot partition (to hold the OS kernel with drivers to read filesystems not supported by the boot loader).

I have rsynced root partitions and only had to place the Grub image on the EFI partition in the right place (and the ESP partition flagged as such). This usually does not work with the more complex MBR boot chain where you have to ensure that not just files are in the right place but data patterns in the partition table, behind the partition table, that your OS partition isn't outside the range where it can be addressed from the boot loader code at this stage and that it is one of up to 4 primary partitions, not extended partitions (Grub can manage to boot in some of these scenarios too though).



I hope I did not cause more confusion. Sorry I can't put it any simpler at the moment, nor do I think that I have grasped the entire topic myself and I'm not involved with writing any code in this regard.






share|improve this answer















I think it helps if you try to walk across the entire chain starting where you as a computer just finished Power On Self Test and have been issued to start an operating system from a particular disk. With MBR you face a lot of historic limitations and have to go very tiny steps and can only do very simple things. With UEFI you have platform drivers that can help you abstract hardware and tasks.



MBR chain:



  • Boot loader code (vector) in the partition table.

  • Master Boot Record with boot loader code between the end of the partition table and the first partition.

  • Volume Boot Record on the OS or dedicated boot partition.

  • Full boot loader with menu such as Grub on the OS or dedicated boot partition (to hold the OS kernel with drivers to read filesystems not supported by the boot loader).

MBR with GPT chain:



  • Boot loader code on the BIOS boot partition.

  • Volume Boot Record on the OS or dedicated boot partition.

  • Full boot loader with menu such as Grub on the OS or dedicated boot partition (to hold the OS kernel with drivers to read filesystems not supported by the boot loader).

Since you are still booting the old way, you have to rely on old mechanisms like finding the next boot stage of the OS on the OS partition in the special first sector of the partition.



One of the unusual things I saw was how chrx developers boot 3rd party Linux on Chromebooks which have a special ChromeOS-GPT layout, as far as I remember I haven't seen a BIOS boot partition. Grub complains that it is unsafe to boot with block lists, but many users boot their Chromebooks with custom Linux this way.



UEFI chain:



  • Boot loader in default or OS specific directory (e.g. /boot/efi/EFI/ubuntu) on the EFI System Partition on the OS partition.

  • Full boot loader with menu such as Grub on the OS or dedicated boot partition (to hold the OS kernel with drivers to read filesystems not supported by the boot loader).

I have rsynced root partitions and only had to place the Grub image on the EFI partition in the right place (and the ESP partition flagged as such). This usually does not work with the more complex MBR boot chain where you have to ensure that not just files are in the right place but data patterns in the partition table, behind the partition table, that your OS partition isn't outside the range where it can be addressed from the boot loader code at this stage and that it is one of up to 4 primary partitions, not extended partitions (Grub can manage to boot in some of these scenarios too though).



I hope I did not cause more confusion. Sorry I can't put it any simpler at the moment, nor do I think that I have grasped the entire topic myself and I'm not involved with writing any code in this regard.







share|improve this answer














share|improve this answer



share|improve this answer








edited Feb 24 at 0:18

























answered Feb 21 at 19:50









LiveWireBTLiveWireBT

4551317




4551317












  • Thanks. If I am correct, you listed three scenarios. (1) Does "Full boot loader with menu" in the last two scenarios mean the same as the first scenario's "Full boot loader with menu such as Grub on the OS or dedicated boot partition"? (2) In the first scenario, are "Volume Boot Record" and "Full boot loader with menu such as Grub" either both on the OS partition, or "Volume Boot Record" on the OS partition and "Full boot loader with menu such as Grub" on a dedicated boot partition?

    – Tim
    Feb 21 at 20:33












  • I made an edit to my answer. Thanks for pointing out the issues.

    – LiveWireBT
    Feb 24 at 0:19

















  • Thanks. If I am correct, you listed three scenarios. (1) Does "Full boot loader with menu" in the last two scenarios mean the same as the first scenario's "Full boot loader with menu such as Grub on the OS or dedicated boot partition"? (2) In the first scenario, are "Volume Boot Record" and "Full boot loader with menu such as Grub" either both on the OS partition, or "Volume Boot Record" on the OS partition and "Full boot loader with menu such as Grub" on a dedicated boot partition?

    – Tim
    Feb 21 at 20:33












  • I made an edit to my answer. Thanks for pointing out the issues.

    – LiveWireBT
    Feb 24 at 0:19
















Thanks. If I am correct, you listed three scenarios. (1) Does "Full boot loader with menu" in the last two scenarios mean the same as the first scenario's "Full boot loader with menu such as Grub on the OS or dedicated boot partition"? (2) In the first scenario, are "Volume Boot Record" and "Full boot loader with menu such as Grub" either both on the OS partition, or "Volume Boot Record" on the OS partition and "Full boot loader with menu such as Grub" on a dedicated boot partition?

– Tim
Feb 21 at 20:33






Thanks. If I am correct, you listed three scenarios. (1) Does "Full boot loader with menu" in the last two scenarios mean the same as the first scenario's "Full boot loader with menu such as Grub on the OS or dedicated boot partition"? (2) In the first scenario, are "Volume Boot Record" and "Full boot loader with menu such as Grub" either both on the OS partition, or "Volume Boot Record" on the OS partition and "Full boot loader with menu such as Grub" on a dedicated boot partition?

– Tim
Feb 21 at 20:33














I made an edit to my answer. Thanks for pointing out the issues.

– LiveWireBT
Feb 24 at 0:19





I made an edit to my answer. Thanks for pointing out the issues.

– LiveWireBT
Feb 24 at 0:19

















draft saved

draft discarded
















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f502145%2finstallation-and-booting-scenarios-for-combinations-of-boot-sector-gpt-or-mbr%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown






Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay