LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-30-2003, 05:51 PM   #1
jweby
LQ Newbie
 
Registered: Mar 2003
Distribution: Red Hat 8
Posts: 17

Rep: Reputation: 0
Complicated Dual Boot problem with Win2K and RedHat 8 on separate ide controllers


I am currently dual booting Win2k and RedHat 8, but neither will boot each other. Grub hangs when trying to boot Windows' Boot.ini Loader and the Boot.ini loader hangs trying to boot Grub.

Windows is installed on a Promise tx2000 raid controller with one mirrored array that has two partitions, windows is on partition 0, ntfs. RedHat 8 is installed on a single drive connected to the Mother board Primary IDE as master/single.

I can boot either operating system by choosing the boot drive with the motherboard boot menu.

To attempt to boot linux from windows I made a RedHad.Bin file using dd to copy the linux boot block from /boot
if I boot the machine from a floppy with only the redhat.bin file on it it will load and work. If I copy the same .bin file to windows c: and point boot.ini to it using c:\redhat.bin="red hat 8" all I get is the letters GRUB in the upper left of the screen, Grub hangs?

Conversly when booting to the linux drive and choosing the Grub windows option the commands grub uses to load windows appears on the screen and then hangs.
rootnoverify (hd1,0)
makeactive
chainload +1

I know the Promise Raid controller is installed in Linux properly as I can mount the ntfs volumes in linux (read only).

Any Ideas why they won't boot each other?

Currently I am booting by inserting a floppy that has my redhat.bin file on it when I want linux and removing it when I want windows (mb boot order: Floppy, Raid, IDE 0 to get that to work) I would like to stop having to use the floppy and get one of the menus to work.
 
Old 03-30-2003, 06:26 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,391

Rep: Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583
booting raid

Both Grub and Lilo have problems with RAID. The most likely option is to put your bootloader on the IDE primary drive and boot that. Since you are already doing that with Grub and it doesn't work I suggest trying Lilo.
 
Old 03-30-2003, 08:22 PM   #3
kc8tbe
Member
 
Registered: Feb 2003
Location: Cleveland, Ohio (USA)
Distribution: Gentoo, Kubuntu 6.06
Posts: 179

Rep: Reputation: 30
Try modifying your grub entry for WinXP to look like this:
Code:
title Windows
	rootnoverify (hd1,0)
	makeactive 1
	map (hd1) (hd0)
	chainloader +1
Worked for me. Good luck!
 
Old 03-30-2003, 11:20 PM   #4
jweby
LQ Newbie
 
Registered: Mar 2003
Distribution: Red Hat 8
Posts: 17

Original Poster
Rep: Reputation: 0
kc8tbe your grub lines worked, I can now boot to the linux drive and use grub to load either windows or redhat. Thanks.

It appears to be the map (hd1) (hd0) line that was the key. For the sake of knowing, any idea what that line does?

Thanks again.
 
Old 03-31-2003, 12:27 PM   #5
kc8tbe
Member
 
Registered: Feb 2003
Location: Cleveland, Ohio (USA)
Distribution: Gentoo, Kubuntu 6.06
Posts: 179

Rep: Reputation: 30
Windows likes to think that it's the primary partition on the primary master. "makeactive 1" fools windows into thinking its on the primary partition by making that partition active. The "map" command maps one hard drive onto another, fooling windows into thinking that its on the primary master.

The trick comes with a cost, though. You will (probably) be unable to use partitioning utilities from Windows. If you need to partition from windows, use your system BIOS to boot windows rather than GRUB.
 
Old 05-22-2003, 01:22 PM   #6
DelMerkin
LQ Newbie
 
Registered: May 2003
Posts: 5

Rep: Reputation: 0
Promise Raid

I have a very similar setup as the first post on this thread. I installed RH 9 on a single IDE master. My Windows OSes are on a Promise Motherboard ATA RAID. I can now boot RH fine but Windows will not boot even with the emergency boot disk I created before I started (smart huh?) .

Do I need to install Linux drivers for Promise RAID even though I have no need to see the Windows drives when in Linux? I don't care what bootloader I use as long as I can get to each of the OSes.

Thanks
 
Old 06-23-2003, 12:36 PM   #7
dustins
LQ Newbie
 
Registered: Jun 2003
Posts: 1

Rep: Reputation: 0
i have a similar problem.
i used ghost to copy my hdd from a scsi to an ide drive, which has win xp pro on it, and is the primary drive. my secondary scsi has redhat v9 on it, and now, i can't boot the ide drive, because on the xp loading screen, i get a flash of blue, and then a restart.
however, if i try to set it up as a slave with my scsi's, grub hangs. whats causing this / how can i fix it, any one know?
 
Old 06-23-2003, 04:12 PM   #8
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,391

Rep: Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583
Disk copy problems

lilo, and probably other boot loaders also, places a disk address in the MBR showing where to start loading executable code. When you make changes to the boot portion of your system you have to rerun lilo so that it can set up this address again, among other reasons.

When you copy a disk, the new disk may not have the same geometry as the old and so the disk address in the new disk MBR is not valid. So lilo fails.

I expect other bootloaders might have the same problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
grub dual boot redhat 8/win2k problem bsriveria Red Hat 1 02-10-2005 08:18 AM
redhat 7.3 and win2k dual boot problem lyw4 Linux - Newbie 0 05-23-2003 04:13 PM
dual boot - Win2K/RH 7.3 on separate HDs rayne Linux - Newbie 3 09-20-2002 05:34 PM
Can Redhat 5.1-Win2K dual boot? lsmgms Linux - Software 1 09-09-2001 05:19 AM
Dual Boot Win2k --> Redhat mkhan Linux - Software 5 06-30-2001 11:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration