View previous topic :: View next topic |
Author |
Message |
rernst n00b
Joined: 12 Mar 2004 Posts: 14
|
Posted: Sat Jul 09, 2005 8:36 pm Post subject: Windows XP on second hard drive |
|
|
Hi,
I have scoured the posts but seem to have found none that specifically address my problem (pardon me if I overlooked it).
I have been successfully running Gentoo for quite a while in a box with three hard drives. I have only used the first hard drive.
Now I am trying to turn this into a dual boot system with XP on the second hard drive. To install XP on the second drive I unplugged the Linux drive and jumpered the second drive as the first one and XP installed and boots without a hitch. Now I rejumpered and Gentoo boots fine. I updated my grub.conf as follows:
Code: |
default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.11-r6
root (hd0,0)
kernel /kernel-2.6.11-gentoo-r6 root=/dev/hda3
title=Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd0,0)
chainloader +1
|
When I select XP I get an error 13 from grub, complaining about bad executable format.
What am I missing here?
/re |
|
Back to top |
|
|
Varean Guru
Joined: 03 Jul 2005 Posts: 436 Location: California, USA
|
Posted: Sat Jul 09, 2005 8:40 pm Post subject: Re: Windows XP on second hard drive |
|
|
Code: |
default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.11-r6
root (hd0,0)
kernel /kernel-2.6.11-gentoo-r6 root=/dev/hda3
<---------Space Here------------>
title=Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd0,0)
chainloader +1
|
My best guess is that you need a blank line between the 2 OS grub sections (kernel /kernel-2.6.11-gentoo-r6 root=/dev/hda3 & title=Windows XP to signify that they are seperate. As far as I know, everything looks fine to me, mine is pretty similar (with some Hd loactions mixed around) and my Gentoo and Windows work fine. _________________ Registered Linux User #387568
|
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sat Jul 09, 2005 8:44 pm Post subject: |
|
|
Hi.
You should change your Windows XP entry in GRUB to
Code: | title=Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1 |
Does this help? _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
rernst n00b
Joined: 12 Mar 2004 Posts: 14
|
Posted: Sat Jul 09, 2005 9:03 pm Post subject: |
|
|
I added the blank line.
I changed the rootnoverify statement.
Now I do not receive the Error 13 but, after a few moments the message 'A disk read error has occurred. Press CTRL+ALT+DEL to restart'.
I am unclear on the origins of this message.
Do I have to change my BOOT.INI (maybe the wrong forum to ask)? |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sat Jul 09, 2005 9:12 pm Post subject: |
|
|
When you select Windows XP from GRUB, does XP start loading or you get an immediate error?
Are you able to boot XP if you remove the first disk? _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
rernst n00b
Joined: 12 Mar 2004 Posts: 14
|
Posted: Sat Jul 09, 2005 10:05 pm Post subject: |
|
|
Just verified again: When I jumper to the second drive, XP (Slipstream) boots just fine. When I use any of the statements above, I received the results I mentioned.
I am quite willing to let Windows be the first drive and my BIOS can boot to the second drive, but will I have to change my FSTAB and other specs if I use the map() for Gentoo?
Edit: I am not sure what it is that is loading there. No Windows logo or any other indication. The screen is not cleared. The only thing I see after ~ 5 seconds is the read error message. |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sat Jul 09, 2005 10:09 pm Post subject: |
|
|
I was looking at my /boot/grub/grub.conf
Code: | title Windows XP
rootnoverify (hd0,1)
makeactive
chainloader +1 |
when I noticed that you don't have the makeactive line. Please add it and try again. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
rernst n00b
Joined: 12 Mar 2004 Posts: 14
|
Posted: Sat Jul 09, 2005 10:25 pm Post subject: |
|
|
Same results. (Read error).
I am not sure whether it is of consequence but my whole setup is:
IDE0 Master: Linux
IDE0 Slave: XP
IDE1 Master: DVD RW
IDE1 Slave: Unformatted drive
I tried adding a 'boot' statement as the last one. I tried reversing the map() statements. No luck.
I saw a similar thread here: https://www.redhat.com/archives/fedora-list/2004-April/msg00401.html
And I forgot: The XP partition is NTFS. It's a vaniall Windows install, no special drivers. |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sun Jul 10, 2005 12:52 am Post subject: |
|
|
rernst wrote: | IDE0 Master: Linux
IDE0 Slave: XP
IDE1 Master: DVD RW
IDE1 Slave: Unformatted drive |
What happens when you unplug your unformatted drive, and then try booting ? |
|
Back to top |
|
|
rernst n00b
Joined: 12 Mar 2004 Posts: 14
|
Posted: Sun Jul 10, 2005 4:45 am Post subject: |
|
|
This is how far I got:
I unplugged the second drive - no success. Then I wired the windows drive on IDE1 channel 1 and the DVD-RW on channel 2 (slave).
I left the unformatted drive unplugged and all definitions as above.
*This* configuration multibooted.
I vaguely recall Windows' booting scheme preferring Master rather than Slave, so this may be related.
I have not been able to hook up the last drive as Slave for IDE0, which would probably require a modification of the grub configuration - or not?
Anyhow - it would appear as if multi-booting got a bit more complicated when dealing with more than one drive instead of a number of partitions. |
|
Back to top |
|
|
Varean Guru
Joined: 03 Jul 2005 Posts: 436 Location: California, USA
|
Posted: Sun Jul 10, 2005 3:02 pm Post subject: |
|
|
rernst wrote: | Same results. (Read error).
And I forgot: The XP partition is NTFS. It's a vaniall Windows install, no special drivers. |
That's your problem. Linux doesn't like to dual-boot with a NTFS filesystem. I had a similar problem with my computer so I reformatted Windows to be FAT32, but in order for you to get that option, it has to be under 30 gigs. _________________ Registered Linux User #387568
|
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sun Jul 10, 2005 3:18 pm Post subject: |
|
|
Varean wrote: | rernst wrote: | Same results. (Read error).
And I forgot: The XP partition is NTFS. It's a vaniall Windows install, no special drivers. |
That's your problem. Linux doesn't like to dual-boot with a NTFS filesystem. I had a similar problem with my computer so I reformatted Windows to be FAT32, but in order for you to get that option, it has to be under 30 gigs. |
Varean, that's not true. All my dual-boot systems have NTFS for XP. I don't use any FAT32 partitions with XP.
Furthermore, GRUB doesn't care about the partition type of other OSs, because it passes the control to the boot record on the beggining of the partition. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
MickKi Veteran
Joined: 08 Feb 2004 Posts: 1173
|
Posted: Mon Jul 11, 2005 2:46 pm Post subject: |
|
|
You'll also need to reset your BIOS so that it registers the new order of your boot devices. What does your grub.conf look like now? _________________ Regards,
Mick |
|
Back to top |
|
|
rernst n00b
Joined: 12 Mar 2004 Posts: 14
|
Posted: Tue Jul 12, 2005 1:41 am Post subject: |
|
|
The grub.conf is unchanged (as above). It would appear as if Windows (?) does not like to be on the slave drive .
I must admit I did not pursue hooking up the (small) third drive to see what would happen as I would have to remove both drives and reverse the order - It's just not worth it.
My bottom line is that I surmise this is not a grub info (it appears to chain to Windows loader in the failing case above) but Windoze then chokes. |
|
Back to top |
|
|
kLUMSY bOT n00b
Joined: 23 Jul 2004 Posts: 69
|
Posted: Thu Jul 14, 2005 12:58 pm Post subject: |
|
|
jmbsvicetto wrote: | Hi.
You should change your Windows XP entry in GRUB to
Code: | title=Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1 |
Does this help? |
bump. thanks for your help. |
|
Back to top |
|
|
JeffBlair Apprentice
Joined: 23 May 2003 Posts: 175 Location: USA, Lone star state
|
Posted: Thu Jul 14, 2005 1:47 pm Post subject: |
|
|
I also remember someone saying one time that Windows does not like to boot unless it has the boot flag on the partition that it is on. Linux dosn't care if it has it or not. You could try that. |
|
Back to top |
|
|
|