GRUB error with 2 hard disks

Solaris, RedHat, FreeBSD and the like
Post Reply
Message
Author
rssb
Junior Member
Junior Member
Posts: 476
Joined: Tue Dec 14, 2004 4:35 pm
Location: Richmond,VA

GRUB error with 2 hard disks

#1 Post by rssb » Mon Oct 16, 2006 4:51 pm

I have 2 hard disks in T42p ( Primary and Ultrabay). I installed Suse 10.1 on the second hard drive. The grub boot loader is set to MBR of the second hard drive (hdc).

I have made a linux.bin from first 1024 bytes of that drive and trying to use the windows xp loader with an entry in boot.ini

This worked earlier a long time back may be a year ago when I had an older bios. With the latest bios there seems to something wrong. When I installed it from the Suse DVD, it marked the drive as hd1, but when i use F12 to select the boot hard disk the bios thinks it is hd0.

Does anyone have a similar setup and are able to boot successfully from windows boot loader.

Thanks

techflavor
Freshman Member
Posts: 119
Joined: Sun Jan 29, 2006 1:55 am
Location: Baton Rouge, LA
Contact:

#2 Post by techflavor » Mon Oct 16, 2006 6:41 pm

Take a look at Hack the Windows NT/200/XP Boot Loader and go toward the bottom to the 'Booting Linux' section.

rssb
Junior Member
Junior Member
Posts: 476
Joined: Tue Dec 14, 2004 4:35 pm
Location: Richmond,VA

#3 Post by rssb » Tue Oct 17, 2006 11:24 am

yeah this works if both on the same hard drive. But the problem here is linux is on the second hard drive.

THe copying of GRUB MBR to primary windows disk and then restoring using win xp rescue mode seems to be the way, but I am afraid it might mess up my windows..

smugiri
Senior Member
Senior Member
Posts: 774
Joined: Tue Nov 23, 2004 4:29 pm
Location: Mississauga, ON
Contact:

#4 Post by smugiri » Wed Oct 18, 2006 3:24 pm

When you booted the SuSE DVD to install, it was the boot device making it hd0 while the HDD became hd1.

You probably have the hardware set up to boot the CD/RW before the HDD right now.After removing the CD/RW hardware (or rebooting from the HDD), the HDD becomes hd0 and the HDD in the ultrabay becomes hd1.

Try changing the default boot order in the BIOS so that the ultrabay device is ALWAYS booted after the regular HDD (rather than selecting the boot device using F12 at boot). You have to do this with the HDD in the ultrabay rather than the CD/RW as the BIOS is able to detect the difference between the devices. This will mark the ultrabay device as hd1 and might fix the problem.
Steve

rssb
Junior Member
Junior Member
Posts: 476
Joined: Tue Dec 14, 2004 4:35 pm
Location: Richmond,VA

#5 Post by rssb » Wed Nov 01, 2006 1:53 pm

Thanks Steve, I will try this out and keep you posted.

bessel
Freshman Member
Posts: 65
Joined: Mon May 15, 2006 12:58 am
Location: Chicago, IL

#6 Post by bessel » Wed Nov 08, 2006 4:30 am

I had the same problem (T60). I eventually solved it by hex-edited the first sector of my second harddrive (where grub resides). I do not remember the details now, but you have to change a 0x80 (means the first hard drive, because I made linux bootable from ultrabay) byte to 0x81 (the second harddrive, this is how bootloader recognizes the linux drive if you boot from main drive).
rssb wrote:yeah this works if both on the same hard drive. But the problem here is linux is on the second hard drive.

THe copying of GRUB MBR to primary windows disk and then restoring using win xp rescue mode seems to be the way, but I am afraid it might mess up my windows..

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 0 guests