Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dual boot redhat9 winxp problem

Status
Not open for further replies.

fludan

Technical User
Feb 1, 2002
41
0
0
US
Hi
I ben looking on search and I cant find what I am looking for I am new to redhat.
My friend installed Red Hat 9 on my pc, I have win xp pro install, when I start my pc, I have a windows showing Red Hat 9 and win xp, RedHat works but when I press Win XP this message appears

Loading "Windows XP"
rootnoverify (hd1,0)
chainloader +1

My configuration is
pri-master = Red hat 9 Quantum Firballp LM15
pri-slave = n/a
sec-master = cd-rom
sec-slave = Quantum Firballp LM15 for backup
windows Xp is install on a SCSI Quantum Atlas 10K disk 0
and I have a SCSI Quantum Atlas 10K disk 1 for data/backup

My device.map

(fd0) /dev/fdo
(hd0) /dev/hda
(hd1) /dev/sda

My grub.conf

default=1
timeout=10
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
titel Red Hat Linux (2.4.20-8)
root=(hd0,1)
kernel /boot/vmlinuz-2.4.20-8 ro root=/dev/hda2
hdc=ide-scsi
initrd /boot/initrd-2.4.20-8.img
title Windows XP
rootnoverify (hd1,0)
chainloader +1

can some one help me pleas I have no ideas what I am doing.

Thanks
Frank
 
Did you install Linux first?

Windows has a tendency to ignore all non-windows entries in the MBR.
So if you installed Linux first. Windows will fail.

M. Brooks
X Concepts LLC
 
Are you trying to load Windows XP and Linux with the Windows boot.ini file?
or are you using the linux boot loader?

M. Brooks
X Concepts LLC
 
O.K. I know how to fix your issue.

Instead of using the grub boot loader create a boot.ini file within your C:/

The file content should look something like

[boot loader]
timeout=10
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
rem default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows XP" /fastdetect
c:\linux.bin="Linux"


One note:
You will have to check your C:/ and see if your WinXP installation is in WINDOWS or WINNT.
Make the necessary changes to the above file to fit your system.

next..

On the linux side you will need to extract the first 512 bytes of your linux partition.

You can do this on the CLI with

% dd if=/dev/hda of=linux.bin bs=512 count=1

You will have to copy the output linux.bin to the root of C:/

Now you should be able to boot into either Windows or Linux successfully using the boot.ini

Using this example you can also add many other OS's easily.

I am currently running on my laptop- Win2000, RedHat, FreeBSD, and OpenBSD. No floppies necessary to boot.

Hope this helps..

M. Brooks
X Concepts LLC
 
How dow I use CLI I have know idea how to use it :-(
it show am new at this
 
Try this. Boot the box, at the grub menu, highlight the Windows XP line, and hit 'e' to edit the command. Then type this in:
Code:
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
makeactive
chainloader +1
boot
Not sure about the technicals of why Windows likes it this way, but links I Googled up looking for info on this keep mentioning this method as a fix.

----
JBR
 
Now when I press win xp from(grub boot loader) the screen come full of little color square?
 
Ok I deed make the file linux.bin and copy to my c root, now when I press on Linux when I boot I get GRUB.

PS: when I made the file linux I add to do this " dd if=/dev/hda of=linux.bin bs=512 count=1 " insted of this " % dd if=/dev/hda of=linux.bin bs=512 count=1 " is this ok

Thanks
Frank
 
Ok I did make the file linux.bin and copy to my c root, now when I press on Linux when I boot I get GRUB.

PS: when I made the file linux I add to do this " dd if=/dev/hda of=linux.bin bs=512 count=1 " insted of this " % dd if=/dev/hda of=linux.bin bs=512 count=1 " is this ok

Thanks
Frank
 
As for the '%' thing, that's probably because mbrooks uses pdksh or something that uses '%' instead of '$' in it's $PS1 (prompt) variable. Nothing life-threatening there :)

As for the 'getting grub' part, sounds like all is working as it should, since you are getting from the Windows bootloader to grub now. Just modify your /boot/grub/menu.lst in Redhat a bit, setting timeout=0, and you should go automagically from windows bootloader to Redhat when making the selection.

----
JBR
 
I change the timeout to 0 but when I boot from linux its still hangs there GRUB

Thanks
Frank
 
I change the timeout to 0 but when I boot from linux its still hangs there GRUB

Thanks
Frank
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top