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 05-24-2004, 06:21 AM   #1
henrylam
LQ Newbie
 
Registered: May 2004
Location: sydney
Distribution: redhat linux 8.0
Posts: 7

Rep: Reputation: 0
windows xp partition


hi:

I used to have winxp on my computer. During the installing process of
rht linux9 i select the wrong option and delete the existing winxp and its partion now left only the linux in computer.

Question are
1=> how to dual boot winxp.
2=> do I have to partition the hardisk
3=> if so what to do

thanks for your help
 
Old 05-24-2004, 07:10 AM   #2
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
1=> how to dual boot winxp.

YouŽd better install first win, and then, linux. Linux is more able to detect prior OSes (and treat them well).

2=> do I have to partition the hardisk

Most lilkely, yes. But post here the detailed layout of your harddisks now, how much disk space is there, so we can be more accurate.

3=> if so what to do

In my opinion, you should install win (removing the current linux) and then install again linux. But take care, and backup data before.

******
Edit: to do the number 2, post here the output of the commands "df" and
"cat /etc/fstab"

Last edited by bruno buys; 05-24-2004 at 07:12 AM.
 
Old 05-24-2004, 07:16 AM   #3
drowstar
Member
 
Registered: Apr 2004
Location: Germany
Distribution: Slackware, Gentoo, Fedora
Posts: 205

Rep: Reputation: 30
Hi henrylam,
I am sorry that you wiped your system accidentally.

Let me answer your questions first:
I) how to dual boot winxp.
When you have windows installed and try to install linux it will probably ask you whether you want to keep your existing windows xp (I dont know about your particular case, but it should be somewhere around the "partition" part of the installation process). This is where you need to be careful to select the right option, most of the time the standard option is to overwrite any existing operating system on the computer (because, simply, that's the easiest and most secure setup).

II) do I have to partition the hardisk
One word: Yes.
I explain what you need to do below.

III) if so what to do
Here it goes:
This is a basic guide to installing that might be useful (be aware that every system and as such every installation is different. Be flexible.).
1) You need to partition your disk to make room for both your OSes. You have to decide, if you want to start over (i.e. delete your existing linux partition) or try resizing existing partitions to make room for windows. I dont know about the capabilities of the included partitioning tools, they might be able to do the job. It is definitelly easier to just start over. (Anyways, you are kind of lucky that windows is gone, that makes it easier compared to if you had to resize your windows partition)
If you dont have other programs (think partition magic), you can use the install disk. Make sure to have at least the following configuration:
- At the start of one disk a NTFS partition that is large enough to house your XP installation. (I am not sure if it needs to be a the start of a disk. It certainly works this way. I seem to recall something about windows reformating the drive during install)
- One reiserfs or ext3fs or whatever else linux partition you would like. (this is where at least comes into play. you can also create separate partitions for your home directory, or your boot partition, or if you want to store data on another drive, or ...)
- one swap partition (roughly double the size of your ram; you can go with this value or read up on swap space on the internet. you should be fine with this value though)
When you are done partitioning, be sure not to procede with the (linux) installation. If you set linux up first and windows screws it up (happened before, you know ), you are stuck with doing it all over. So, reboot, if you dont have reason to disagree with me (which you are of course always free to do).
3) Put in your windows xp installation disk and install xp (there should not be any problems if your ntfs partition is at hda1).
4) When xp is set up (not going to explain that, thank you ). Boot your installation disk again.
5) MAKE SURE NOT TO OVERWRITE XP AGAIN. Instead choose advanced options, when you are prompted with several choices. It will probably offer you at some point to not partition your drive and let you choose what partition to use for what purpose. (it may be called partitioning though. Make sure to NOT let it write the partition table. This may be harmless, but it is certainly not necessary).
6) Chose / for your primary linux partition (the largest one, probably. Your home partition may be larger (/home), if you have chosen to create one) and tell install, where to put your other partitions (again, if you made any, aside from the main and swap partitions). Also, make sure your swap partition is recognized.
7) Proceed with installation. There should be no problems from here on. What you have left to do is select what software you want to have installed on your system (most linux distros come with huge amounts of software) and set up users. Basically its about answering easy questions (dont be offended, if they seem hard nonetheless. Going with defaults will not give you a system that is perfect for you, but it will work)

I hope this has helped you!
Good luck, post back if you require further assistance,
- drowstar

