On Lu, 14 feb 22, 10:41:52, Chuck Zmudzinski wrote: > > That's a good clarification that the active partition is a Microsoft thing > implemented by the bootcode Microsoft installs in the MBR of the device > chosen to boot from. Now for an unanswered question: What > does bootcode installed by Debian Linux in the MBR do? Typically that would be the first stage of GRUB (other boot loaders exist). In very broad terms the first stage will then load the rest of GRUB from a partition and run grub.cfg if one exists. > How does it decide which partition to boot from? I think this is what > the OP is asking. I'm guessing by "boot" here you mean GRUB itself, because once it's fully loaded it can boot OSes from any partition it can find / support. As far as I understand the path to search for the second stage, modules and grub.cfg is defined when installing the first stage in the MBR. By default it should be /boot/grub of the OS used to run grub-install from, but I think the --root-directory parameter can be used to change that. Changes to the path are typically done by reinstalling GRUB to the MBR. Hope this explains, Andrei -- http://wiki.debian.org/FAQsFromDebianUser
Attachment:
signature.asc
Description: PGP signature