On Sat, 14 Apr 2012 06:52:20 -0500
Dale <rdalek1...@gmail.com> wrote:

> Well, I installed grub to the second drives MBR.  I even changed the
> BIOS to see that drive as the main or first drive.  It still boots the
> old drive.  I looked in dmesg and saw where it is supposed to point to
> the tmp drive and it still boots the old drive even tho it is told
> not to.
> 
> Let's see, boot a CD, just do a reinstall from scratch and call it a
> day.  This is ridiculous when you can't tell a boot loader to boot the
> second drive and it actually do it.  Heaven forbid if I had two Linux
> OSs on here.
> 
> :-)  :-)
> 

It sounds like GRUB made the MBR on /dev/sdb to use /dev/sda1 as its
root, so maybe something like

# grub --no-floppy
grub> find /boot/grub/stage1
(hd0,0)
(hd1,0)

Then making GRUB install on /dev/sda pointing to /dev/sda1

grub> device (hd0) /dev/sda
grub> root (hd0,0)
grub> setup (hd0)


and now install on /dev/sdb pointing to /dev/sdb1

grub> device (hd0) /dev/sdb
grub> root (hd0,0)
grub> setup (hd0)

Then you can quit GRUB by issuing

grub> quit

The point being that once you put in the line "device (hd0) /dev/sdb",
GRUB will *think* that (hd0) refers to the disk /dev/sdb, so the next
command "root (hd0,0)" just means the first partition on this disk
will serve as /boot, rather than (hd1,0) which points to 1st partition
on the *other* disk, which is possibly where GRUB got confused.

Kerwin.

Attachment: signature.asc
Description: PGP signature

Reply via email to