<font face="courier new,monospace" size="2">I have a server with two disks that I use for booting and rooting - sda and sdb. I partition them like this:<br><br>|--sda1=/boot-----|--sda2 (type fd)------------------------|<br>
<br></font><font face="courier new,monospace" size="2">|--sdb1=/auxboot--|--sdb2 (type fd)------------------------|<br><br>sdb1 and sdb2 are made into md0 in kernel RAID 1 and md0 is mounted as /. sda1 and sdb1 have the bootable flag set. /auxboot holds the same files as /boot.<br>
<br>I want to have things such that if sda is dead, grub can be told to boot entirely using just sdb.<br><br>When I install grub, I envision these commands:<br></font><pre><font size="2">grub> <span class="code-input">root (hd0,0)</span> <span class="code-comment"></span><br>
grub> <span class="code-input">setup (hd0)</span> <span class="code-comment"></span><br>grub> <span class="code-input">root (hd1,0)</span> <span class="code-comment"></span><br>grub> <span class="code-input">setup (hd1)</span> <br>
<br></font><font size="2">Does that look like it will do what I want, acknowledging that the settings in grub.conf in /boot<br>would come up and therefore would have to be changed by hand in the grub start menu before actually <br>
booting?<br><br>If so, I expect I could do away with the human intervention by putting sda and sdb in the BIOS' <br>boot list in that order, changing the grub.conf in /auxboot to use sdb2 as /, and then running the <br>
grub commands above.<br><br>What do you think?<br></font><br>- Jeff<br><br></pre><br>