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.

link|improve this question

74% accept rate
feedback

2 Answers

up vote 2 down vote accepted

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.

link|improve this answer
ok. but how to make it happen every time that I install new kernel? or will that not be necessary? – depesz Oct 28 '11 at 9:19
Sorry for the very late reply; I'm not used to not getting e-mail about it... Anyway, you don't need to do that for every new kernel. The bootloader dynamically looks up the kernel. – Halfgaar Mar 10 at 13:53
feedback

The order in which devices are initialised at boot time can be random, causing problems if your /etc/fstab is using disk identifiers (sda, sdb etc).

Check this two links how to circumwent:

http://debian-user.blogspot.com/2007/05/uuid-instead-of-devsda1.html

http://debian-resources.org/node/9/

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.