Weird Network

Dual boot Linux and XP. (pre-installed: Linux)

Posted on: May 20, 2009

Linux --> Linux + Windows
Linux –> Linux + Windows

For all enthutiasts of Linux, here is a post for dual booting from Linux –> Linux + Windows XP.

Personally, I have been using Ubuntu Intrepid from past month and I’m quite enjoying it too. All those work which I considered as loopholes or ‘the things I wanted’ in Windows XP are available to serve on Ubuntu. Many of you must be thinking that I should have post another way around, that is ‘Windows –> Windows + Linxu’ but why I’m doing it’s reciprocal. Well the answer is simple, I wish to have Ubuntu as my primary OS then Windows as secondary (that too for work of my sisters). So I feel that I should install XP as secondary OS in my HDD (will tweak whenever I will get time).

So here the step goes:

Step 1:
Scenario: 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.
Tutorial Summary: 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.

Disclaimer: Do at your own risk, I will not be responsible for any kind of data loss or for the fate of your system

Grub Backup
Grub Backup : Click to zoom

Step 2:
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.

Step 4 : ... continue              [//made being offline]
click to zoom.

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.
Step 3:
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”.
Editing Partition using Partition Editor
Once the CD loads, go to System, Administration, Partition Editor.
Handling the drives: scrshot from Ankur's Ubuntu
Right-click on the main data partition which has been formatted with ext3 – it should be /dev/sda1 – and select “Resize/Move”
Resizing the partition: making space for XP
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.

Step 5:
Offline DB
Offline DB 2
Offline DB 3

Thta’s it! Now you have been upgraded from Linux (Ubuntu) to Ubuntu + Windows XP..

Do comment.


3 Responses to "Dual boot Linux and XP. (pre-installed: Linux)"

Cool Ankur! Why didn’t you start blogging before?. Though this post is senseless for me because I still use Windows, so it may be better if you post an article on Windows =Windows+ubuntu.
PS: I liked typeracer’s post, will surely compete with you there
PPS: For initial post, I know that you have always hated hacking and breaking in someone’s piracy.

sorry for re-replying at my post.. but don’t you think that you should include more on ‘About me’? Logo is looking good though

Thanks for commenting.. Well I will post the tutorial very soon. Thanks for praising logo. I will definitely lengthen ‘About me’.
Continue visiting blog for updates

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Twitter tweets

For Admin

%d bloggers like this: