1

I was reading Linux boot process and stumbled upon below questions:

  1. When mbr gets write on first sector during installation.?
  2. 446 byte of mbr code will be same for either Linux or windows?
  3. How can the mbr know that where is my grub?

I have gone through google but could not find any satisfactory answer.

1 Answer 1

3
  1. The MBR gets written when Grub is installed, or when any other boot loader is installed
  2. What the MBR contains depends on the boot loader that is installed. If Grub is installed, it can be used to boot both Linux and Windows.
  3. Grub is (partially) installed in the MBR. The code in the MBR knows where to load the rest.

Having said that, I must point out that the MBR is quickly losing significance. It is not used to boot machines with UEFI firmware (unless the legacy compatibility mode is used). Practically all new PCs are shipped with UEFI today. UEFI machines have a different way of booting, and also use a different partitioning scheme, that does not use the partition table in the MBR.

1
  • Thanks johan for the answer. I will start reading about UEFI. Commented Feb 9, 2018 at 11:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .