LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-04-2005, 08:40 AM   #1
The Professor
LQ Newbie
 
Registered: Nov 2004
Location: Bulgaria
Posts: 8

Rep: Reputation: 0
Linux and Windows XP on one hard drive question


Hi there,

I'm new to Linux, and i've encountered this problem:

I've installed Fedora Core 3, and left some space for Windows XP instalation.
How I create my patitions:

/dev/hda
/dev/hda1 /boot
/dev/hda2 /home
/dev/hda3 /wxp #the place where I've installed "XP" later
/dev/hda4
/dev/hda5 /
/dev/hda6 swap
/dev/hda7 /store
After the installation of Fedora, i've installed "XP" on the partition /wxp. I've tried some configurations for GRUB, to load "XP" but none of them worked..
My questions is:
How do I configure GRUB, so that I'll be able to load Windows XP?

Thanks in advance!
 
Old 01-04-2005, 08:55 AM   #2
0pal_t0ad
Member
 
Registered: Feb 2004
Location: Southampton, England
Distribution: Laptop:Gentoo-i686-2.6.9-r9 Desktop:Slackware10 2.4.26
Posts: 298

Rep: Reputation: 30
you need to edit /boot/grub/grub.conf
and add the following:

title Windows
root (hd0,2)
chainloader +1

#sorry dude! i changed it from (0,4) to (0,2)

Last edited by 0pal_t0ad; 01-04-2005 at 09:22 AM.
 
Old 01-04-2005, 08:59 AM   #3
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Normally, it's a whole lot easier to put Windows on the first partition of the first drive. Since this is a new install and you need the practice, I recommend that you Scrub that FC3 install and create your empty partition at /dev/hda1. Then you can go ahead and install FC3 on any remaining partitions.
If you do it this way, it is easy to get Windows in the boot menu by adding a line like this to the /boot/grub/grub.conf like this......
title Windows
rootnoverify (hd0,0)
chainloader +1
 
Old 01-04-2005, 09:39 AM   #4
0pal_t0ad
Member
 
Registered: Feb 2004
Location: Southampton, England
Distribution: Laptop:Gentoo-i686-2.6.9-r9 Desktop:Slackware10 2.4.26
Posts: 298

Rep: Reputation: 30
grub has a strange way of ID'ing partitions(dejavu!!!! )
basically /dev/hda1 to grub would be (hd0,0),
/dev/hda2 -> (hd0,1),
/dev/hda3 -> (hd0,2)
/dev/hdb2 -> (hd1,1) hdb2 being the second partition on a second drive
and so on.
no offense to Homey, but i think you'd learn more by understanding why/how grub works.

just as a matter of interest....what're u using hda4 for?
 
Old 01-04-2005, 10:09 AM   #5
The Professor
LQ Newbie
 
Registered: Nov 2004
Location: Bulgaria
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by 0pal_t0ad

title Windows
root (hd0,2)
chainloader +1
I' tried, and i get strange symbols + the computer doesn't load my "XP".
Am I missing something?

Referring practice.., i've configured many other things in my Linux BOX, so i don't want to reinstall, but if it's necessary..

In my first post I've entered the tree as it was in my installation screen in the disc druid... so /dev/hda4 is.. I''m not sure how to interpret this...
 
Old 01-04-2005, 11:27 AM   #6
0pal_t0ad
Member
 
Registered: Feb 2004
Location: Southampton, England
Distribution: Laptop:Gentoo-i686-2.6.9-r9 Desktop:Slackware10 2.4.26
Posts: 298

Rep: Reputation: 30
i got mixed up between booting linux and win. 'root' is for linux and 'rootnoverify' is for windows.
here's what mine looks like:

title=WinXP
rootnoverify (hd0,5)
makeactive
chainloader +1

but obviously u must change (hd0,5) to (hd0,2)
 
Old 01-05-2005, 07:38 AM   #7
The Professor
LQ Newbie
 
Registered: Nov 2004
Location: Bulgaria
Posts: 8

Original Poster
Rep: Reputation: 0
Nope, it doesn't work.. I still get some strange symbols, and the computer stops loading...

