Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-28-2004, 03:03 PM   #1
LQ Newbie
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
Question How do I install Linux on one hard disk and XP on other?

If anyone can help me with this problem, I would be very grateful!

My aim is to install a second primary hard disk to my PC in order to have Windows XP sitting on one and Linux sitting on the other. Therefore, my first question is how I do this without having all the horror stories people keep on telling me about Windows and Linux installations?

Lastly, I would like to be able to switch on my PC and then be able to choose which hard drive I wish to use i.e. Linux or XP. Does anyone know how this can be done?
Old 07-28-2004, 05:36 PM   #2
Senior Member
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
...well - basically you install WindowsXP on one disc and Linux on the other

there is not too much to it - really!

I'd suggest to install Win on the first primary disc and linux on the second - I know that it was at least not very easy to install older Win-versions in any other place than on the first partition of the first disc.
This is not true for WinXP - as far as I know - but to avoid possible surprises i'd recommend this.

For Linux you need at least 2 partitions on the (second) disc - one for the entire filesystem and one for swap.
How you install Linux depends on which Distribution you want to install and use - I know the Debian/GNU way and the Suse way - they are both pretty easy to install initially.
If you know the names linux uses to refer to discs - and _something_ about the different (compared to Windows) layout of the filesystem, it is not a difficult to do.
Linux uses the names: /dev/hda? for the first disc on primary controller
/dev/hdb? for the second disc on primary controller
/dev/hdc? for the second disc on primary controller
/dev/hdd? for the second disc on primary controller
the question-mark being a number from 1 onward - this is the number of the partition on the disc.

So to install linux on the second drives first partition you would install it into /dev/hdc1

To get a little familiar with linux I suggest you get a copy of Knoppix - a CD-Rom which you can put in your CD-Drive and boot and use without installing anything.

To be able to boot from a nice screen - which presents you with a more or less nice menu to choose which system to boot - you will have to install a boot-manager on the disc your bios tries to boot from - normally the first disc, but this can be changed in the bios-settings of your PC.
I only know about bootmanagers for linux - this only means, that you install and configure them from inside linux - of course you can boot your WindowsXP with them too!
I'm using one named "lilo" to boot my PC which has linux and WinXP installed.
But to install and configure it, you must be using linux - and know how to do it - which means reading documentation.

If I where using two discs as I described it, my configuration file would look like this:
(the bitmap and following things provide for a pretty nice screen with a menu to chose what to boot)







How about trying it and see if it is really a problem - like you said?
There is lots of information and there is google...

Have fun



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

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to install linux from hard disk? mukeshj Linux - General 4 07-11-2005 11:43 AM
How to Install Linux on a USB Hard Disk poda Linux - Laptop and Netbook 1 05-17-2005 12:48 AM
SATA Hard disk - Cannot install Linux Beavis Linux - Hardware 5 08-20-2004 03:35 AM
install 2 linux on the same hard disk? tb-guru Linux - Software 3 04-10-2002 09:33 AM
I want to install linux from hard disk srinuallada Linux - Software 7 04-02-2002 10:00 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:53 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration