On CBS MoneyWatch: Deal or no deal? 8 lousy 'bargains'
BNET Business Network:
BNET
TechRepublic
ZDNet

July 17th, 2007

Setting up a dual-boot Linux and Vista PC

Posted by Adrian Kingsley-Hughes @ 6:39 am

Categories: Linux, My Linux Experience

Tags: Linux, PC, Microsoft Windows Vista, Microsoft Windows, Adrian Kingsley-Hughes

In Focus » See more posts on: Windows to Linux Chronicles

After covering setting up dual-boot XP/Linux and Vista/Linux systems (where Windows was installed first), I decided it was time to take a look at how easy it is to install Vista onto a PC where a Linux distro was already installed.  Turns out it’s not all that difficult, but it’s easier if Windows is installed first.

Now, I think it’s realistic to say that there’s going to be more people who want to install Linux onto a Windows PC than Windows onto a Linux system, but since a number of people contacted me privately by email asking for pointers, I still think that there’s an audience for this kind of information (most seem to want to set up Windows on a Linux PC so that they can play games on the system). 

Installing Vista onto a system that already has a Linux distro installed (say, for example, Ubuntu) isn’t difficult as such, but it certainly is more complicated than adding a Linux partition to a drive with Windows on it.

What you need

OK, apart from a PC with Linux installed on it, you’ll need a Windows Vista disc and a GParted Live CD, or you can use the GNOME Partition Editor system application already installed with the Linux distro.  For clarity and simplicity, I’ll use a GParted Live CD I have in at the PC Doc HQ.  You can download the latest GParted Live CD from SourceForge (current version is 0.3.4-8).

You will also need a copy of EasyBCD 1.6 in order to be able to tweak the Vista boot loader (basically it’s a GUI front end for the BCEDIT boot loader editor in Vista).  This will need to be installed into Windows Vista.

The process

OK, here’s how you set up a Linux/Vista dual-boot system where Linux is installed first:

  1. Boot the Linux PC using the GParted Live CD.  During boot up select the auto-configuration boot option.
  2. Work your way through the keyboard and language settings of GParted and then once the GUI is loaded right-click on the main partition (the partition onto which Linux is currently installed, probably /dev/sda1) and choose Resize/Move.
  3. Next simply use the slider to allocate enough space for Windows Vista (allow at least 8GB).  Once you’re happy with the settings, click Resize/Move.
  4. Nothing has changed yet - to commit the changes to the partition click Apply.
  5. Once the changes have been made right-click on the partition that’s just been resized and select Manage Flags.  Remove the boot flag by unchecking boot and click Close (this is necessary to allow the installation of Vista because it won’t install where there a bootable non-Windows partition on the drive).
  6. Close GParted and shut down the system. 
  7. Remove the GParted Live CD and boot up off a Windows Vista installation CD.
  8. Install Vista normally.  However, remember to install it onto the disk space you just freed up using GParted (it’ll show up as unallocated space, more than likely on Disk 0).
  9. Windows Vista will, during installation, overwrite the disk’s MBR and this will mean that the GRUB boot loader will be lost.  This means that once the system boots up into Windows you won’t be able to find Linux anywhere.  Don’t panic!  It’s still there!  What you need to do is modify the Vista boot loader to boot up Linux.  On the face of it this might sound complicated, but don’t worry, it’s not!  Start off by shutting down Windows and booting the system off a Linux Live CD corresponding to the distro you have installed (in my case, Ubuntu).
  10. Once the Live CD is loaded fire up a Terminal window (Applications > Accessories > Terminal).
  11. In the Terminal window type the following (which will set the user to superuser mode and launch GRUB):
    sudo grub
    Next find the partition where the GRUB files are located:
    find /boot/grub/stage1
    You will now see a reply such as (hd0,0).  Set this location as root by typing the following:
    root (hd0,0)
    Next type the following to reinstall the GRUB boot loader:
    setup (hd0,0)
    Finally, exit Terminal by typing:
    quit
    Make a note of the location you installed GRUB to … you’ll need it when we come to use EasyBCD in a moment.
  12. OK, now you need to go back into Windows Vista and launch EasyBCD.
  13. Click on Add/Remove Entries followed by the Linux/BSD tab.
  14. From the Type dropdown box choose Grub.  Change the default name from NeoSmart Linux to the name of the Linux distro and from the Drive dropdown box choose the partition onto which you installed GRUB earlier (more than likely it’ll be Drive 0, Partition 0).  When you’re done click on Add Entry followed by Save.
  15. Restart the PC.
  16. The Windows boot manager will now show you two options - Windows Vista and the Linux distro.

Job done!

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.

  • Talkback
  • Most Recent of 91 Talkback(s)