Most of the above was taken from a previous post by me.
 
Old 05-25-2004, 09:04 AM   #4
henrylam
LQ Newbie
 
Registered: May 2004
Location: sydney
Distribution: redhat linux 8.0
Posts: 7

Original Poster
Rep: Reputation: 0

Hi Bruno:

Here is the output:

[henry@localhost henry]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 57075548 2520316 51655904 5% /
/dev/hda1 101089 9171 86699 10% /boot
none 127632 0 127632 0% /dev/shm

[henry@localhost henry]$ cat /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
[henry@localhost henry]$

 
Old 05-25-2004, 05:01 PM   #5
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
Hi, Henry! Sorry for the delay.

I assume that your aim is to dualboot winxp and redhat in a 60GB disk, right? You decided to remove the current linux, install xp and then reinstall linux? If it is wrong, let me know.

Also, tell me what kind of use do you plan to do of this computer, and which programs you want to install in win and linux, so we can supply enough diskspace for each system and partitions.

I was writing this answer, but it grew too long. I'll post it soon, but if you give me these details, I can brief it a little.

Cheers!
 
Old 05-25-2004, 05:11 PM   #6
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
drowstar's advice is good. To summarize: you will need to repartition your hard drive. Decide how much space you want to use for XP and how much for Linux, then allocate the space accordingly. Note that for Linux you will need to create at least 2 partitions, one for swap (I'd recommend 256Mg max regardless of the amount of RAM you have) and the rest for / (note of course that you can create separate partitions for /home, /usr/, etc.) Install XP first then Linux.

This question is quite common and you can easily find numerous posts about solutions here at LQ. Good luck with the project -- J.W.
 
Old 05-25-2004, 07:47 PM   #7
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
Here you go:

1. Remove the current partitions.
2. Create a new layout for the hd.
3. Install xp.
4. Install redhat.

By these lines
/dev/hda2 57075548 2520316 51655904 5% /
/dev/hda1 101089 9171 86699 10% /boot
/dev/hda3 swap swap defaults 0 0
we can see that there are three partitions on your current setup. There's nothing wrong with it, but if you can easily backup data (say, burning to a cd) I suggest you do a very clean install, by removing them all. Also, if you maintain this layout, xp won't install. First backup every important file inside the computer, and remove these partitions.

1. Removing partitions:

I unearthed my redhat 9.0 install set here, and I could check that the installer gives you the option to launch disk druid and do a manual partitioning. It's not difficult, if you wanna try.
When the redhat cd enters disk druid, you can choose the manual partitioning with diskdruid and be given full editing power over the current hd layout. Then, you remove the current partitions and make sure the program did delete'em, instead of just scheduling a deletion.

***If removing partitions is a problem, let me know***

2. Creating a new layout:

Creating the new layout will be done with disk druid, in the same open session. Here, we have to decide how much disk space you will provide for redhat and xp. I would suggest something like this (just a suggestion):

First part. hda1 (primary): Will receive winxp. Size: ~10GB. FS: fat32.
Second part. hda2 (primary): will be root for redhat. Size: ~10GB. FS: ext3.
Third part. hda3 (swap): swap for redhat. You can follow JW's advice on swap.
Fourth part. hda4 (data): data partition, for both systems. FS: fat32 (both lin and win will have read-write access). Size: ~40GB.

This layout is quite generous for both systems. You can install xp programs in hda4, if you wish. Notice that xp (as far as I know) won't access the linux ext3 partition, so you will work your data in hda4.

In disk druid, just use the buttons and create the new partitions. You only have to create / and swap, as JW already said. All the others listed in disk druid will be created as dirs under /. After creating partitions with disk druid, click Next in the redhat installation. Make sure diskdruid actually partitioned and formated your disk, and when the install program steps the next task, say, choosing packages, you can safely reboot (yes, abort the install process) the machine.


3. Install xp.

Xp will boot and see that you have a first primary fat32 partition and will ask if you wanna install there. You say yes. The rest of the install process should be standard.
If xp asks you to format the partition with ntfs, you'd better not. Lin can access a ntfs partition read-only, only. But if you prefer, it's ok, too.

4. Install redhat.

Redhat will boot and see that you have a second primary ext3 partition and ask you if you wanna install there. You say yes. Redhat will follow the interview-style install, ask several things, choose packages, etc (you are familiar with, right?) and in the end, will record a bootloader on your master boot record. This is generally a safe procedure, although I seen much people here saying this can be undesirable.... I never had problems myself, with grub or lilo.

After all, you have both systems working. you should access hda4 and work with your folders and data from both systems.

Post again, please, if is there any problem!
Cheers!

Last edited by bruno buys; 05-25-2004 at 07:51 PM.
 
Old 05-25-2004, 08:07 PM   #8
henrylam
LQ Newbie
 
Registered: May 2004
Location: sydney
Distribution: redhat linux 8.0
Posts: 7

Original Poster
Rep: Reputation: 0
Hi Bruno:

Yes, I want to get rid of redhat linux 9 then install new copy of winxp and redhat linux 9.

My computer is P4 2.3
DEVICE
1 => 2 button usb mouse
2 => epson stylus photo 810
3 => keyboard
4 => logethic camera

=====================================================

Here is my plan
FOR WIN
1 => dev c++ compiler
2 => ms office xp
3 => some game
FOR LINUX
1 => some programming tool
2 => some program can run *.exe

=====================================================

Thanks for your help

Last edited by henrylam; 05-25-2004 at 08:11 PM.
 
Old 05-25-2004, 09:07 PM   #9
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
Did you see post # 7?

I guess 10GB is quite good for both systems, as you will not install any disk-intense apps. Besides, you can use hda4 for winxp's apps. You can even tell xp to store "documents and settings" in that partition, if I remember well.

Do you believe you can go trough all the process with confidence? Do not hesitate to post again, if you need. A good installation is worth doing, as it saves lots of further headaches....

Last edited by bruno buys; 05-25-2004 at 09:11 PM.
 
Old 05-26-2004, 04:17 AM   #10
drowstar
Member
 
Registered: Apr 2004
Location: Germany
Distribution: Slackware, Gentoo, Fedora
Posts: 205

Rep: Reputation: 30
Partitioning guide in the wiki?

Hello everybody,
hopefully you are still watching this thread.

There's an idea that I wanted to discuss with you before I start working on it:
In my relatively short time at linuxquestions I have seen this and very similar questions asked numerous times and a search turns up a huge amount of questions related to winxp and linux on one drive as well as what to do to shrink a winxp installation and so forth.
Also, I noticed that the installation guide in the wiki seems to assume that there is no other operating system present on the system.

What do you guys think: Should I work the content of this thread (and so many others) into a guide and post it to the wiki? do you think there is demand for it?
where do you think this should go (I propose here as a new item between 2 and 3)?
And finally, should it be about xp only or are there enough people that would be wanting to keep win9x?

Thanks a lot for your opinion,
- drowstar
 
Old 05-26-2004, 04:22 AM   #11
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Quote:
Hello everybody,
hopefully you are still watching this thread.

There's an idea that I wanted to discuss with you before I start working on it:
In my relatively short time at linuxquestions I have seen this and very similar questions asked numerous times and a search turns up a huge amount of questions related to winxp and linux on one drive as well as what to do to shrink a winxp installation and so forth.
Also, I noticed that the installation guide in the wiki seems to assume that there is no other operating system present on the system.

What do you guys think: Should I work the content of this thread (and so many others) into a guide and post it to the wiki? do you think there is demand for it?
where do you think this should go (I propose here as a new item between 2 and 3)?
And finally, should it be about xp only or are there enough people that would be wanting to keep win9x?

Thanks a lot for your opinion,
- drowstar
Haven't read the installation guides in the wiki but I'd say go for it, and yeah would be nice if you include win9x as well.
 
Old 05-26-2004, 07:49 AM   #12
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
Yes, 98 is good choice.
Good luck!
 
  


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
moving files from windows partition to linux partition M O L8ingN2dust Linux - Newbie 11 01-08-2006 09:11 PM
How can I access files in my Windows 98 partition from my Linux partition, /w BASH? Fabyfakid Linux - Newbie 4 09-17-2004 11:05 PM
I want to increase my Linux partition.Should I take space from a Windows partition? PrinceBalak Linux - General 1 06-25-2004 05:44 PM
What is the code to copy a file from my windows partition to my linux partition? THEBIGFISH Linux - Newbie 3 03-15-2004 10:14 PM
How do I install slackware on a partition made by partition magic in windows bling bling Slackware 4 06-28-2003 11:16 PM

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

All times are GMT -5. The time now is 03:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration