Go Back   TechArena Community > ARENA > Guides & Tutorials
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Dual boot - Installing Windows (XP) when Linux (Ubuntu) already installed

Guides & Tutorials


Reply
 
Thread Tools Search this Thread
  #1  
Old 25-09-2008
Member
 
Join Date: May 2008
Posts: 662
Dual boot - Installing Windows (XP) when Linux (Ubuntu) already installed
  

Dual boot - Installing Windows (XP) when Linux (Ubuntu) already installed

You want to install XP on your machine alongside your existing Linux installation on the same physical drive which already has Ubuntu 8.04 installed.

We'll create space on the Linux partition to install Windows XP. XP bootloader is fairly clumsy when it comes to dualbooting and will overwrite GRUB completely. We'll reinstall GRUB to the MBR and configure it to dualboot both Ubuntu and XP.

Back up the GRUB boot menu

Regardless of which bootloader you end up using, it's a very good move to first back up the GRUB bootloader. It's easy to lose it and unless you know how to re-write it from scratch then you're generally facing a full reinstallation of Ubuntu.

Firstly, boot into Ubuntu and go to Applications --> Accessories --> Terminal. Then, type in sudo gedit /boot/grub/menu.lst.

This text file contains all the information GRUB uses to configure various boot options. Scroll down and the entries between "## ## End Default Options ##" and "### END DEBIAN AUTOMATIC KERNELS LIST" are the Linux boot options.

Make a backup of the file by going to File, Save As and selecting a different location. Or take a full copy of the contents and place it into a new text file. If you can, create the backup on a removable disk or networked location.

Reply With Quote
  #2  
Old 25-09-2008
Member
 
Join Date: May 2008
Posts: 662
Make space for XP

Now we need to create space on the hard drive for XP, so this will involve resizing the main Ubuntu partition. Restart the system using the Ubuntu Live CD as this gives you access to GNOME Partition Editor. When the CD loads, select "Try Ubuntu without any change to your computer".



Once the CD loads, go to System, Administration, Partition Editor.



Right-click on the main data partition which has been formatted with ext3 - it should be /dev/sda1 - and select "Resize/Move"



Move the slider from the right to shrink the ext3 partition and create free space on the hard drive, which will take the NTFS XP partition. Make sure that the free space is sufficient to hold XP (at least 2GB - preferably 5GB). Then click "Resize/Move" to confirm the selection, and "Apply" back in the main screen to carry out the pending change.
Reply With Quote
  #3  
Old 25-09-2008
Member
 
Join Date: May 2008
Posts: 662
Install Windows XP


Restart the system with the Windows XP CD and boot into the install program.

Unfortunately XP isn't so adaptive at handling existing partitions during installation. It detects the two Ubuntu partitions and marks then C: and E: accordingly. The remaining unpartitioned space which is available for XP will be marked as F:.

For the operating system and the vast majority of Windows applications which have properly-coded installation scripts, this is not a problem. Some older applications will assume that C: is the system partition and may bring up errors. There are ways of changing the drive letter assignation of the system partition, but in this scenario it's strongly discouraged.



To insult to injury, XP detects the Linux partition as an active system partition and won't install unless it marks this partition as inactive.
Reply With Quote
  #4  
Old 25-09-2008
Member
 
Join Date: May 2008
Posts: 662
Restore the GRUB boot loader

Once XP has been installed, it will boot happily into XP but there's no sign of Ubuntu. To reinstate GRUB as the system bootloader it needs to be reinstalled into the MBR.

Boot the system from the Ubuntu Live CD and select "Try Ubuntu without any change to your computer".



Open a Terminal session - Applications, Accessories, Terminal



To enter the GRUB configuration mode, type in "sudo grub" and press Enter. Then type in the following commands in sequence:
- root (hd0,0)
- setup (hd0)
- quit
- exit


Reboot the system. You'll get the GRUB bootloader but Vista won't be an option - we need to add this to the boot options.

Boot into Ubuntu and open up another Terminal session. Then, type in sudo gedit /boot/grub/menu.lst

Scroll down to the bottom of the file and type in the following text strings:

title Windows XP
root (hd0,1)
makeactive
chainloader +1


Save the file and reboot. When the GRUB loader launches hit ESC for the boot menu. Windows XP is the last option - select it and XP will load.

If you want to make the GRUB menu always available, boot back into Ubuntu and edit the MENU.LST file. Find the hiddenmenu text string and change it to #hiddenmenu.

To increase the menu timeout, change the default timeout 3 to something more appropriate.

Source: apcmag.com
Reply With Quote
  #5  
Old 20-03-2009
Member
 
Join Date: Mar 2009
Posts: 7
Re: Dual boot - Installing Windows (XP) when Linux (Ubuntu) already installed

I'm attempting to reinstall XP for dual boot alongside existing Ubuntu 8.10. I created an NTFS partition using Gparted. I burned an ISO from the MS website labled "XPSP3 including autorun". When I attempt to start the XP install I get "Error: Autorun program not found" even though autorun was included in ISO. Any ideas?
Reply With Quote
  #6  
Old 31-03-2009
Member
 
Join Date: Jan 2009
Posts: 1,738
Re: Dual boot - Installing Windows (XP) when Linux (Ubuntu) already installed

Hey!
You need to boot from the Windows XP CD and not by auto playing in linux... Boot from Windows CD, Install Windows on the NTFS partition. Refer above posts or goto this thread : Windows & over Ubuntu for dual boot?
Reply With Quote
Reply

  TechArena Community > ARENA > Guides & Tutorials
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Dual boot - Installing Windows (XP) when Linux (Ubuntu) already installed"
Thread Thread Starter Forum Replies Last Post
how to dual boot windows 7 and fedora 16(installed) ryandvv Operating Systems 1 21-11-2011 10:35 AM
Installed Windows 7 to dual boot with XP but now cant log into XP - HELP :( Malice_Unarmed Operating Systems 4 02-11-2011 06:21 PM
How can I dual boot windows and Ubuntu along with EFI and SSD Lhamu Operating Systems 6 05-02-2011 08:21 PM
Is it possible to dual boot a system with Linux already installed Gania Operating Systems 4 14-01-2011 03:54 AM
How to dual boot Windows XP with Ubuntu already installed Terrextre Operating Systems 2 03-11-2008 06:20 PM


All times are GMT +5.5. The time now is 06:13 PM.