On mySimon: Morgan Red Retro Bike
BNET Business Network:
BNET
TechRepublic
ZDNet

July 10th, 2007

Dual-booting XP and Linux - It's really easy!

Posted by Adrian Kingsley-Hughes @ 7:39 am

Categories: Linux, My Linux Experience

Tags: Ubuntu, Linux, Disk, Microsoft Windows XP, Microsoft Windows, Adrian Kingsley-Hughes

Over the past few weeks several people have asked me if it’s possible to set up a Windows XP/Linux dual-boot system on a PC that already has Windows XP installed on it, and if it’s possible, how easy is the process. 

Well, I’m here to tell you that it’s pretty easy to do.  In fact, the process is only marginally more work that installing Linux in the first place (which, if you’ve installed Linux before, you’ll know if pretty easy).

Here’s how it’s done.

  1. First, start off with a machine with XP already installed on it.
  2. Next, download a Linux distro.  I’ll be using my personal favorite, Ubuntu 7.04 Feisty Fawn.
  3. Burn a CD of the ISO you downloaded and pop it into the drive and boot up off of it.
  4. Start the install process.  This will take you through the Welcome screen, the Where are you? screen and the Keyboard layout screen.
  5. Now you’ll come to the disk partitioner.  Choose the Resize [main partition] and use freed space option.  This is where you find out if you have enough free space to do the job.  The default recommendation for the new partition size will be ideal, but you can move the slider along to change the values to suit.  When you’re done, click Forward.
  6. Now you can go away and leave the install to churn away until it’s done.  It shouldn’t take all that long.
  7. When the install is complete the system will reboot.
  8. When the system boot up, now you’ll be greeted by the GRUB boot menu.  From here you can choose which OS to boot into.  In my case Ubuntu will be the default and will start automatically in 10 seconds.
  9. The first time that you reboot into Windows the OS will more than likely want to check the disk since the partition has changed size since Windows was last running.  XP will also likely want to re-detect hardware and such and probably reboot.
  10. That’s it!  Yes, it’s that simple.

In Ubuntu I can also tweak the GRUB bootloader settings.  To do this you need to fire up a Terminal window (ApplicationsAccessories Terminal) and type the following into the window:

sudo gedit /boot/grub/menu.lst

Hit ENTER and then type in your password hit ENTER again and you get access to the boot menu file in gedit.

The default boot entry is defined by the default value. Change this value to reflect which OS you want to boot up automatically.  The default value is 0, which means that the first entry in the list (in this case Ubuntu) will be loaded automatically.  If you want to change it so that Windows XP loads by default, change the value to 4 (because here XP is the fifth item in the list and the numbering system starts at 0).  You can also increase the boot menu timeout by changing the value of timeout from the default 10 to something else. Save the file to committ the changes.

Sweet.

Thoughts?

Adrian Kingsley-HughesAdrian is a technology journalist and author who has devoted over a decade to helping users get the most from technology. He also runs a popular blog called The PC Doctor. See his full profile and disclosure of his industry affiliations

Want to get in touch? Got a tip? Feel free to drop me a note! I ALWAYS respect anonymity. I'm also on Twitter (@the_pc_doc)

Right to Reply: Should any industry representatives wish to comment on any posts on Hardware 2.0, I will be happy to publish their reply verbatim on this blog.

Subscribe to Hardware 2.0 via Email alerts or RSS.

Related Discussions on TechRepublic

Did you know you can take part in these discussions with your ZDNet membership?

  • Talkback
  • Most Recent of 91 Talkback(s)
