LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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-29-2009, 11:01 AM   #1
rsabr
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Rep: Reputation: 0
centos/xp DUAL BOOT different HDD


I have a windows xp installed on a hdd on a particular machine and I also have centos 5 installed on another hard drive.
I want to add the hard drive to the xp machine switch the boot sequence to the centos HDD and now I want be able to load windows from GRUB.
 
Old 12-29-2009, 02:13 PM   #2
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 258

Rep: Reputation: 42
It sounds like your taking the Centos drive from one computer and adding it to the one with Windows. Chances are the hardware structure between the two computers are quite different, some operating systems don't adapt easily to this sort of change.
You can however, plug it in and set the bios (setup) of the computer to boot the second (new) drive and see what happens.
If it's happy, you can proceed to install grub to either drive from command line in the running Centos, normally to the drive set to boot first in the bios, which should be the Windows drive to keep things simple, and it will add Windows to the menu, reboot, switch back to Windows drive in bios as first boot drive and continue booting.
 
Old 12-30-2009, 08:29 AM   #3
rsabr
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you for the quit response.

However I've already tryed that method, I even went on to add these lines to grub.

title Windows

rootnoverify (hd1,0)
makeactive
chainloader +1
boot

being that

windows is sdb1
and centos is
sda0
sda1

and when it tries to load it hangs.
 
Old 12-30-2009, 10:12 AM   #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
Quote:
Originally Posted by rsabr View Post
Thank you for the quit response.

However I've already tryed that method, I even went on to add these lines to grub.

title Windows

rootnoverify (hd1,0)
makeactive
chainloader +1
boot

being that

windows is sdb1
and centos is
sda0
sda1

and when it tries to load it hangs.
Is not possible for you to plug the HDS in that way that
Windows become SDA
and centos SDB
Because linux do not have any problem to start from any drive.
I do not know if windows can start from sdb
In that case widows is (hd0,0)
 
Old 12-30-2009, 10:30 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,801

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
It is possible to boot windows from sdb. You need to add a couple of commands so that windows thinks its actually booting from sda.

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


Reply

Tags
boot, dual, grub


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
need to dual boot centos 5.1 with xp but centos is already installed. extendedping Linux - Software 4 05-13-2008 08:40 PM
how to do a dual boot (Windows on portable HDD) linux on computer HDD izquierdista Linux - General 5 01-28-2006 09:50 AM
Dual boot XP(internal IDE HDD) Debian(external USB-IDE HDD) using boot.ini PolarDog Linux - Laptop and Netbook 2 07-01-2005 09:50 PM
Moving root from a dual-boot HDD to a new HDD Androoski Suse/Novell 1 05-13-2005 10:34 PM
Advice (and some) Needed: Dual-HDD, Dual-Boot - Linux, WinXP elnomadkvn Linux - General 1 03-28-2004 10:11 AM


All times are GMT -5. The time now is 05:19 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