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 - 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 07-27-2003, 06:07 PM   #1
Netforce
LQ Newbie
 
Registered: Jun 2003
Location: canada, ontario
Posts: 19

Rep: Reputation: 0
linux and win xp on the same system


Ok rite now i have a new pentium 4 system with linux on it and a crapy win xp system and i was wondering if i could stick another hdd in and put win xp on it so i could boot to it when ever i wanted to play empire earth? I got a 6 gig not in use rite now. I search aroud the net and people have had two operating system on the same hdd but i don't wanna reinstall redhat 9 again so is it posible to stick in a 2nd hdd and install windows xp on to it and have an option where i can boot linux or windows xp?
 
Old 07-27-2003, 06:18 PM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Yes.

You will need to make modifications in your BootLoader (GRUB or Lilo) configuration file.
There are many threads on LQ which contain sample conf files.
 
Old 07-28-2003, 10:19 AM   #3
Netforce
LQ Newbie
 
Registered: Jun 2003
Location: canada, ontario
Posts: 19

Original Poster
Rep: Reputation: 0
I have been searching for ways to do it but I am a beginner so could some one tell me step by step on how to do it plz
 
Old 07-28-2003, 10:28 AM   #4
Netforce
LQ Newbie
 
Registered: Jun 2003
Location: canada, ontario
Posts: 19

Original Poster
Rep: Reputation: 0
I have had RED HAT 9 running on the system for about a year now and I got windows xp installed now on the primary slave hdd just gotta know how to make it so i can boot up into windows
 
Old 07-28-2003, 10:42 AM   #5
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
You will need to modify the GRUB file (/boot/grub/grub.conf)

Here is an example:
Code:
title WindowsXP
        rootnoverify (hd1,0)
        chainloader +1
You may need to change the hd1,0 in order to match your system setup.
 
Old 07-29-2003, 12:48 AM   #6
Netforce
LQ Newbie
 
Registered: Jun 2003
Location: canada, ontario
Posts: 19

Original Poster
Rep: Reputation: 0
K i edited the grub.conf file and typed that in when i rebooted the computer i selected windows xp and it went to a black screen showing
booting 'windowsxp'

rootnoverify (hd1'0)
chainloader +1

and nothing else happen
 
Old 07-29-2003, 11:37 AM   #7
Netforce
LQ Newbie
 
Registered: Jun 2003
Location: canada, ontario
Posts: 19

Original Poster
Rep: Reputation: 0
?
 
Old 07-29-2003, 12:26 PM   #8
Netforce
LQ Newbie
 
Registered: Jun 2003
Location: canada, ontario
Posts: 19

Original Poster
Rep: Reputation: 0
could someone help me out?? plz
 
Old 07-29-2003, 03:31 PM   #9
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Can you post your GRUB configuration file
And I need to know more about your partitions,
so open a console window and type:
Code:
fdisk -l
 
Old 07-29-2003, 03:44 PM   #10
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692
Blog Entries: 9

Rep: Reputation: 45
Off the top of my head,

get the other Hdd installed, it depends where you want to put it - have a look at the first screen you get when you switch the machine on (the one that you would use to get into BIOS) that should tell you which ide channel isnt used (my master on the first channel is my hdd, the slave on the first is my dvd. My master on the second ide channel is my cdrw and the slave isn't used - I just havent' got round to installing the second hdd that's sitting in my desk drawer).

You would then have to boot up and look at the conf file for grub (presuming that's what you are using) and just follow the same basic pattern of config layout, remembering to tell it where you want the windows to be - don't forget that windows can get a bit funny if it's not the first OS on a system - You'd have to search for help on that one!

regards

John
 
Old 07-29-2003, 11:45 PM   #11
Netforce
LQ Newbie
 
Registered: Jun 2003
Location: canada, ontario
Posts: 19

Original Poster
Rep: Reputation: 0
# grub.conf generated by anaconda
#
# Note that you do not have to return grub after making changes to this file
#notice: you have a /boot partiton. this means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.zpm.gz
title Red Hat Linux (2.4.20-18.9)
root (hd0,0)
kernel /vmlinuz-2.4.20-18.9 ro root=label=/
initrd /initrd-2.4.20-18.9.img
tite Redh Hat Linux (2.4.20-8)
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=label=/
initrd /initrd-2.4.20.-8.img
title windowsxp
rootnoverify (hd1,0)
chainloader +1
 
Old 07-30-2003, 06:21 AM   #12
Netforce
LQ Newbie
 
Registered: Jun 2003
Location: canada, ontario
Posts: 19

Original Poster
Rep: Reputation: 0
ok there is my grub conf file
 
Old 07-30-2003, 09:13 AM   #13
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
also login as root and type
fdisk -l
and post that
 
Old 07-30-2003, 09:32 AM   #14
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Try the following code:
Code:
title windowsXP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1
If that does not work, then you will have to switch your hard drives.
Make WindowsXP the primary hard disk.
Then install GRUB on the primary HD.
 
  


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
yoper install fail on dual boot win-linux system coz `linux partition not found` coolview210 Yoper 5 11-24-2004 02:04 PM
installing win xp on a linux system iam whoiam Linux - Newbie 3 09-23-2004 07:17 AM
linux running off of win system Lost_linux_Noob Linux - Newbie 5 10-10-2003 09:21 PM
A routing Linux to win system problem jarethfox Linux - Networking 2 08-03-2003 09:08 PM
Three-boot system Win XP - Linux RH - Free BSD does not work tuanito *BSD 6 02-24-2003 04:16 AM

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

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