LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 09-11-2010, 12:04 PM   #1
David2010
Member
 
Registered: May 2009
Posts: 255

Rep: Reputation: 23
Dual booting windows and linux?


I have windows xp on my first hard drive and Linux on the second hard drive.

The windows hard drive is labeled hda1 and the linux hard drive is labeled hdb1.

I am using GRUB to boot the linux hard drive and it is installed on hdb.

Is there any way to boot the secondary linux hard drive using the windows bootloader?

I have tried several online tutorials for it but none of them work.
 
Old 09-11-2010, 12:26 PM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,393

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
Have you tried easybcd, It will allow you to boot linux from the windows bootloader.
 
Old 09-11-2010, 01:20 PM   #3
David2010
Member
 
Registered: May 2009
Posts: 255

Original Poster
Rep: Reputation: 23
Hm...

I got linux to boot up by swapping the slave hard drive and setting it as the master hard drive.

So now hda1 is linux and hdb1 is windows.

Linux boots perfectly.

But now I can't boot into windows from grub.

I tried using:

"rootnoverify (hd1,0)
makeactive
chainloader +1
boot"

But all that does is restart the machine.

In order to get into windows I had to disable the primary hard drive in the bios. Obviously this isn't even close to a solution. :-/

Last edited by David2010; 09-11-2010 at 01:28 PM.
 
Old 09-11-2010, 01:59 PM   #4
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Because windows is not on the first drive being hd0 you have to map you're drives
map (hd0) (hd1)
map (hd1) (hd0)
 
1 members found this post helpful.
Old 09-11-2010, 02:30 PM   #5
David2010
Member
 
Registered: May 2009
Posts: 255

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by ronlau9 View Post
Because windows is not on the first drive being hd0 you have to map you're drives
map (hd0) (hd1)
map (hd1) (hd0)
Thank you!!!

That fixed my problem.

"map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
makeactive
chainloader +1
boot"
 
Old 09-11-2010, 02:37 PM   #6
prashant3161
LQ Newbie
 
Registered: Sep 2010
Posts: 1

Rep: Reputation: 0
Problem in dual booting system

Hi all,
Actually i had ubuntu 10.04 on my system and now i have installed windows 7 on my system.Initially ubuntu was not visible so i installed grub using some steps i found on net.
ww.ubuntugeek.com/how-to-restore-grub-boot-loader-after-installing-windows.html

But now there is another problem that my windows is not visible in the boot menu.
I have also checked the grub.conf file the entry for windows 7 is there.
So now can anyone suggest me some solution to this problem.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
New to Linux - dual booting with Windows FlameLover Linux - Newbie 4 12-12-2005 09:18 AM
Dual booting windows + linux untwisted Linux - General 8 09-23-2004 01:26 PM
Dual Booting Linux and Windows Mandarb Linux - Software 3 05-05-2004 09:41 AM
Dual booting Linux and Windows XP windozeman Linux - Newbie 2 03-24-2004 01:10 PM
dual booting windows with linux garorag Linux - General 1 01-19-2003 09:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:36 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
Open Source Consulting | Domain Registration