Support both OSs: Dual boot Windows XP and Red Hat Linux 7.3

At a time when some organisations are investigating the possibility of running Linux instead of Windows on some or all of their desktops, support departments face the possibility of having to support both operating systems. While there are many ways to do this, one that I think works well involves installing both operating systems on a single machine and dual booting.

There are several reasons why it's a good idea. First, you're going to need a Linux machine to run tests on before rolling out Linux company-wide. Second, once Linux has been rolled out, you'll also need a machine that you can use for troubleshooting problems when they occur. Third, if your help desk has multiple techs, each will probably need its own Linux installation for troubleshooting purposes. To save money and space, you can use one machine to boot both OSs. Enter the dual-boot computer.

In this article, I'll explain how to configure a dual-boot Windows XP and Red Hat Linux 7.3 system.

The VMware option

I know what some of you are saying. Why not just run VMware? While VMware allows you to easily switch between multiple operating systems and perform routine tasks, a dual-boot computer works better for testing and troubleshootingââ,¬"especially when it comes to hardware. VMware also has issues with some Windows operating system features, which makes dual booting your only option.

What to do first?

This article assumes that you can wipe your machine clean and start fresh. If you can't, and you already have Windows loaded, you will need to purchase a program such as Partition Magic to free up enough space on the hard drive to install Linux. My test machine is a 1-GHz Pentium III with 192 MB RAM and 4 GB of hard drive space.

Loosely, the order of things will be as follows:

  • Install Windows XP Professional and give it 2.0 GB of space out of the 4 GB available.
  • Install Red Hat Linux 7.3 into the other 2 GB.

Simple, eh?

Installing Windows XP Professional

To dual boot, you can install Windows XP exactly as you normally would, while making sure to leave room for the Linux partition.

Installing Red Hat Linux 7.3

Once Windows XP is installed, you can install Red Hat Linux 7.3 by inserting CD One of three and letting it boot. Then, just follow the instructions on the screen. When it's time to partition the disk, I chose the default option to Remove All Linux Partitions On This System since I had no Linux partitions (see Figure A).

Figure A
Figure A
Choose an automatic partitioning option.

Choosing this option will give you a warning that all of your data is going to be removed from the Linux partition. Don't worry about this warning, because on a fresh system there is no data to be removed. On the next screen, the Linux installer breaks down the layout of the hard drive for you to look at (see Figure B).

Figure B
Figure B
Partition layout overview

At the top of the partition layout, you see that /dev/hda1 is of the type NTFS/HPFS. This is your Windows XP partition. Below that, there are four partitions for Linux. The first one is an ext3 partition labeled /boot. The ext3 type is the standard file system type for Red Hat Linux 7.3 and /boot is the name of the Linux boot partition. Next, there is another ext3 partition named /, which is the rest of the Linux file system. Finally, on an extended type partition, there is a swap partition, which every Linux system needs. After this step, you need to configure the Linux boot loader that is named GRUB.

GRUB will detect that there is already an OS installed in the master boot record and will give you on opportunity to configure it. This is a critical step. If you don't configure it here, you will have to manually edit the configuration files later. For my installation, I named the hda1 partition Windows XP and then clicked Next to continued to complete the installation by installing what I needed to run my system (see Figure C).

Figure C
Figure C
Boot Loader configuration

Rebooting

Once Linux is fully installed, the system will automatically reboot, and you will be greeted with the GRUB boot loader screen (see Figure D).

Figure D
Figure D
GRUB boot loader showing both operating systems

Choosing Windows XP from the list will start up Windows XP, as it should; choosing Red Hat Linux will start that OS instead. If you don't choose any OS selection, Red Hat Linux will start by default.

If you forgot the portion during setup where you needed to tell the system that you also have Windows XP, editing the file /etc/grub.conf and adding the information will do the trick for you. Since you first need to know where everything is (i.e., where the Windows XP partition resides, etc.), you can use the Linux fdisk command to view this. To use it, issue the command: fdisk /dev/hda

Once inside fdisk, issue a p command to print the partition table.

The contents of my /etc/grub.conf to dual boot the system are shown in Listing A.

You're good to go

When complete, you'll have a fully functional, dual-booting system with Windows XP and Red Hat Linux 7.3 residing on the same system. Running both operating systems on one machine will allow you to properly test the actual hardware on which you will be running Linux at a big savings.

TechRepublic is the online community and information resource for all IT professionals, from support staff to executives. We offer in-depth technical articles written for IT professionals by IT professionals. In addition to articles on everything from Windows to e-mail to fire walls, we offer IT industry analysis, downloads, management tips, discussion forums, and e-newsletters.

©2001 TechRepublic, Inc.

Talkback

I have two separate hard drives one is 20GB and the other is 60GB. I would like
to run Windows XP on one and Windows ME on the other. How can
I dual boot between the two?

I have not installed Windows XP yet. Your application looks very interesting.


Jim Switzer

jim.switzerjim.switzer November 21st, 2002
Report offensive content Reply (0) (0)

Is there any way to redefine the partitions on harddrives once an OS is installed. Can I repartition an existing drive to install a new OS?

Is it possible to do in WindowsXP without a program such as PartitionMagic

ghumpghump April 29th, 2003
Report offensive content Reply (0) (0)
Add your opinion

In order to post a comment, you need to be registered. (Sign In or register below)

Post your comment

Terms of Service - As a ZDNet registrant, and by using this service, you indicate that you agree to our Terms and Conditions and have read and understand our Privacy Policy.

ZDNet Australia Live

Refund for some Facebook investors http://t.co/tUUxRbJd

RT @zdnetaustralia: Is Windows Phone really the third challenger to Android and iOS? http://t.co/2V9xgN6d

Cloud inefficiency - Bad habits are hard to break | ZDNet http://t.co/j4pda3KC

30 servers to 7: BUPA redoes virtualisation http://t.co/EPL5pPpl via @zdnetaustralia

Refund for some Facebook investors http://t.co/TdKeV7y0

Research key to good apps: Westpac CIO http://t.co/tqHNyHs5

by http://t.co/vmlLt4bh: Refund for some Facebook investors: Morgan Stanley, the lead investment bank in Facebook... http://t.co/TZuND7bC

Refund for some Facebook investors: Morgan Stanley, the lead investment bank in Facebook's troubled initial publ... http://t.co/tmiz9zwu

Refund for some Facebook investors: Morgan Stanley, the lead investment bank in Facebook's troubled initial publ... http://t.co/g1t9N5Pb

IT Priorities: servers and storage http://t.co/E1U97jCk

RT @rladvisory: Video - Rob Livingstone @EVOLVECloud 'Getting cloud adoption right' - @zdnetaustralia http://t.co/G6GwvJCp http://t.co/nJrIY3vA @rladvisory

What's happening now with storage and servers? We delved into the area in our IT Priorities webinar series. http://t.co/XmLAsln8 ^ST

RT @rladvisory: ZDNet Video of my recent Executive Keynote presentation delivered at the EVOLVE.Cloud conference entitled...: http://t.co/2h9hEno2

IT Priorities: servers and storage: In November 2011, ZDNet Australia published the results of its IT Priorities... http://t.co/uOxpN90t

IT Priorities: servers and storage http://t.co/iQ6oT7qe

Accelerator targets 'clean-tech' start-ups http://t.co/8kGTxJGp via @zdnetaustralia

Westpac board goes paperless with iPads http://t.co/kdm26Ewr via @zdnetaustralia

Cloud TVRs stop in wake of TV Now ruling http://t.co/2hLRUvt6 via @zdnetaustralia

RT @WauloK: Two cloud-based TV recording services have been suspended after Optus TV Now. http://t.co/VomMRrRs // @techwebcast Beem is dead.

ZDNet Patch Monday ep137 - Removing the anonymity from Anonymous: http://t.co/E6Tn8vJr

ZDNet Patch Monday ep138 - Anonymous 'crippled': where to for hacktivism?: http://t.co/lbKew6Bo

ZDNet Patch Monday ep139 - War talk dominates AusCERT 2012: http://t.co/rUm22Zjm

ZDNet Patch Monday ep135 - iiNet wards off AFACT, but what next?: http://t.co/0xVdYm6i

ZDNet Patch Monday ep136 - Blackhole crimeware as a service here to stay: http://t.co/evnCUlsX

GoogleTV will revolutionize television once viewers understand it http://t.co/c4lEyb3a

Reading this article is like stepping back in time. If I was Paul Berryman I would hang my head in shame. How embarrassing!!! I can’t b...

1 hour ago by MikeSkoey on 30 servers to 7: BUPA redoes virtualisation

Phone cloning, maybe, but bill duplication? Tech-heads give verdict
http://t.co/aw5SNigN
#ozpolitics

The registration sticker provided a visual reminder to the driver to renew regardless of what happened to the renewal letter. The experie...

2 hours ago by dccharron on NSW ditches rego stickers for tech

"xfire: Why is telecommunications being treated different to roads, water and electricity?" Good question, my guess is AUS is far behind...

2 hours ago by ngoctranminh on Five pros and cons of the NBN

“@zdnetaustralia: Is Windows Phone really the third challenger to Android and iOS? http://t.co/Tr7ASra0 ”. It's different but fast and good

