<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"><font size="2" color="black" face="Verdana,Arial,Helvetica"><font size="2" color="black" face="Verdana,Arial,Helvetica">Can someone offer me the right grub magic to make this automatically boot? </font></font><br>
<font size="2" color="black" face="Verdana,Arial,Helvetica"><font size="2" color="black" face="Verdana,Arial,Helvetica">I'm looking for the right command for when I boot off sda and have the thumb </font></font><br><font size="2" color="black" face="Verdana,Arial,Helvetica"><font size="2" color="black" face="Verdana,Arial,Helvetica">drive available as sdb, so that I can reboot without the hard drive (and the </font></font><br>
<font size="2" color="black" face="Verdana,Arial,Helvetica"><font size="2" color="black" face="Verdana,Arial,Helvetica">thumb drive will now be sda). The boot partition is sda1/sdb1. </font></font></blockquote><div><br><br>
You should be able to do the following (as root)<br><br>[blah@blah] # grub<br><br> GNU GRUB version 0.97 (640K lower / 3072K upper memory)<br><br> [ Minimal BASH-like line editing is supported. For<br> the first word, TAB lists possible command<br>
completions. Anywhere else TAB lists the possible<br> completions of a device/filename. ]<br><br>// First, tell grub the target root filesystem is on the first partition of the second disk<br>grub> root (hd1,0)<br>
<br> Filesystem type is ext2fs, partition type 0xfd<br><br>// now tell grub to install the bootblock to the second disk<br>grub> setup (hd1)<br><br> Checking if "/boot/grub/stage1" exists... yes<br> Checking if "/boot/grub/stage2" exists... yes<br>
Checking if "/boot/grub/e2fs_stage1_5" exists... yes<br> Running "embed /boot/grub/e2fs_stage1_5 (hd1)"... 15 sectors are embedded.<br>succeeded<br> Running "install /boot/grub/stage1 (hd1) (hd1)1+15 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded<br>
Done.<br><br>grub> quit<br><br>[blah@blah] #<br><br><br><br>If that doesn't work check /boot/grub/device.map (on the target drive) and make sure it has an entry for /dev/sdb<br></div>