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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-04-2005, 08:40 AM
|
#1
|
LQ Newbie
Registered: Nov 2004
Location: Bulgaria
Posts: 8
Rep:
|
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!
|
|
|
01-04-2005, 08:55 AM
|
#2
|
Member
Registered: Feb 2004
Location: Southampton, England
Distribution: Laptop:Gentoo-i686-2.6.9-r9 Desktop:Slackware10 2.4.26
Posts: 298
Rep:
|
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.
|
|
|
01-04-2005, 08:59 AM
|
#3
|
Senior Member
Registered: Oct 2003
Posts: 3,057
Rep:
|
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
|
|
|
01-04-2005, 09:39 AM
|
#4
|
Member
Registered: Feb 2004
Location: Southampton, England
Distribution: Laptop:Gentoo-i686-2.6.9-r9 Desktop:Slackware10 2.4.26
Posts: 298
Rep:
|
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?
|
|
|
01-04-2005, 10:09 AM
|
#5
|
LQ Newbie
Registered: Nov 2004
Location: Bulgaria
Posts: 8
Original Poster
Rep:
|
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...
|
|
|
01-04-2005, 11:27 AM
|
#6
|
Member
Registered: Feb 2004
Location: Southampton, England
Distribution: Laptop:Gentoo-i686-2.6.9-r9 Desktop:Slackware10 2.4.26
Posts: 298
Rep:
|
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)
|
|
|
01-05-2005, 07:38 AM
|
#7
|
LQ Newbie
Registered: Nov 2004
Location: Bulgaria
Posts: 8
Original Poster
Rep:
|
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!
|
|
|
01-05-2005, 08:50 AM
|
#8
|
Senior Member
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100
Rep:
|
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
|
|
|
01-05-2005, 08:57 AM
|
#9
|
Member
Registered: Feb 2004
Location: Southampton, England
Distribution: Laptop:Gentoo-i686-2.6.9-r9 Desktop:Slackware10 2.4.26
Posts: 298
Rep:
|
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?
|
|
|
01-05-2005, 09:51 AM
|
#10
|
LQ Newbie
Registered: Nov 2004
Location: Bulgaria
Posts: 8
Original Poster
Rep:
|
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!
|
|
|
01-05-2005, 10:57 AM
|
#11
|
Senior Member
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832
Rep:
|
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/
|
|
|
01-05-2005, 01:25 PM
|
#12
|
Member
Registered: Feb 2004
Location: Southampton, England
Distribution: Laptop:Gentoo-i686-2.6.9-r9 Desktop:Slackware10 2.4.26
Posts: 298
Rep:
|
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.
|
|
|
01-08-2005, 01:30 PM
|
#13
|
LQ Newbie
Registered: Nov 2004
Location: Bulgaria
Posts: 8
Original Poster
Rep:
|
Nice
It really works..
It's a little bit strange and tricky, but it works!
Thanks!
|
|
|
All times are GMT -5. The time now is 09:41 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|