LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-27-2006, 09:48 PM   #1
fedora bora
LQ Newbie
 
Registered: Oct 2006
Posts: 4

Rep: Reputation: 0
Dual Booting on 2 HDDs


Well, I have 2 HDDs installed on my PC, one with Windows XP and one with Fedora core 6 linux. I am curious on how to be able to choose which OS I want to use while I boot up the PC. Right now it automaticlly boots to windows due to it is the primary HDD. I have changed it so the linux HDD boots up first, but I still cant boot back to windows. Is there a way I can install a splash screen or something to choose what HDD I would want to boot from? Thanks.
 
Old 10-28-2006, 01:45 AM   #2
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
Install a boot loader like LILO on your second HDD. Then set it up to boot WinXP if selected.
 
Old 10-28-2006, 11:26 AM   #3
fedora bora
LQ Newbie
 
Registered: Oct 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Alrighty. Where can I find LILO?
 
Old 10-28-2006, 03:01 PM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
You probably don't need lilo because you probably already have a bootloader installed: grub.

Look /boot directory. If you see a sub-folder called grub, it's already installed on your system.

Look in the /grub folder, you should see a file called grub.conf (or perhaps menu.lst - same file; different name).

Add an entry for your windows disk. See the grub manual (probably already on your system somewhere) for examples.

With windows on the first partition of the first drive, it's something like:

title Windows
root (hd0,0)
savedefault
makeactive
chainloader +1

This assumes hda is the master drive. This uses grub notation for disks and partitions: hda = grub hd0; hdb = grub hd1; partition 1 = grub 0; partition 2 = grub 1.

If windows is on the slave drive, you will have to amend the above windows entry to look like this:

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

This remaps the drives so windows thinks it's on the master drive.

Then go through the steps in the grub manual to write grub first stage to the MBR. It's easily done and the manual has step by step instructions.

After making the additions to your grub.conf and writing grub first stage to the MBR, reboot and select windows. It should boot just fine.

Note: when you re-install windows, it will overwrite the MBR and Linux will not boot. You will have to boot from install cd and do it again.

Last edited by bigrigdriver; 10-28-2006 at 03:06 PM.
 
  


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
Accessing other HDDs/Booting from other HDDs Namatacka Ubuntu 2 05-07-2006 11:21 AM
Dual booting with seperate HDDs moistTowelette Linux - Software 1 04-27-2005 12:07 AM
dual booting multiple distros with 2 hdds xiato Linux - Newbie 9 05-05-2004 09:11 PM
Both Hdds booting to Linux HuggyBear Linux - Newbie 7 07-06-2003 09:26 AM
Dual booting with WinXP and Linux (OS's on separate HDDs) DaveS Linux - General 11 03-09-2003 08:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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