Can HP bounce back? http://t.co/TSlWjmrA

Thanks for the response Luke, Given that the quotes are accurate, then the person in charge of the Vic Health App needs to find another j...

2 hours ago by butterflyeffecs on Android fragmentation steers Vic Health

Social business in Australia http://t.co/aBuXFy40 . Australian businesses still laging behind with social business. Time to catch up!

Can Windows Phone bring a new challenge? #WindowsPhone http://t.co/m82nU7hK

Nice analogy. Another factor is whether you can find 50 people with powerful enough weapons. Minassian's argument is essentially that the...

2 hours ago by Mukimu on National Botnet Network coming: Earthwave

RT @digitaltasmania: @ZDNetAustralia #NBN's Tassie upgrade to cost $1.3m http://t.co/1nTbLUJv -Countdown begins for 1st Oppn. MP to misconstrue per unit cost

@ZDNetAustralia #NBN's Tassie upgrade to cost $1.3m http://t.co/1nTbLUJv -Countdown begins for 1st Oppn. MP to misconstrue per unit cost

RT @mosfreshmedia: Start-up accelerator targets cleantech 'Atlassians, BigCommerce' via @zdnetaustralia http://t.co/oho3oQSK @atpinnovations @hamishhawthorn

Can #HP bounce back?: HP's move to cut 27,000 jobs, reinvest in research and development (R&D) and generally get... http://t.co/dlgAhwxb

Can HP bounce back? http://t.co/qLlHB5FV

It's nice to see Tas finally get some decent internet connectivity, for too long Tas has been stooged on decent internet connectivity but...

2 hours ago by Jingles on NBN's Tassie upgrade to cost $1.3 million

Who is Luke Hartsuyker? He must be the Apprentice FUDster. As PaulPC has already said regional consumers want, deserve and are entitled...

3 hours ago by dickster on Regional review highlights NBN, mobile

Its good to see the NBN keeping up with the latest equipement & letting the people benefit from it. After all thats why it was a trial, ...

3 hours ago by fibretech on NBN's Tassie upgrade to cost $1.3 million

Shadow Minister for Regional Communications Luke Hartsuyker has got it wrong. Regional consumers want improved mobile services AND the NB...

4 hours ago by PaulPC on Regional review highlights NBN, mobile

Just remember that Google haven't broken any laws here, they're just doing what all their other multinational competitiors do; minimise t...

4 hours ago by Pachanga on Much ado about Google's tax

ルイヴィトン バッグ : http://www.lovebagjp.com/ Louis Vuitton bags, Louis Vuitton pretension nose about,Louis Vuitton daydre...

5 hours ago by bundLourb on Reservoir blogs: Fan fakes Tarantino diary

シャネル バッグ : http://www.bagssalejp.org/ Chanel trap,chanel shekels,gucci bags,direct purse,poor recent Louis Vuitton keep...

7 hours ago by bybrinkLync on Reservoir blogs: Fan fakes Tarantino diary

I guess but in both cases, dead body!

17 hours ago by Doubt on National Botnet Network coming: Earthwave

I think it's for the very reasons you mention in your first paragraph that there is no CBA. With the ideological differences and vested ...

17 hours ago by RealismBias on NBN cost-benefit analyses are so 2011

Good points; but how do you establish consensus about the terms of reference of a cost-benefit analysis? What is to be included? How far ...

17 hours ago by Gwyntaglaw on NBN cost-benefit analyses are so 2011

I live in a small country town & have done since 2002. When I got to this town it had no mobile phone & no broadband. The only reason w...

18 hours ago by fibretech on Regional review highlights NBN, mobile

Hi there, just became alert to your blog through Google, and found that it is really informative. I am going to watch out for brussels. I...

18 hours ago by Uttedsips on Fujitsu Stylistic ST5011

Like most things in life, the devil is in the details. If a cost benefit analysis included a societal element, I'm certain nobody on eit...

18 hours ago by RealismBias on NBN cost-benefit analyses are so 2011

The coalition has done nothing else but keep changing their view over the last 2 years. -first it was "there is nothing wrong with the ...

19 hours ago by djz on NBN cost-benefit analyses are so 2011

Use the force Luke... FFS

19 hours ago by Beta on Regional review highlights NBN, mobile

This story has been voted 12000 times in the last 24 hours!

22 hours ago, Is Bill Gates a great leader?

This story has been voted 10 times in the last 24 hours!

2 days ago, CeBIT 2012 opens: photos

This story has been voted 15 times in the last 24 hours!

2 days ago, Lenovo ThinkPad 3G tablet (32GB)

Facebook Activity

Keep up with ZDNet Australia

ZDNet Events Calendar

ZDNet Events Calendar