LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 05-29-2005, 08:43 AM   #1
openfun
Member
 
Registered: Nov 2004
Location: Netherlands
Distribution: Mandrake, Red Hat, Debian
Posts: 34

Rep: Reputation: 15
Question How to set grub with dual boot


My desktop has two hard disks:
1st, ide hard disk for ubuntu linux; (Master)
2nd, SATA hard disk for windows xp.
I use GRUB to dual boot. However I have no idea about how to handle the configuration. The problem is I can boot ubuntu, but windows xp not.

The lines in my grub configure file for the windows xp boot is:

rootnoverify (hd1,0)
makeactive
chainloader +1

What's the correct section configure lines for windows xp in grub?
Thanks a lot!
 
Old 05-29-2005, 09:01 AM   #2
spicychicken
Member
 
Registered: Oct 2004
Distribution: Fedora FC2
Posts: 32

Rep: Reputation: 15
hey openfun,

i'm not 100% sure, but I'm just going to give you the text to my grub file - it works find dual booting with win xp


Code:
title Windows
rootnoverify (hd0,1)
chainloader +1

that's it for the windows section in the grub.conf file. of course change (hd0,1) to match where your windows partition is located.

hope this helps
 
Old 05-29-2005, 09:17 AM   #3
openfun
Member
 
Registered: Nov 2004
Location: Netherlands
Distribution: Mandrake, Red Hat, Debian
Posts: 34

Original Poster
Rep: Reputation: 15
Hi SpicyChicken:
Thank you for your replying! :-)
I have got a feeling that there maybe a some strategy for the SATA disk, and for the 2 hard disks as well. But I don't know what exactly it is. :-(

Can anyone else help me with that? thanks again!
 
Old 05-29-2005, 10:22 AM   #4
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

Rep: Reputation: 58
I am not sure how this applies to mixed-controller systems, but usually you need to make Windows believe that it resided on the first HDD in the system. This is done with 'map':
Code:
title windows
   root (hd1,0)
   makeactive
   chainloader +1
   map (hd0) (hd1)

   map (hd1) (hd0)
 
Old 05-30-2005, 03:40 AM   #5
openfun
Member
 
Registered: Nov 2004
Location: Netherlands
Distribution: Mandrake, Red Hat, Debian
Posts: 34

Original Poster
Rep: Reputation: 15
Abisko00:

Thank you for your help! :-) It works for my situation.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
grub dual boot, dual drives... scoob8000 Linux - General 5 04-11-2005 06:54 PM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM
Dual boot, dual drives. Where to put GRUB? rgbrock1 Linux - Newbie 5 10-02-2004 10:56 AM
Trying to dual-boot XP and RH9 with GRUB...GRUB stops right after BIOS EvilYoda Linux - Newbie 5 06-20-2003 03:38 PM
How should I set up my dual boot?? BryanMC Linux - General 9 02-09-2003 08:26 PM


All times are GMT -5. The time now is 01:57 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration