Dan Hitt wrote: > On Thu, Jan 21, 2021 at 3:33 AM Brian <a...@cityscape.co.uk> wrote: > > > > > menuentry 'Debian 10' { > > linux /boot/vmlinuz > > initrd /boot/initrd.gz > > } > > > > -- > > Brian. > > > > > Brian, thanks so much for your advice. Thank you also Felix, David, and > Bastien --- i need to study what you have all written. > > However, Brian's final stanza is so simple that i can ask a question about > it immediately. > > And that is: how can grub2 or any other software know what partition > '/boot' refers to? > > So i presume that in this very very short stanza you provide, there will > also have to be a search line like David has (search --no-floppy ......) to > identify just where '/boot' is (???).
https://en.wikipedia.org/wiki/GNU_GRUB#Startup_on_systems_using_BIOS_firmware stage 2: core.img loads /boot/grub/i386-pc/normal.mod from the partition configured by grub-install. If the partition index has changed, GRUB will be unable to find the normal.mod, and presents the user with the GRUB Rescue prompt. So the answer to your question is, it's been configured at install time, not discovered at runtime. -dsr-