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.

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.

  • Thanks johan for the answer. I will start reading about UEFI. – Rajnish Kumar Soni Feb 9 '18 at 11:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.