LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-28-2005, 08:07 AM   #1
mfrangos79
Member
 
Registered: Jun 2005
Posts: 53

Rep: Reputation: 15
dual boot


I have Linux/Debian installed on one hard disk,
and I have Windows/XP installed on another hard disk.

I connected both of them on the motherboard, and when the computer starts up,
'grub' shows just the Linux boot options (and they work ok).
How can I add windows on this boot list.. I know i have to add something
in /boot/grub/menu.lst but i dont know what...(the example in menu.lst adds
something on the boot list but doesn't load windows.. it just freezes).

I tried 'df' to check if I could see both hard disks info, but all
i could see was info for hda1 (linux). So i went in /ets/fstab and mounted the second hard drive(windows) .. and now i can see it (an its content) as /hdb1 ..but the problem is how do I boot windows??

Thank you for your help in advance!
 
Old 12-28-2005, 09:51 AM   #2
cuiq
Member
 
Registered: Aug 2004
Location: Philly
Distribution: Debian Lenny, FreeBSD
Posts: 577

Rep: Reputation: 30
Your grub entry should read like this.

For Windows on primary hard drive;

title Windows XP
root (hd1,0)
makeactive
chainloader +1

or

For Windows on second (slave) hard drive;

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


Peace V
 
Old 12-28-2005, 11:33 AM   #3
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Rep: Reputation: 39
Quote:
Originally Posted by cuiq
Your grub entry should read like this.

For Windows on primary hard drive;

title Windows XP
root (hd1,0)
makeactive
chainloader +1
I'm pretty sure that should be

root (hd0,0)

...assuming that XP is on the first partition. If XP is not on a primary partition (it usually is), GRUB can't boot it. You can tell by executing fdisk -l (lowercase L). If XP is on hda1, hda2, hda3 or hda4 (or hdb), then it's on a primary partition.
 
Old 12-28-2005, 12:12 PM   #4
cuiq
Member
 
Registered: Aug 2004
Location: Philly
Distribution: Debian Lenny, FreeBSD
Posts: 577

Rep: Reputation: 30
The reason for the (hd1,0) is because mfrangos79 made this statement.

Quote:
I tried 'df' to check if I could see both hard disks info, but all
i could see was info for hda1 (linux). So i went in /ets/fstab and mounted the second hard drive(windows) .. and now i can see it (an its content) as /hdb1 ..but the problem is how do I boot windows??
It's also why I added the "map" section in my post, which is what you want to do if windows is on the second hard drive hdd.

However you are quite correct that it should be (hd0,0) is windows is on the primary partition.

Peace V

Last edited by cuiq; 12-28-2005 at 12:14 PM.
 
Old 12-28-2005, 12:37 PM   #5
mfrangos79
Member
 
Registered: Jun 2005
Posts: 53

Original Poster
Rep: Reputation: 15
Thanks guys, cuiq is right
since Windows is on second (slave) hard drive I have tried the following and it works just fine!

Code:
title Windows XP
root (hd1,0)
makeactive
chainloader +1
map (hd0) (hd1)
map (hd1) (hd0)

Last edited by mfrangos79; 12-28-2005 at 12:38 PM.
 
Old 12-28-2005, 12:37 PM   #6
mfrangos79
Member
 
Registered: Jun 2005
Posts: 53

Original Poster
Rep: Reputation: 15
(Problem solved)
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Do dual boot systems need dual instalations of programs (GIMP, Firefox etc.) madsporkmurderer Linux - Newbie 2 12-05-2005 12:45 PM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM
hOw to dual boot linux suse with a dual boot win98/xp pc walterkai SUSE / openSUSE 1 12-14-2004 05:04 PM
Advice (and some) Needed: Dual-HDD, Dual-Boot - Linux, WinXP elnomadkvn Linux - General 1 03-28-2004 10:11 AM
Newbie needs Mandrake/Win98 dual-HD, dual boot system design help... buddha Linux - Newbie 20 09-04-2003 08:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:06 AM.

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