LinuxQuestions.org
Register a domain and help support LQ
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, 03: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, 04: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, 05: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, 06: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, 06: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, 06: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, 07:34 AM   #7
pierre2
Member
 
Registered: May 2009
Location: Perth, AU
Distribution: LinuxMint
Posts: 364
Blog Entries: 8

Rep: Reputation: 84
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, 08: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, 10:14 AM   #9
NeddySeagoon
Gentoo support team
 
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 40
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, 03: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, 03:52 PM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,985

Rep: Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447
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, 10: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-25-2009, 12:24 AM   #13
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,985

Rep: Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447
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


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 on dual boot system with fedora linux and windows xp vaishalicoep Linux - Newbie 2 04-23-2009 06:11 AM
installing dual boot (linux and windows)without corrupting windows anirudh.iitm Linux - Newbie 7 06-30-2006 03:16 PM
Installing Windows after installing LINUX brads@kwlink.com Linux - General 4 01-08-2006 11:03 AM


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