Maybe i haven't describe what have i done by now..
Here it is again:
I've installed Fedora Core 3, and i left some space for Windows XP installation.
Then I tried to install XP, but it said that it must have at least ~500 MB to store the installation files, so the installer had quit!
There was another solution - I took one old hard drive ~ 3G and installed XP on it, then I made my primary hard drive a slave, and using the "old" hard i've manage to install XP on the partition /wxp of my primary hard drive(which was a slave at that time..). So at the end the situation was as follows:
I have one hard drive ~3G with Windows XP and one hard drive 80G with Fedora core 3(there is a partition with Windows XP - the same which i can't load..)

My question is, again:
How do I configure GRUB(and are there any other files/configurations to copy/make) to load my WIndows XP(the one on my 80G hard drive)?
Maybe I should copy some files from the 3G hard to the 80G one?
If you have any fresh suggestions, please reply!
Thanks for your help and your quick response!
 
Old 01-05-2005, 08:50 AM   #8
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
One possible problem I see is that you used the Fedora Core installer to create a windows partition. That is "possible" if you told FC to format the partition with FAT, FAT32 or a window$ supported file system. If you made all your partitions with ext2, ext3 or reiser filesystems, then window$ will not be able to install, as it can't "see" the free space.

Also, as people have told you already, it is many times easier to install window$ first and then put linux on a single drive system. I would expect with enough research and understanding you could get away with installing Redmond's worst second, but I'll bet you'll have to have a boot disk or something for linux, because the XP install will probably trash your lilo or grub.

A possible solution - if you still want to try doing in reverse the usual order, you can use fdisk to convert your 80 gig space into fat32 filesystem. Both windows$ and linux can read and write to it. When the XP installer wants to convert it to ntfs, just tell it no, leave the filesystem as fat32. You still might have problems with your bootloader getting screwed up, and will only be able to boot into XP, but you can solve that with a rescue disk or boot disk.

Peace,
JimBass
 
Old 01-05-2005, 08:57 AM   #9
0pal_t0ad
Member
 
Registered: Feb 2004
Location: Southampton, England
Distribution: Laptop:Gentoo-i686-2.6.9-r9 Desktop:Slackware10 2.4.26
Posts: 298

Rep: Reputation: 30
MYGAAWWWWD!!! are u TRYING to confuse me?

where did the 3gb drive come from all of a sudden??
let me see if i get what ur saying... you installed linux on the 80gb which was master at the time. then the windows install failed so u moved the 80gb to slave and put a 3gb as master and installed XP to it.
that CAN'T be right 'cos grub would be installed on the 3gb.

when you said that u left 'some' space for XP, how much did you leave?
 
Old 01-05-2005, 09:51 AM   #10
The Professor
LQ Newbie
 
Registered: Nov 2004
Location: Bulgaria
Posts: 8

Original Poster
Rep: Reputation: 0
Not at all.. I'm just trying to explain my problem more clearly..

This 3G hard drive wasn't present when I installed FC3. I used it just to point Windows installation what I have enough space, and to be able to install "XP" on my 15G partition(which i left for "XP" when installing FC3).
You get it , but maybe you are a bit lost in my explanations.. so lets try again..:
1. Install FC3 on 80G hard drive. Partitions as follows:
/dev/hda
/dev/hda1 /boot #100MB
/dev/hda2 /home #15GB
/dev/hda3 /wxp #15GB, (partition formated vfat and left for Windows XP)
/dev/hda4
/dev/hda5 / #15GB
/dev/hda6 swap #512MB
/dev/hda7 /store #30GB

2.Unsuccessful try to install Windows XP - reason:"Windows need ~500MB bla bla, windows doesn't find enough space, install will exit.. bla bla"
3.Inserting small ~3GB hard drive making it master and removing 80GB master;
4.Install Windows XP on 3GB drive.
5. Installing 80GB as a slave(3GB is the master)
6.Rebooting computer, and running XP from 3G drive - then I see the partition /wxp on the 80GB as a drive..I don't remember the letter..
6.Installing Windows XP on the 80GB on partition /wxp
7.Removing 3Gb drive and making 80GB drive master again..
8.Booting Linux, and trying to boot Windows XP but nothing happens..
9.Asking in linuxquestions.org for help..
10. Trying..Trying..Writing..Trying..Writing.. and so on and so on..
11.Help!
 
Old 01-05-2005, 10:57 AM   #11
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
Simple solution is GAG bootloader. Supports up to 9 OS. Try first safe variant to boot from floppy, if works then go for HD variant
http://gag.sourceforge.net/
 
Old 01-05-2005, 01:25 PM   #12
0pal_t0ad
Member
 
Registered: Feb 2004
Location: Southampton, England
Distribution: Laptop:Gentoo-i686-2.6.9-r9 Desktop:Slackware10 2.4.26
Posts: 298

Rep: Reputation: 30
try setting the rootnoverify part to (hd0,0) 'cos now that u've moved the 3GB to master linux should register it as hda and if there's only one partition on it, then it would be hda1.... it's amazing what a strong cup of coffee can do for u

or set the 80GB back to master and the 3GB to slave then rootnoverify should be (hd1,0)

'cos i think it's trying to boot from the XP partition on the 80GB which doesn't exist.
 
Old 01-08-2005, 01:30 PM   #13
The Professor
LQ Newbie
 
Registered: Nov 2004
Location: Bulgaria
Posts: 8

Original Poster
Rep: Reputation: 0
Nice
It really works..
It's a little bit strange and tricky, but it works!
Thanks!
 
  


Reply


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
Installing Windows Xp on another hard drive with Linux on another ronnie1kyazze Linux - Software 3 06-18-2005 12:28 PM
access linux hard drive from windows pcandpc Linux - Newbie 12 05-14-2005 04:41 PM
Accessing Linux hard-drive from windows sduffy89 Linux - General 3 08-30-2004 12:05 PM
Dual Hard Drive Windows/Linux inescapeableus Linux - Hardware 4 08-16-2004 02:28 AM
Running Windows Games In Linux From Windows Hard Drive Darkstar274 Linux - Games 2 12-25-2003 11:19 PM

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

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