LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-2009, 02:09 AM   #1
eesiva
LQ Newbie
 
Registered: May 2009
Location: Bangalore
Distribution: RHEL5.3
Posts: 11

Rep: Reputation: 0
Installing Windows over linux


Hai does anybody know how to install windows over linux(dualboot)
i have installed RHEL5.3 and when i insert the windows cd and restart just a black screen appears...
i want to know how to partition linux to install windows?
 
Old 05-24-2009, 03:07 AM   #2
baig
Member
 
Registered: Nov 2008
Location: وادی ھنزہ
Distribution: Solaris 5.10, Debian Server 5.2, CentOS 5.6
Posts: 226
Blog Entries: 3

Rep: Reputation: 38
If you have installed Linux with default layout. Then am afraid your linux OS has utilized all HD. If that's the case you will have to repartition your HD.

For example:

if your HD is 80 GB, Use a partitioning utility like fdisk to make C,D drives for your windows xp and leave unpartitioned space for Linux.Then install your xp on your previously partitioned drive first(if you install linux then after installing Xp your MBR will be over written and you will have to repair). and then install linux choosing "Use free disk space option from installation Disk Durid utility).

The easiest option to install windows is to install it as guest operating system on Linux using Virtualbox.



Cheers!!
 
Old 05-24-2009, 04:36 AM   #3
eesiva
LQ Newbie
 
Registered: May 2009
Location: Bangalore
Distribution: RHEL5.3
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks for ur reply!!! baig...
but i want to dual boot the system...
and could u describe the steps here...
 
Old 05-24-2009, 05:08 AM   #4
baig
Member
 
Registered: Nov 2008
Location: وادی ھنزہ
Distribution: Solaris 5.10, Debian Server 5.2, CentOS 5.6
Posts: 226
Blog Entries: 3

Rep: Reputation: 38
I hope you have some basic knowledge of installing any OS.

Possible Steps are as following:

1. Boot with a partitioning utility form your startup.
2. Repartition your HDD. Leave desired free space unpartitioned for Linux OS.
3. Once repartitioning is done, simply insert your xp cd and install windows OS.
4. Once your are done with w$n installation, Insert your Linux Distribution CD/DVD and enter into installation setup as directed.
5. Go through the screens and give answers to few questions.
6. When asked for "Partition used for Linux OS" select "Use Free Space with default output" option and click next
7. Select your Gui "Gnome or KDE" and other programs if installing from a DVD. else i will install you the default installation from CD.

8. Once installation is completed and your computer reboots, now you should have Grub/Lilo OS selection screen on start up. form there you can choose what to boot either Linux or windows.



Cheers!!
 
Old 05-24-2009, 05:21 AM   #5
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Use linux fdisk to partition the drive in to required partitions and then install linux and windows together in a single system.
 
Old 05-24-2009, 05:28 AM   #6
eesiva
LQ Newbie
 
Registered: May 2009
Location: Bangalore
Distribution: RHEL5.3
Posts: 11

Original Poster
Rep: Reputation: 0
hi baig...
once again thanks for ur reply...


but i have installed linux already...
can i partition now and install windows w.o. affecting linux...
is there any partition tool with which we can partition within linux and reboot to get windows installed(with win cd inserted)...?
 
Old 05-24-2009, 06:34 AM   #7
pierre2
Member
 
Registered: May 2009
Location: Perth, AU
Distribution: LinuxMint
Posts: 388
Blog Entries: 9

Rep: Reputation: 88
Quote:
but i have installed linux already...
you will still have to supply a partition for M$ if there is not one already.
preferably place it 1st on the drive, in front of the existing lnx partition.

then install M$ with your M$ cd - the lnx will now fail to boot, as the M$ will
overwrite the mbr of the hdd.

you will now need to re-install grub, from the live cd of your current lnx O/S.

then, you will be able to dual-boot.
 
Old 05-24-2009, 07:12 AM   #8
eesiva
LQ Newbie
 
Registered: May 2009
Location: Bangalore
Distribution: RHEL5.3
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pierre2 View Post
you will still have to supply a partition for M$ if there is not one already.
ok fine... tell me the steps to create M$ partition...
 
Old 05-24-2009, 09:14 AM   #9
NeddySeagoon
Gentoo support team
 
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 41
eesiva,

You can shrink an existing partition to make space for Windows but ...
a) you may loose you data in the process
b) Windows must be installed on one of the first four partitions.
that can reduce your options for installing Linux then Windows.

Back up any data you want to save from Linux.
Install Windows but manually partition the drive, leaving space for Linux.
Now install Linux into the space you reserved when you installed Windows.
At this point, you have Linux installed and booting and Windows installed but it may not be bootable

Fix your grub.conf to boot Windows too.
 
Old 05-24-2009, 02:05 PM   #10
eesiva
LQ Newbie
 
Registered: May 2009
Location: Bangalore
Distribution: RHEL5.3
Posts: 11

Original Poster
Rep: Reputation: 0
i want to know how to install windows over linux
now i don care abt data..
so if there is a way anybody please describe it in detailed steps...



Regards,
Siva T
 
Old 05-24-2009, 02:52 PM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
so you want to get ride of red hat and have a MS windows ONLY computer .
if that is the case then use Gparted live cd to reformat the drive to ntfs OR blank -- no formating .
then insert the xp cd ( or vista) and install .
 
Old 05-24-2009, 09:57 PM   #12
eesiva
LQ Newbie
 
Registered: May 2009
Location: Bangalore
Distribution: RHEL5.3
Posts: 11

Original Poster
Rep: Reputation: 0
no john...
i was just asking these things for learning purpose...
i want to know whether it is possible to install windows over linux or not...
i am learning for RHCE... though it is an unnecessary ques for RHCE i like to know this for learning purpose...
so anybody guide me if u can....
 
Old 05-24-2009, 11:24 PM   #13
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
yes it is possible BUT MS Windows DOSE like to be on the FIRST partition of the FIRST drive .
there is a way to fool Windows into thinking it is , when in fact it is not . But that can be a pain to set up sometimes .
Also seeing as windows likes to turn EVERYTHING into a "ntfs" formated MS only computer . That is the defult settings on the install cd's .
The recommended way is to install Windows FIRST( in the first partition on the first drive) then to install Linux or Unix or Mac .
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
installing windows on dual boot system with fedora linux and windows xp vaishalicoep Linux - Newbie 2 04-23-2009 05:11 AM
installing dual boot (linux and windows)without corrupting windows anirudh.iitm Linux - Newbie 7 06-30-2006 02:16 PM
Installing Windows after installing LINUX brads@kwlink.com Linux - General 4 01-08-2006 10:03 AM

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

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