View previous topic :: View next topic |
Author |
Message |
Base n00b
Joined: 22 Apr 2005 Posts: 17
|
Posted: Thu Nov 17, 2005 10:17 am Post subject: XP Boot problem using grub |
|
|
Have a problem with grub. To be precise, with the (hd) contra /dev/sda standards
Hardware
----------
I use one SATA(Linux) disk and one ATA(Win XP) disk.
I boot from the sata disk.
I have an nforce4 motherbord.
Procedure
-----------
When i install grub i emerge then #grub.
I set root(hd1,0) and setup (hd1)
I edit grub.conf and since i boot from the sata disk it will in the
grub.conf be set to = root (hd0,0)
I save and reboot.
This part works, i boot into linux without problem.
But i havent found any way to access the XP disk.
When booted into my gentoo install xp disk is detected as /dev/hdc1(why not /dev/hda1 one could ask).
Though i can access the disk fine from here.
But in grub.conf a (hd*,0) value is setted and feels like ive tried all numerical combos up to 10 and only get
"unknown filesystem" or that the value is invalid.
Any suggestions how to get this working? |
|
Back to top |
|
|
Admiral_Trigger_Happy Guru
Joined: 05 Sep 2004 Posts: 337 Location: Australia
|
Posted: Thu Nov 17, 2005 10:25 am Post subject: |
|
|
Same problem here, I just gave up and took out the HD with windows on it.
But I am interested in a solution to this problem.
I found that if you setup the PATA disk as the boot drive and install GRUB there it all seems to work fine, but I didn't want to do it that way _________________ Admiral Trigger Happy
-------------------------------
www.kiba-dock.org |
|
Back to top |
|
|
syg00 l33t
Joined: 23 Aug 2004 Posts: 907 Location: Brisbane, AUS
|
Posted: Thu Nov 17, 2005 10:36 am Post subject: |
|
|
This makes no sense - you say you are booting from the SATA, yet you setup(hd1).
Then you use root(hd0,0) ...
And it works ???.
Maybe you should tell us everything if you expect help.
When (and why) are you changing BIOS boot order, and what does your map file look like. |
|
Back to top |
|
|
Vulpes_ Tux's lil' helper
Joined: 24 Apr 2004 Posts: 119 Location: Hungary
|
Posted: Thu Nov 17, 2005 10:54 am Post subject: |
|
|
Base: Could you post your grub.conf? |
|
Back to top |
|
|
Base n00b
Joined: 22 Apr 2005 Posts: 17
|
Posted: Thu Nov 17, 2005 10:54 am Post subject: |
|
|
The reason for the hd0, hd1 switch is because of grub
When i boot from the livecd(aka when im installing gentoo), grub detects the sata as hd1(second hd)
BUT when booting from a certain disk(When installation is complete), grub always counts that disk as hd0(took me a day of hairpulling before i figured that out..) Therefore i must setup grub against hd1 when using livecd, but setup grub to boot against hd0 att boot time.
This because the hd order changes in grub depending on how i boot into linux.
default 0
timeout 30
title=Gentoo
root (hd0,0)
kernel /kernel root /dev/sda3
title=Win
root (THIS DOESNT WORK NO MATTER WHAT I TRY)
makeactive
chainloader +1
I had one idea myself though. Havent tried booting into linux installation and the run #grub again with root (hd0,0) and setup (hd0). Perhaps this somehow upsets the win XP boot if it sets to (hd1,0) at boot time. Will try it later when im home.
Anyway hope you understand what i mean?
PS: i CAN boot into windows by changing bootorder in bios, but would be nice to be able to do it in Grub...
PSS: Havent tried but wild guess says this problem wouldnt exist in lilo. But then again i dont really wanna use lilo. |
|
Back to top |
|
|
syg00 l33t
Joined: 23 Aug 2004 Posts: 907 Location: Brisbane, AUS
|
Posted: Thu Nov 17, 2005 11:09 am Post subject: |
|
|
Base wrote: | The reason for the hd0, hd1 switch is because of grub
When i boot from the livecd(aka when im installing gentoo), grub detects the sata as hd1(second hd)
BUT when booting from a certain disk(When installation is complete), grub always counts that disk as hd0(took me a day of hairpulling before i figured that out..) Therefore i must setup grub against hd1 when using livecd, but setup grub to boot against hd0 att boot time. | Yes, I can understand this would lead to lose of hair...
IMHO this shouldn't happen, but as I can't experiment with your box, I'm happy that you got it working. tab-completion comes in handy in scenarios such as this.
To get XP booting, try;
title=Win
map hd0 hd1
map hd1 hd0
rootnoverify(hd1,0)
makeactive
chainloader +1 |
|
Back to top |
|
|
syg00 l33t
Joined: 23 Aug 2004 Posts: 907 Location: Brisbane, AUS
|
Posted: Thu Nov 17, 2005 11:16 am Post subject: Re: XP Boot problem using grub |
|
|
Base wrote: | When booted into my gentoo install xp disk is detected as /dev/hdc1(why not /dev/hda1 one could ask). | Forgot to answer this.
This simply means the PATA disk is on the second (E)IDE interface - the first may be empty, or may have a CD/DVD drive on it. Doesn't affect the HD? designation - unless you hook up a disk to the primary interface at some (later) point in time. |
|
Back to top |
|
|
Base n00b
Joined: 22 Apr 2005 Posts: 17
|
Posted: Thu Nov 17, 2005 11:29 am Post subject: |
|
|
Ok that explains the hdc part. I have a dvd burner alone on the primary ATA channel.
Will try the other bit tonight at home(at work atm) and post results etc. |
|
Back to top |
|
|
Base n00b
Joined: 22 Apr 2005 Posts: 17
|
Posted: Sat Nov 19, 2005 10:28 am Post subject: |
|
|
The map commands unfortunatly only seem to generate something like "unknown command".
When booted into linux i see that my sata disk is still taking the name (hd1) {unlike when i boot, where it is hd0}.
So my other idea is useless as well.... Too bad if i have to use the bios bootorder to use windows..Hmm will have to think about this some more
Any other suggestions is deeply appreichiated. |
|
Back to top |
|
|
syg00 l33t
Joined: 23 Aug 2004 Posts: 907 Location: Brisbane, AUS
|
Posted: Sat Nov 19, 2005 11:31 am Post subject: |
|
|
Oooops - shoulda been;
map (hd0) (hd1)
map (hd1) (hd0)
Sorry. |
|
Back to top |
|
|
|