Linux – How to install grub on multiple disks

bootgrubgrub2linux

I have weird situation – order of disks as reported by BIOS, is different than order of disks that Linux sees.

Which makes for problematic run – grub installs to sda, but bios boots from sdd or something like this (this machine has 7 disks, 4 on internal controller, and 3 on external.

Is it possible to make grub install (and later on update) to all disks, and not just /dev/sda? I have no idea which disk is the one that bios wants to boot (all disks are the same, and since I have raid over it, I can't remove them at will), so the only solution I see is to make grub install on all sda-sdg.

This is Debian stable, with Grub2.

Best Answer

I think you can just do

grub-install /dev/sda
grub-install /dev/sdb
grub-install /dev/sdc
grub-install /dev/sdd
grub-install /dev/sde
grub-install /dev/sdf
grub-install /dev/sdg

I can't really foresee what kind of problems you'll be having with grub's HD addressing, though, if your disks are mixed up.