On GameSpot: Wii Fit tells 10-year-old she's fat

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

Tags: Scott Lowe MCSE

  • Save
  • Print
  • Digg This
  • 44

Takeaway: See how to use Linux boot loader GRUB to make Red Hat Linux dual boot with Windows.


At a time when some organizations 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. For more information on installing Windows XP, check out Brien Posey's articles on basic installation and troubleshooting failed installations.

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
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
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
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
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.

Musical operating systems?
How many different desktop and PDA operating systems does you help desk support? If your help desk supports multiple operating systems, are your techs already running dual-boot machines? If you support both Linux and Windows, what have you found to be the best option: dual boot or a product such as VMware for troubleshooting? Post a comment to this article and share your experiences.

 
  • Save
  • Print
  • Digg This
  • 44

Print/View all Posts Comments on this article

But what about sharing data?jp-dutch  | 05/21/02
A dirty solution to sharing dataSnake2002  | 05/22/02
How in Linux?jnich640@...  | 02/04/04
NTFS is "supported" in Linux distrossergej at rinc.ws  | 05/23/02
But what about sharing data?cybertechmkteo@...  | 08/26/02
sharing datajason.corbett@...  | 09/05/02
Time to "Migrate"THEGUITARDUDE1@...  | 11/19/03
XP boot loader better?sergej at rinc.ws  | 05/21/02
A little something extrajvbaker@...  | 05/22/02
I didn't know...GDent  | 05/22/02
Configuring AppsJeffe  | 05/28/02
Sharing software between OS'sTheresa Jones  | 05/23/02
Boot Magicbajanine  | 07/20/02
I liek what you did.Another Canadian  | 08/27/02
You can also use the Windows boot loaderhiraghavendra@...  | 05/22/02
Dual Booting and Dual ProcessorsGDent  | 05/22/02
Re: Dual Booting and Dual Processorstkrin  | 05/23/02
RE. Dual Booting and Dual Processorsbradleylydon@...  | 05/27/02
Another Bootloader..rglane@...  | 05/26/02
7.3 and XPflosofl  | 05/28/02
Triple Bootsilverman@...  | 05/28/02
Multi OS Systems - Rule of ThumbBill Rankin  | 07/16/02
Multi OS Systems - Rule of Thumbcybertechmkteo@...  | 08/27/02
Triple Bootcybertechmkteo@...  | 08/26/02
GRUB makes multibooting easymasinick@...  | 09/02/02
Lost NTLDReidsath@...  | 06/19/02
a fixjeempc2  | 11/05/02
duhCampbellR  | 07/08/02
What's Relevant?Roger  | 08/12/02
Linux 7.2?Marcus Lee  | 07/15/02
Other Linux versionsoz_ollie  | 11/05/02
Dual boot between master & slave drivesFXEF  | 07/17/02
Dual boot to a master/slave drive combo!Roger  | 08/12/02
Removing GRUBrchan@...  | 07/30/02
how to remove GRUB (if you want to)Roger  | 08/12/02
Joining NT domain from Linux sideDarrenW  | 08/12/02
Be Careful On Large DisksTonyNZ  | 08/13/02
Partition sizes & locationsoz_ollie  | 11/05/02
Need a mirror?bvanrhijn@...  | 08/14/02
NTFS and RedHat 7.3jon.pilgrim@...  | 10/17/02
Dual BootDemonGP  | 11/04/02

What do you think?

Article Categories

Security
Security Solutions, IT Locksmith
Networking and Communications
E-mail Administration NetNote, Cisco Routers and Switches
CIO and IT Management
Project Management, CIO Issues, Strategies that Scale
Desktops, Laptops & OS
Windows 2000 Professional, Microsoft Word, Microsoft Excel, Microsoft Access, Windows XP,
Data Management
Oracle, SQL Server
Servers
Windows NT, Linux NetNote, Windows Server 2003
Career Development
Geek Trivia
Software/Web Development
Web Development Zone, Visual Basic, .NET
advertisement
Click Here