This is how they sould be delivered
With MS Windows Vista/A linux distribution on a CD. Put disk in and start machine. When you are back, you should have a new OS installed (maybe dual booted).... (Read the rest)
Posted by: Jxn Posted on: 04/19/08 You are currently: a Guest | | Terms of Use
Alternative  Michael Kelly | 07/17/07
Vista is a boring re-hash of OSX.  nomorems | 07/17/07
Oh Shut Up!  GeoNorth | 07/18/07
nomorems is quite CLOSE!!!!  btljooz | 07/18/07
CLOSE!!!!  aussieblnd@... | 07/18/07
Refound...  Jxn | 04/19/08
really?  Khyron | 07/18/07
That's right!  handydan918 | 07/19/07
Hmm try dsl  Krazyken39 | 07/19/07
what's the difference?  Khyron | 07/18/07
Big difference  Jxn | 04/19/08
It might not be a matter of need, but rather want  intrepi@... | 07/18/07
Inappropriate response...  Freebird54 | 07/19/07
Thanks for that!  Adrian Kingsley-HughesZDNet Moderator | 07/18/07
Dual Boot !!$%^&*()(*&^%$  jack-daniels@... | 07/18/07
Jack's not quite so on spot....  btljooz | 07/18/07
Multple Boot Options  TDWinfo | 07/18/07
Jack's not quite so on spot....  aussieblnd@... | 07/18/07
load?  Khyron | 07/18/07
Yea  Krazyken39 | 07/19/07
No special partitions  Freebird54 | 07/19/07
LOL! Back in the day...  Raymond Danner | 07/20/07
Triple boot is old news .  Non_Zealot | 07/18/07
quad boot why?  Khyron | 07/18/07
As for me?  Raymond Danner | 07/20/07
Becouse you might need it  Jxn | 04/19/08
For many, they want to start where you did initially  intrepi@... | 07/18/07
Agreed!!!  bryans183@... | 07/18/07
go back to crack?  Khyron | 07/18/07
When will you contribute something useful ?  intrepi@... | 07/18/07
Explain why?  bryans183@... | 07/19/07
A great post, most informative and helpful, thanks  intrepi@... | 07/18/07
Step 6.5  Robert Crocker | 07/18/07
Another alternative (not tested)  DreamDevil | 07/18/07
a radicallly different possibility  g_ulivi | 07/18/07
Read the Title, It Says:  xf10036@... | 07/18/07
Yes it says dual boot....  erm@... | 07/18/07
The article also mentions  Michael Kelly | 07/18/07
That means you would let windows be the host  erm@... | 07/18/07
A MUCH easier way...  Narg | 07/18/07
Re: A MUCH easier way...  yyuko@... | 07/18/07
Re: A MUCH easier way...  Azriphale | 07/18/07
Laptops? Still easy to do with out boot loaders.  Narg | 07/18/07
Leave the Bios alone!  gotitright | 07/18/07
Not Really  hal@... | 07/18/07
easier easier (if available)  astro_z | 07/18/07
You will have to go into your bios each time  intrepi@... | 07/18/07
No you won't need to edit BIOS  Narg | 07/18/07
A MUCH easier way...  bryans183@... | 07/18/07
A Not so MUCH easier way... Actually hader.  Jxn | 04/19/08
Boot Manager with a Vista BCD Editor Built-In.  Don't Ask Me | 07/18/07
Or use Grub  Jxn | 04/19/08
As the article states:  btljooz | 07/18/07
That's the way new PCs and Laptops should come.  OKJoe | 07/18/07
why go that far?  Khyron | 07/18/07
This is how they sould be delivered  Jxn | 04/19/08
Why?  ergodic | 07/18/07
obvious  Khyron | 07/18/07
Re:Cryptic Linux/unix commands  Nobu_z | 07/18/07
Funny...  KWierso | 07/18/07
Well, the reasons are many and varied  intrepi@... | 07/18/07
Another Alternative  Azriphale | 07/18/07
After rebooting due to Windows crashes,  mhenriday | 07/18/07
After rebooting due to Windows crashes,  mhenriday | 07/18/07
forget dual boot VMware best solution  jimparkhurst00@... | 07/18/07
How?  Technocrat@... | 07/18/07
Not a big challenge  Robert Crocker | 07/18/07
Well the new intel based Macs are PC's to , right .  Non_Zealot | 07/18/07
Dual Boot Vista  stevenpowers@... | 07/18/07
Forget Dual Boot Keep Linux and Lose Windows  chessmen | 07/18/07
Cheaper to use 2 hard drives and use bios to boot to one or the other  intrepi@... | 07/18/07
smarter and cleaner  gigaferz | 07/18/07
Hmmmbest way  Krazyken39 | 07/19/07
Vista does not work. Period  El Machete | 07/18/07
PCLinuxOS makes this task even easier  johnson12 | 07/18/07
Many are opting for downgrading Windows  intrepi@... | 07/18/07
well...  gigaferz | 07/18/07
Sucks To Not Know How To Use A Computer  bmore_bro69@... | 07/19/07
Hmm users  Krazyken39 | 07/19/07
Yep.  Raymond Danner | 07/20/07
Triple Boots in M$ Windoze  Old Timer 8080 | 07/18/07
TRY SOLARIS 10  RankmeNext | 07/18/07
Tried it and...  Snarfiorix | 07/18/07
What version of Vista did you use?  erwebb | 07/18/07
What equipment do we need for this?  erwebb | 07/18/07
Uh...  KWierso | 07/18/07
Config, config, config; hardware that is.  bryans183@... | 07/18/07
Two posts in and its windows vs linux, OSX etc. *shakes head*  darcyfreak | 07/19/07
I already posted  Freebird54 | 07/19/07
XP/vista dual boot, how to do it?  german_mora@... | 08/15/07
Why???  co-eddy | 08/16/07

What do you think?

SponsoredWhite Papers, Webcasts, and Downloads

Click Here
advertisement

Recent Entries

advertisement

Archives

ZDNet Blogs

White Papers, Webcasts, and Downloads

SmartPlanet

  • Thought-provoking progressive ideas on diverse topics that intersect with technology, business, and life, and matter to the world at large. Visit SmartPlanet
  • More from IBM
  • Innovate your business' process model, play against the market, compete against others on our scoreboards and WIN! Try INNOV8 2.0: A BPM Simulator
  • Enabling Real-World Business Transformation through IBM Service Management Read the EMA Analyst Report
Click Here