Click to See Complete Forum and Search --> : winxp and linux not liking each other


kashirat
09-15-2002, 08:15 PM
Well, I just installed redhat 7.2, and GRUB is installed on the MBR.. The problem is that I can't get into windows now!!! How can I add windows to GRUB but how? where? I know there must be some conf file I have to edit but I dont know where or what to put into it...

Any help would be appreciated...

Kashirat.

sharth
09-15-2002, 08:22 PM
/etc/grub.conf probably

Hayl
09-15-2002, 08:30 PM
wrong file. the file you need to edit is:

/boot/grub/menu.lst

i don't run windows anymore and i can't remember what my grub used to look like - sorry.

kashirat
09-15-2002, 08:38 PM
I wish I could say the same but I'm relatively new to linux and so I can't really be efficient on it yet... :( Anyway, I did edit the grub file but I get a "error 11: Unrecognized device string."

on this line:

root (hd0, 0)

My windows XP is on hda... first partition.. would that translate to

root (hda, 1) ??

Thanks,

Kash

z28Power
09-15-2002, 09:04 PM
I ended up editing the boot.ini file on the c drive, my two os's are on seperate drives. got the bootsect.lnx file on the c drive and added the command c:\bootsect.lnx="Linux" to the end of the file, and it boots both ways for me. Just another way to approach it.

kashirat
09-16-2002, 12:23 AM
Hrmm I'll try that bootsect out.. but I think I might know my problem... I have 2 hard drives, winxp is installed on the primary partition on the first hard drive, linux is installed on the other HD... But I told linux to install GRUB in the master boot record, so now I can't direct GRUB to let me boot up to winXP... Does this make any sense?

I tried practically everything for that

root (hd0, 0) and other combinations GRUB just didnt like any of it.. Any other suggestions?

Thanks,

Kash

Saptech
09-16-2002, 02:12 AM
Originally posted by z28Power
I ended up editing the boot.ini file on the c drive, my two os's are on seperate drives. got the bootsect.lnx file on the c drive and added the command c:\bootsect.lnx="Linux" to the end of the file, and it boots both ways for me. Just another way to approach it.

Are you using Lilo or Grub? The bootsect.lnx works fine for me with Lilo also. But I haven't tried it with Grub. I've heard that Grub usually picks up XP/NTFS, I never used Grub so I really don't know.

kashirat
09-16-2002, 02:57 AM
Do those files only exist when grub has been installed already? I tried searching my c: for those but found nothing...

Timothy L. Miller
09-16-2002, 03:16 AM
Grubs really easy to get to work with xp.

Your /boot/grub/menu.lst entry for xp would look like this based on what you said:

Title Windows XP
root (hd0,0)
chainloader +1

notice there is no space between the 0's and comma. This works perfectly for me on 2 computers, where xp is installed in the first partition of the primary master on both, same as you said yours was.