Can't boot from second harddrive

I have two hard drives and I installled debian 12 onthe Nvme01n
on boot I press esc and I get the list of devices
the nvme is on number 2
I click two and initially it said Booting from Hardisk Grub_
but then I issued this comand

grub-install /dev/nvme01n
grub-install --recheck /dev/nvme01n
update-grub

and now when selecting the nvme in the bios menu I am booting into my primary device
any advice?
Thank you

1 Like

The command should probably be:

grub-install /dev/nvme0n1

nvme0 is the first NVMe drive, and n1 is the first namespace of it.

2 Likes

thank you
i’ll try it later

1 Like