Another way to do it w/2HDD
Ok I'm picky and want to be sure my XP HDD is always in tact. So I installed Grub and linux to my second HDD and setup my bios to boot the secondary HDD instead of my primary (in case of problems I ca... (Read the rest)
Posted by: dasschu@... Posted on: 09/07/07 You are currently: a Guest | | Terms of Use
Its easy going one way  Rokstar83 | 07/10/07
Actually, it's really easy if you have more than one hard drive.  aeriform | 07/11/07
Linux is a lot easier ....  bportlock | 07/10/07
Yes, because  frgough | 07/10/07
You sure it's not you that needs to 'catch up'? NT  odubtaig | 07/10/07
I don't know why...  bportlock | 07/10/07
re: Yes, because  M.R. Kennedy | 07/10/07
Mac needs 2 words, everyone else needs NONE  NonZealot | 07/10/07
You really should try the software you rail against  Michael Kelly | 07/10/07
diagnostic mode  gtdavies33@... | 07/10/07
Actually . . .  JLHenry | 07/11/07
Not all Linux distros are like this...  CxO_trainee | 07/11/07
You are so right and I agree  intrepi@... | 07/11/07
Of course, that's not the only way...  Freebird54 | 07/11/07
Then again  Update victim | 08/07/07
You have nothing to fear but FEAR itself! wink  D-T-Schmitz | 07/10/07
Applications....  mmdmurphy@... | 07/11/07
better than dual-boot  gary@... | 07/10/07
Exactomundo  D-T-Schmitz | 07/10/07
Hard Drive Selector Switch  howdougd@... | 07/10/07
Cool idea!  Adrian Kingsley-HughesZDNet Moderator | 07/10/07
Excellent advice, Doug  Ole Man | 07/13/07
Low End Computers Sluggish using VMWare  aeriform | 07/11/07
It isn't hard these days to get a computer that isn't low end...  xode@... | 07/19/07
Common Reaction  D-T-Schmitz | 07/10/07
A challenge for Adrian (or anyone else here)  M.R. Kennedy | 07/10/07
tri-boot  ruped24 | 07/10/07
THX 4 the GRR8 link wink grin n/t  Betelgeuse58 | 07/11/07
Yes you can, but if you could  Michael Kelly | 07/10/07
re: Yes you can...  M.R. Kennedy | 07/11/07
What Ubuntu will do  Michael Kelly | 07/11/07
re: What Ubuntu will do  M.R. Kennedy | 07/11/07
MBR and Symantec GoBack  murray@... | 07/13/07
Dual boot, 2 drives  mudar | 07/10/07
How about Wubi?  ab_aditya | 07/10/07
Wubi doesn't always work . . .  JLHenry | 07/11/07
Wubi Invalid User name  tahon50@... | 07/12/07
sharing Browser and Email betn Windows and Linux - its even more easy  bksgs1 | 07/11/07
Vmware or VirtualBox  johnf76@... | 07/11/07
RE: VMWare or VB  sir_cheats_alot@... | 07/13/07
heh..um...  sir_cheats_alot@... | 07/13/07
Gamers the only point left, and maybe commercial DVD playback.  D-cat | 07/13/07
re:Gamers the only point left, and maybe commercial DVD playback.  sir_cheats_alot@... | 07/13/07
VMware might just work in your case...  xode@... | 07/19/07
VBox kicks, and it's easy to use.  D-cat | 07/20/07
Pity virtualization hampers CPU intensive products  HypnoToad72 | 07/15/07
As would any emulation software  D-cat | 07/15/07
Dual Boot Windows side is nicer  johndatabase@... | 07/11/07
You can, but I don't think that's the best solution  Michael Kelly | 07/11/07
openSuSE 10.2 Same except for Boot tweaking.  Embedded_z | 07/11/07
But I LIKES z Partition Magic! (PQPM8DOS) happy -NT  D-cat | 07/11/07
Proceed with caution...  Cornhead | 07/11/07
It helps to prepare the partitions for resizing.  D-cat | 07/11/07
Non-issue for non-system drives  Cornhead | 07/12/07
Can't hurt  D-cat | 07/12/07
and that's not all  mejohnsn | 07/14/07
Externak Boots  newsletters@... | 07/11/07
dual-booting XP and Linux  thall@... | 07/11/07
dual-booting XP and Linux  bksgs1 | 07/12/07
What about Vista Ultimate and use 2 drives?  fr0thy2. | 07/11/07
re partitioning  barrpete | 07/11/07
Why repartition?  electro@... | 07/11/07
Short answer, yes.  D-cat | 07/11/07
I have to wonder why but it's your decision  intrepi@... | 07/11/07
We're Going to Need Linux on our Machines  bcroner | 07/11/07
You can also use Live CD's/Flash boot drives for Linux  johnf76@... | 07/12/07
but s-o-o-o lmimiting  mejohnsn | 07/14/07
How about running Windows and Linux on the same desktop?  gotitright | 07/12/07
Now, how do I go back to just XP.  SimonSays | 07/12/07
U don't have to INSTALL Linux to TRY it.....  btljooz | 07/12/07
"Bootable CD" a.k.a. "LiveCD"  BobK Linux Noob | 07/12/07
re:U don't have to INSTALL Linux to TRY it....  dobbie606@... | 07/16/07
RE:Now, how do I go back to just XP  dennis_martin@... | 07/18/07
Dual-booting?  neighborvl@... | 07/13/07
Dual-booting Again---  neighborvl@... | 07/13/07
My experience  compunaut | 07/13/07
Be careful!  birthdaycake | 07/17/07
Ubuntu Feisty Fawn 7.04  enicolar@... | 07/18/07
Wubi  pressrat@... | 07/18/07
Thanks  DaffyDuck | 07/18/07
XP Linux  geminipandi@... | 07/18/07
Dual-booting XP and Linux - It's really easy!  rkinkead@... | 07/18/07
OT: running OEM installation under VMware  zigip | 07/18/07
Interesting question... never tried it.  D-cat | 07/19/07
Ubuntu and Windows XP (dual boot)  melvins-12449368 | 07/19/07
Why dual boot XP and Linux when you can do more by running XP under Linux?  xode@... | 07/19/07
If you're a gamer, the answer's obvious.  D-cat | 07/20/07
My  marvins611@... | 07/20/07
Good Tool  D-cat | 07/21/07
It's not just that easy  cwallen19803 | 07/27/07
Another way to do it w/2HDD  dasschu@... | 09/07/07

What do you think?

SponsoredWhite Papers, Webcasts, and Downloads

Click Here
advertisement

Recent Entries

advertisement
Click Here

Archives

ZDNet Blogs

White Papers, Webcasts, and Downloads

SmartPlanet

Click Here