It did so with the legacy Grub.(hd0,3) in grub means sda4 in linux
With the current Grub2 (hdX,3) means the 3rd partition on the drive.
It should be noted that the drive Linux regards as sda (or nvme0n1) may not always be (hd0) -- I have seen cases in which it was (hd5).
Take for instance the following snip from my grub.cfg:
Code: Select all
regexp --set=hdX '^(.*),' $root
menuentry 'Slackware 15.0 Current' {
set root=($hdX,7)
linux /boot/vmlinuz root=/dev/nvme0n1p7 ro pci=noaer
initrd /boot/initrd.gz
}
Actually this is an MBR/BIOS drive so nvme0n1p7 is the 3rd logical partition.
Edit 28 Mar, 2024: Redacted this post for better understandability.