LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-30-2008, 05:23 AM   #1
murtaza_78
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Rep: Reputation: 0
GRUB / Dual boot problems Fedora 8 / WinXP


Hi there, I've got 2 hard disks, a 80gb disk(SATA)[5 partitions in it], and a 40gb disk(IDE)[two partitions in it].
windows XP is installed on the first drive-80gb[first partition], and im trying to install Fedora 8 on the other-40gb[first partition].

During the installation i've chosen to install GRUB in the first sector of the boot sector of that second drive. Also I've added the first partition of the first disc (where i've XP) in the GRUB boot menu and chosen XP as the default OS. Now when i restarted my pc it directly loads XP without showing the OS Choices menu. Can anyone please suggest me what to do now in this stage? Thanks for any reply.
 
Old 12-30-2008, 06:39 AM   #2
ekamlesh
Member
 
Registered: Jun 2008
Distribution: Debian Wheezy
Posts: 43

Rep: Reputation: 17
Keep hitting the escape after starting your machine. It will ask you for a boot device. Select your second harddisk. It will then load grub. If that works configure your system to boot from second harddisk.
 
Old 12-30-2008, 07:59 AM   #3
openSauce
Member
 
Registered: Oct 2007
Distribution: Fedora, openSUSE
Posts: 252

Rep: Reputation: 39
You need to tell your BIOS to boot from the 2nd drive. Depending on the BIOS you have, you might need to hit the Esc key during boot as ekamlesh says, or maybe Del or one of the F1-F12 keys. Most systems will have a splash screen that appears before XP starts booting that will tell you which key to press.
 
Old 12-31-2008, 02:35 AM   #4
murtaza_78
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by openSauce View Post
You need to tell your BIOS to boot from the 2nd drive. Depending on the BIOS you have, you might need to hit the Esc key during boot as ekamlesh says, or maybe Del or one of the F1-F12 keys. Most systems will have a splash screen that appears before XP starts booting that will tell you which key to press.
thanks for the reply guys. I've changed the boot order to load from the disk where linux is installed. Now I get this message while loading XP:

Booting 'WinXP'
rootnoverify (hda1,0)
chainloader +1


then no activities after showing this message. What should I do now? Thanks for any reply.
 
Old 12-31-2008, 06:08 AM   #5
openSauce
Member
 
Registered: Oct 2007
Distribution: Fedora, openSUSE
Posts: 252

Rep: Reputation: 39
Quote:
Originally Posted by murtaza_78 View Post
thanks for the reply guys. I've changed the boot order to load from the disk where linux is installed. Now I get this message while loading XP:

Booting 'WinXP'
rootnoverify (hda1,0)
chainloader +1


then no activities after showing this message. What should I do now? Thanks for any reply.
Try changing that line to rootnoverify (hd1,0). grub names partitions differently from what you'll find in /dev. hd1 is the 2nd hard drive, 0 is the first partition on the drive. Typing info grub at a terminal should give you the full info on how grub names partitions.
 
Old 12-31-2008, 09:36 AM   #6
CJS
Member
 
Registered: May 2008
Location: California, USA
Distribution: Ubuntu 8.10
Posts: 247

Rep: Reputation: 49
If you are booting Windows from the second boot drive, you would also need to add the mapping lines in your Grub entry:
Code:
title Windows XP
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
Windows doesn't normally like to be booted off of anything but the first drive in the BIOS boot order, so if you try to boot Windows on a different boot drive like you are doing, you have to use Grub's "mapping" technique to fool Windows into thinking it is actually being booted from the first boot drive. How about giving that a shot and let us know how it goes.
 
Old 01-01-2009, 04:18 AM   #7
ekamlesh
Member
 
Registered: Jun 2008
Distribution: Debian Wheezy
Posts: 43

Rep: Reputation: 17
It seems there is a misunderstanding as regards to where Windows XP is installed.What I understood from murtaza 78's first post is ,
hard disk 1(80GB)
5 partitions
Windows on the first partition

hard disk 2(40GB)
2 partitions
Fedora on the first partition

Hence I think
Quote:
rootnoverify (hd0,0)
should work
 
Old 01-01-2009, 06:39 AM   #8
CJS
Member
 
Registered: May 2008
Location: California, USA
Distribution: Ubuntu 8.10
Posts: 247

Rep: Reputation: 49
Quote:
Originally Posted by ekamlesh View Post
It seems there is a misunderstanding as regards to where Windows XP is installed.What I understood from murtaza 78's first post is ,
hard disk 1(80GB)
5 partitions
Windows on the first partition

hard disk 2(40GB)
2 partitions
Fedora on the first partition

Hence I think

should work
That is only true if he has Grub installed to the MBR of the Windows drive and boots the Windows drive on start up, because only then is the Windows drive (hd0). But he said in his post that:
Quote:
Originally Posted by murtaza_78
During the installation i've chosen to install GRUB in the first sector of the boot sector of that second drive.
So if he boots his Fedora drive first on start up, that makes the Fedora drive (hd0) and then the Windows drive would have to be (hd1), or the 2nd drive in the BIOS boot order, if he doesn't have any other drives. Grub on start up sees the order of drives as the same as the BIOS boot order, not how the drives are ordered in /dev (sda, sdb, sdc, etc) once you boot into Linux. So although the drive order in Linux generally stays the same, you can change the boot order on start up, and that will change (hd0), (hd1), (hd2), etc.
 
Old 01-04-2009, 10:31 PM   #9
murtaza_78
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Hi CJS,

your method of using Grub's "mapping" technique to fool Windows worked perfectly. Thanks a lot for letting me know the technique :-).
 
Old 01-05-2009, 06:50 AM   #10
CJS
Member
 
Registered: May 2008
Location: California, USA
Distribution: Ubuntu 8.10
Posts: 247

Rep: Reputation: 49
Glad to hear that worked OK, murtaza_78; cheers and have fun with Windows and Fedora.
 
  


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 / Dual boot problems Fedora 8 / WinXP macca12321 Fedora 7 06-08-2009 07:53 AM
WinXP Fedora 8 Dual boot problem - XP booting - Don't see Grub loader gzero Linux - Newbie 7 02-28-2008 10:09 AM
Dual boot WinXP/Debian, grub error booting WinXP ChemBot Linux - General 5 02-22-2007 04:13 PM
Grub error 17 Fedora 6 & WinXP dual boot R N Ghosh Fedora 3 01-21-2007 12:24 PM
winXP / FC 2.4 GRUB Dual boot problems again jjisnow Linux - Newbie 4 03-23-2004 09:30 AM


All times are GMT -5. The time now is 12:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration