LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-02-2003, 05:52 AM   #1
Kennifer
LQ Newbie
 
Registered: Jun 2003
Location: Brisbane, Australia
Distribution: Redhat 8.0
Posts: 4

Rep: Reputation: 0
Grub help - Windows XP wont boot!


Hi all - please help!
I have RH8 dual booting with XP, or at least it has been for some time until my first hard disk failed, which was the XP drive (i have a second 20gig drive with Linux). I reinstalled XP on the replaced hard disk, and rerun grub-install off my Linux boot CD's to get grub back. So now RH boots wonderfully (of course!) but when i select the Windows option in Grub, it just returns me to the selection screen. How can i resolve this (preferably without having to reinstall RH!)

My config is as follows:
HD1 Primary master = 20gig /dev/hda1 VFAT
HD2 Primary slave = 20gig /dev/hdb
1 0.031 99.914 primary ext3 boot
2 99.914 18581.062 primary ext3
3 18581.062 19092.937 primary linux-swap

my grub.conf looks like this (i added the 'map' commands); i have not included the top parts of the conf file to save space.

title Red Hat Linux (2.4.18-14)
root (hd1,0)
kernel /vmlinuz-2.4.18-14 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.18-14.img
title MS Windows XP Home
map (hd0,0) (hd0,0)
rootnoverify (hd0,0)
chainloader +1

I know most of you will tell me to forget XP, and i would wholeheartedly agree with you save for my wife and the fact that MYOB doesnt work under wine

Thankx
 
Old 06-02-2003, 06:08 AM   #2
kazuni
Member
 
Registered: May 2003
Location: Hong Kong
Distribution: Android on HTC Hero
Posts: 256

Rep: Reputation: 30
edit your /boot/grub/menu.lst:

add this after your redhat entry:

Code:
title Red Hat Linux (2.4.18-14)
        root (hd1,0)
        kernel /vmlinuz-2.4.18-14 ro root=LABEL=/ hdc=ide-scsi
        initrd /initrd-2.4.18-14.img
title MS Windows XP Home
        map (hd0,0) (hd0,0)
        rootnoverify (hd0,0)
        chainloader +1

title MS Windows(2)
        root (hd0,0)
        makeactive
        chainloader +1
donno if this helps but hey, thats my line that boots up
 
Old 06-02-2003, 09:27 PM   #3
Kennifer
LQ Newbie
 
Registered: Jun 2003
Location: Brisbane, Australia
Distribution: Redhat 8.0
Posts: 4

Original Poster
Rep: Reputation: 0
dOH! That didnt work
I have a feeling its because XP had its entry in the MBR, and when i loaded Grub it wiped that out. Can anyone else help? Grub-gurus!
 
Old 06-03-2003, 04:49 AM   #4
panzram
LQ Newbie
 
Registered: May 2003
Posts: 11

Rep: Reputation: 0
I would suggest something like this:

title windows
rootnoverify (hd0,0)
chainloader +1
 
Old 06-03-2003, 05:02 PM   #5
braindefeated
LQ Newbie
 
Registered: May 2003
Location: Venezuela
Distribution: SuSE 8.1
Posts: 4

Rep: Reputation: 0
Hey... I'm a newbie... so don't expect much from me. I have Win XP and SuSE 8.1 in my machine with GRUB. I have just 1 hard drive. My grub.conf looks like this:

root (hd0,2)
install --stage2=/boot/grub/stage2 /boot/grub/stage1 d (hd0) /boot/grub/stage2 0x8000 (hd0,2)/boot/grub/menu.lst
quit

I do not know how to edit my /boot/grub/menu.lst so I cannot tell you what it contains... if you're interested tell me how to edited and I be more than welcome to share that with you.

Good luck!

Ed.


http://www.linuxquestions.org/questions/
 
Old 06-07-2003, 11:13 AM   #6
deimya
LQ Newbie
 
Registered: Jun 2003
Location: qc.ca
Distribution: slackware 12.0
Posts: 17

Rep: Reputation: 0
you're almost there !

the key is really the map command but mapping hd0 to hd0 doesn't do anything. Try something similar to

title Windows
map (hd0) (hd1)
map (hd1) (hd0)
chainloader (hd1,0)+1

(grub isn't fool by the map command, just the resident OS of hd1 so hd1 still the drive from which you want to chainload)

Windows is way to capricious and U]don't[/U] want to know how to boot from a non-first hdd.
You could also pass the mapping by changing your boot sequence but it's kinda useless when you have grub

see the command section of the grub manual, it almost says the same thing as I.

Last edited by deimya; 06-07-2003 at 11:17 AM.
 
Old 06-07-2003, 11:36 AM   #7
deimya
LQ Newbie
 
Registered: Jun 2003
Location: qc.ca
Distribution: slackware 12.0
Posts: 17

Rep: Reputation: 0
sorry, my bad, i didn't see windows was on hd0...

this configuration would work if you
1. Installed windows on hd0
2. Later wanted linux, swap the windows drive to secondary (hd1)
and 3. Installed linux on a new hd0

(hey! it looks like what I once did =)

it seems like when you reran grub-install, you overwrited the mbr of windows which is needed to boot it.

Sorry if I misguided you

Last edited by deimya; 06-07-2003 at 11:46 AM.
 
Old 06-07-2003, 12:08 PM   #8
Mojojo
Member
 
Registered: May 2003
Location: Philadelphia/PA
Distribution: Arch
Posts: 452

Rep: Reputation: 35
Did you try putting in your cdrom with windows and choosing the restore function you might have to reinstall redhat though not sure. And also i was running windows 2000 pro and i had to get a driver offline to help it reconize the linux ext2 partitions im not sure if xp is the same but my windows partition would not boot without it.
 
Old 06-09-2003, 12:37 AM   #9
Kennifer
LQ Newbie
 
Registered: Jun 2003
Location: Brisbane, Australia
Distribution: Redhat 8.0
Posts: 4

Original Poster
Rep: Reputation: 0
Fixed.

Hey all... thanks for your help so much! Problem is solved, though not from want of trying!

Well it seems that first hdd was faulty, and that was why i had trouble booting. I ended up just shoving a new hdd in and reloading XP and RH. Not something i wanted to do but it fixed the problem anyway. Which brings me to my next whinge... Windows product activation. Because i have activated more than 3 times, every time i need to reload windows (which we all know will be many) i have to ring up, punch the stoopid code down the touch tone fone, then hold, explain to an operator at M$ exactly WHY i needed to reload and then tell them the code again! GRRRR! Talk about denial of privacy and liberties.

I have vowed it to be the last time i EVER purchase or reinstall M$ software again. Linux is far too good...
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
grub wont boot windows xp sonesay Red Hat 1 04-27-2005 12:14 AM
grub wont boot XP Dark Elf Linux - Software 2 06-08-2004 03:49 PM
grub wont boot windows on second hard drive ryan00davis Linux - General 12 05-19-2004 02:13 PM
Windows 2003 server & Fedora / GRUB wont boot win UrbanDEV Linux - Newbie 6 04-28-2004 09:34 AM
In desperate need... Grub wont detect my windows partition... psyklops Linux - General 4 08-20-2003 12:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:09 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