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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-30-2003, 05:51 PM
|
#1
|
LQ Newbie
Registered: Mar 2003
Distribution: Red Hat 8
Posts: 17
Rep:
|
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.
|
|
|
03-30-2003, 06:26 PM
|
#2
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,391
|
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.
|
|
|
03-30-2003, 08:22 PM
|
#3
|
Member
Registered: Feb 2003
Location: Cleveland, Ohio (USA)
Distribution: Gentoo, Kubuntu 6.06
Posts: 179
Rep:
|
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!
|
|
|
03-30-2003, 11:20 PM
|
#4
|
LQ Newbie
Registered: Mar 2003
Distribution: Red Hat 8
Posts: 17
Original Poster
Rep:
|
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.
|
|
|
03-31-2003, 12:27 PM
|
#5
|
Member
Registered: Feb 2003
Location: Cleveland, Ohio (USA)
Distribution: Gentoo, Kubuntu 6.06
Posts: 179
Rep:
|
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.
|
|
|
05-22-2003, 01:22 PM
|
#6
|
LQ Newbie
Registered: May 2003
Posts: 5
Rep:
|
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
|
|
|
06-23-2003, 12:36 PM
|
#7
|
LQ Newbie
Registered: Jun 2003
Posts: 1
Rep:
|
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?
|
|
|
06-23-2003, 04:12 PM
|
#8
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,391
|
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.
|
|
|
All times are GMT -5. The time now is 04:43 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|