Le 08/11/2022 à 12:00, Narcis Garcia a écrit :
My mistake was to do "grub-install /dev/sda" when I need to boot from
/dev/sdb
Now I've done "grub-install /dev/sdb" but I don't want GRUB messages
appear on /dev/sda when BIOS boot goes there. It's confusing.
I want to know how to revert actions done by grub-install on first
disk sectors, without losing partitions.
AFAIK, grub-install does not back up copy the original contents of
sectors the boot image and core image are written to. So the best you
can do is overwrite GRUB's boot image in the MBR with another boot
program, e.g. with install-mbr from package "mbr".