Trouble migrating from IDE to SCSI drive in grub.

Jeff Vian jvian10 at charter.net
Mon Jan 16 05:59:10 UTC 2006


On Sun, 2006-01-15 at 22:45 -0500, Walter Francis wrote:
> I've migrated a lot of ide to ide in the past, but perhaps with lilo, I forget. 
> Anyway, I've copied all the files, set up fstab, etc, all that should be fine.
> 
> However I'm having trouble getting grub to boot off the new drive.  It is bootable as
> verified by fdisk, I've tried grub-install --recheck /dev/sda, which shows the sda as
> hd3, so I edited the /boot/grub/grub.conf on the new scsi drive to refer to hd3, etc..
>  and then did grub-install /dev/sda.  Also tried numerous other things.
> 
> Bios screen goes where it would say "loading grub stage 1.5" or such, but never does.
> 
> I've also tried doing it directly from the grub commandline, device (hd3) /dev/sda,
> root (hd3,0), setup (hd3), but that didn't help either.
> 
> What's odd is that if I let grub start off of the IDE drive, and I edit my default
> kernel to root=/dev/sda1 and root (hd2,0) it boots the SCSI properly.
> 
This tells me that your /boot/grub/device.map identifies sda as hd2, not
hd3.  This is where the devices are mapped to hdX names, and where
grub-install reads from for the installation.



> The trained eye just noticed I said hd2; not hd3.  If I do the commandline after
> booting grub off the ide drive and do root (hd3,0) it fails, but (hd2,0) works.  So
> the hd# is different.  So I've also tried all the above with "hd2" as well, no luck.
> 
> I have to be missing something simple, but I've exhausted about all I can think
> of/find on google.
> 
> The system IS booted just fine right now after manually editing the IDE drive's grub
> lines to boot /dev/sda1 / (hd2,0) but I'd like to replace the IDE drive entirely as it
> is very old.
> 
> Basically either grub isn't installing, or the bios isn't loading from it properly,
> which would suck..
> 
> Here's some various info:
> 
> Mobo sees the SCSI drive as a boot device, I can set it as the default boot in the
> BIOS config, or in the F11 "select boot device" menu.  It seems to read from it, just
> stops after it does the "verify dmi" stuff, which on the IDE drive immediately shows
> grub info after.
> 
> System has hda and hdb on mobo IDE.  hde and hdg (dvdrw) are on Promise IDE controller
> (previous motherboard would not handle hde 200G drive).  sda is on an Adaptec 160
> card, no other scsi devices.
> 
> # cat /boot/grub/device.map
> (fd0)   /dev/fd0
> (hd0)   /dev/hda
> (hd1)   /dev/hdb
> (hd2)   /dev/sda
> 
> (edited...  originally was hd2 /dev/hde and hd3 /dev/sda, I've tried both ways)
> 
> # cat /boot/grub/grub.conf
> default=0
> timeout=10
> splashimage=(hd2,0)/grub/splash.xpm.gz
> title Fedora Core 2.6.14
>         kernel /vmlinuz-2.6.14 ro root=/dev/sda2
>         root (hd2,0)
> ....etc
> 
> Kernel above is a custom one, scsi is compiled in, etc,.. it boots if I manually
> select it, so it's not a kernel thing.
> 
> Any help would be greatly appreciated.  I suspect once I remove the current hda drive
> things might change around again, but then I'll at least know how to fix it
> presumably.
> 
> Thanks!
> 
> -- 
> Walter Francis
> http://khayts.us
> http://theblackmoor.net
> http://unlimitedphoto.com                Powered by Fedora Core 3
> 
> 




More information about the fedora-list mailing list