feed-image  ISSN 1836-5930

linux

Linux eBooks FREE Download

A Newbie's Getting Started Guide to Linux

Linux from Scratch - Create Your Own Linux System - Free eBook

Linux: The Hacking Solution (v.3.0)

The GNU/Linux Advanced Administration

A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)

Advanced Bash-Scripting Guide


Poll

Do you care about your privacy when using a FACEBOOK?
 


Partner Linux Sites: TuxMachines
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
All For Linux
How to dual boot Windows XP and Ubuntu Linux
Article Index
1. Introduction
2. Scenario
3. Prerequisites
4. Preparation
4.1. Ubuntu Linux Download
4.2. Burn Ubuntu Linux ISO image
4.3. Bios Settings to boot from CD-ROM
5. Windows XP PRO installation
5.1. Remove existing partitions
5.2. Create a new partition
6. Ubuntu Linux Installation
6.1. Manual disk preparation
6.2. Define a mount point for NTFS partition
6.3. Set mount point path
6.4. Create a second primary partition
6.5. Define a attributes for a new partition
6.6. Create a SWAP partition
6.7. Define a attributes for a SWAP partition
6.8. Create a first logical partition
6.9. Define a attributes for a new logical partition
7. Windows and Linux dual boot "boot menu"

1. Introduction

My restless effort to promote a Linux operating system and encourage its usage among other "PC" users made me this time to tackle a core topic of this effort and that is dual boot Linux Operating System and MS Windows XP Pro. I really do not expect windows users to switch from MS Windows to the Linux from one day to another, but I rather expect a slower and gradual transition with less headaches and without productivity losses.

There are already plenty of excellent articles in regard to this topic. However, I do still see Linux forums flooded with simple basic questions on how to dual boot these two operating systems. I see users coming from a MS Windows environment completely lost when it comes to a UNIX File System Hierarchy Standard (FHS), partitioning using EXT3 file system and navigation with simple "cd" command. It is very hard for them to let go of an idea of C: and D: drives. In recent 2 or 3 years Linux operating systems and its installation has improved in such a manner that I do not see a problem for a NON-IT person to install its own fully functional and productive version of the LINUX on his "Designed for Microsoft Windows XP" notebook.

Despite my believe I have decided to write this Linux-Windows dual boot "howto" for new Linux enthusiasts. In fact, I have had a friend who has no IT background to helping me by following my steps in this tutorial and believe it or not, he could install his own dual booting system without any problems.

Be aware that we are not going to describe all installation steps for both Linux and Windows installations in this article, only those steps which are necessary to accomplish this task.

2. Scenario

It is good time to describe a scenario which will be followed trough the whole article, and which you should use to help you think about your own requirements and expectations.

We will be using 42GB hard drive for both operating systems. The hard drive will be partitioned in a way that it will contain a separate partition for Windows XP and Linux installation. We have decided to dedicate a 10GB of space for each operating system. Remember that you can adjust this size according to your needs and your hard disk size.

Then we will create a partition with a SWAP file system, which is an absolute "must" for a Linux operating system to be functioning. Swap partition can be think of in MS windows terms like a "virtual memory".

All created partitions up to this point are called primary partitions. The limitation is that we can have a maximum of 4 primary partitions and what is more, unpartitioned disk space is not usable ! At this point, there is only one primary partition left for us. However, what if we need more than one partition to be created. In this case, we need to create an extended primary partition which will serve as a container for other logical partitions ( LPAR ). Fortunately for us an extended partition is created automatically once we create a logical partition. Our first logical partition in this scenario will be used for both systems as a shared drive. In MS Windows this partition will be accessible as a E:\ drive and Linux, will mount and make this partition available via /mnt/shared directory.

At the end, we will leave some free unpartitioned space for a further use. It was and I still believe this is a good administration practice to leave a free unpartitioned space for a troubleshooting and other emergencies at the end of the hard drive space. If you will need to use this space in a future all you need to do is to create an another logical partition and create a file system. At the moment, this space will NOT be accessible and this applies for both operating systems.

The figure below should help you to visualize the entire process:
How to dual boot Windows XP and Ubuntu Linux

3. Prerequisites

For successful installation, we assume that you have an access to the following resources:

  • Internet connection ( DHCP would be nice )
  • Backed up all necessary data
  • An Empty hard drive ready to format
  • CD-ROM burner and empty CD-R/CD-RW media
  • Official MS Windows Installation disk with product key

 

 

4. Preparation

4.1. Ubuntu Linux Download

This step is very simple. All you need to do is to acquire an official Ubuntu Linux ISO image. This will be of course free of charge.

4.2. Burn Ubuntu Linux ISO image

Next step is to burn a Ubuntu Linux ISO image to an empty CD-R/CD-RW medium.

4.3. Bios Settings to boot from CD-ROM

Set bios to boot from CD-ROMIn case that your PC is not set up to boot from CD-ROM as a default you need to access a BIOS utility to change these settings. This is required for both, Windows XP and Ubuntu Linux installations. To get to the BOIS, restart your PC and keep pressing a DEL key. DEL key is most commonly used but since there is a lot of different hardware, there is also a couple different keys. The other keys you may also try are: F2, F10 . Settings to boot from CD-ROM are different for each mother board. You may try to search for a keywords boot, boot sequence. If unsuccessful consult your official manual which came with your motherboard.

 

5. Windows XP PRO installation

Now that we have successfully completed all preparations steps we can move forward and begin with Windows XP installation. Windows XP installation must always go before a Linux Installation. The reason for this is that MS Windows and its creators completely ignore any other operating systems and the coexistence of both Linux and windows does not seem very attractive to them. Therefore, MS Windows will not recognize a linux operating system on the hard disk if the Linux was installed first. Use the Official Windows XP PRO disk to begin an installation.As it was already mentioned this tutorial will not cover every step during the Windows XP installation. However, we will only focus on the crucial steps which are necessary for Linux and Windows dual boot. In both cases, this will be only the part of the installation process where you will need to partition a free space on your hard drive.

5.1. Remove existing partitions

Before you can create partitions to follow this tutorial you might need to remove existing partitions on your disk. This is only of course if your disk had been used before and contain any partitions.

Remove Existing Partitions with WIndows installation wizard

From the figure above our hard disk currently holds two partitions and no space for Linux and Windows coexisting scenario which we are trying to achieve. Windows installation wizard can help is in this situation by offering us a "D" key to delete any unnecessary partitions. The Key sequence to delete a partition should be as follows: "D" ( DELETE PARTITION ) -> ENTER -> "L" or "D" -> "L". Once you have removed all partitions, the information on your screen should be similar to the screen shot below:

Free Unpartitioned space after partiton removal

Installation wizard does not show any partitions, and we have an entire hard disk free space available for us to play with.

5.2. Create a new partition

We need to create a partition in order to install MS Windows. This can be done by highlighting and "Unpartitioned disk space" and pressing a "C" key. This will prompt us to enter a size of the new partitions. To follow our scenario, we enter 10000MB which is an equivalent of 10GB: :[[Image:create_partition.png]] This is the only partition we need to create at this stage. We will leave rest of the unpartitioned disk space for linux installation and shared directory. :[[Image:create_partition1.png]] We choose newly created partition as a target partition for a Windows XP PRO installation and format it with NTFS file system.

Create a new partition for Windows XP

This is the only partition we need to create at this stage. We will leave rest of the unpartitioned disk space for linux installation and shared directory.

New Windows XP NTFS partition is ready

We choose newly created partition as a target partition for a Windows XP PRO installation and format it with NTFS file system.

Windows XP parition is ready to be formated.

The other steps on how to install a windows operating system are beyond the scope of this tutorial.

6. Ubuntu Linux Installation

If you have followed previous steps you should have a MS Windows XP PRO installed on your PC. The size of your partition where your Windows XP resides may have a different size but what is important it this point that the windows installation files are on the first primary partition and the rest of the hard drive is left unpartitioned. Here is a summary of a key steps during the following Ubuntu Linux installation:

 

  • set a mount point for first primary partition to /mnt/wind_C, this way you can get access to the windows installation files from the Linux OS
  • create a second primary partition in size of 10GB which will be used for Ubuntu Linux installation and mounted on the root of the file system "/". This partition will be using an EXT3 file system.
  • define a third primary partition with size if 1GB which will be used as a swap memory for A Linux operating system. This partition is an absolute "MUST" when it comes to any Linux. In windows terms, you can refer to this partition as a virtual memory, however in this case it is not a single file but entire partition.
  • create an extended primary partition which will serve as a container for other logical partitions. Fortunately this step can be omitted because primary partition is created automatically once we create a new logical partition.
  • create a logical partition in size of 20GB. This partition will use a FAT32 file system and will serve as a shared drive between both operating systems. MS Windows XP will recognize this partition as a E: drive and in Linux we will mount this partition into /mnt/shared directory.


Linux Ubuntu installation boot screenSame as it was in case of Windows XP installation this manual will only cover the necessary steps for dual boot to function. The whole installation of the Linux operating system had been shirked to the simple 7 steps only where one step is just a summary. Our concern here is with step 4. Let's get started. Put your burned Ubuntu Linux installation disk into your CD-ROM drive and restart your PC ( you may also want to check your CD for defects) and start installation.

6.1. Manual disk preparation

This dialog window represents current partition layout on our hard drive. We can see that the firs primary partition is defined with size of 10GB. Ubuntu Linux installation dialog offers 3 options on how to partition our hard disk.

Prepare disk space for linux partitions

  • Guided - resize: This would instruct a Ubuntu Linux installation wizard to create all partitions automatically
  • Guided - use entire disk: This option will remove all current partitions and use entire hard disk space to install Ubuntu linux.
  • Guided - use the largest continuous free space
  • Manual : This option will allow us to have a full control of the entire partition creation process. Just because we are professionals, and we do not need any help a Manual option is our only choice:-)
  • MANUAL -> FORWARD

 

 

 

 

 

 

 

 

 

 

6.2. Define a mount point for NTFS partition

First we need to define a mount point for the only partition which we already have and that is /dev/sda1 which holds Windows XP installation files:

Prepare NTFS partition for mount

 

  • /DEV/SDA1 -> EDIT PARTITION

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6.3. Set mount point path

 

All what needs to be done is to set a correct absolute path to the as a mount point. This way we will instruct Linux to mount our NTFS partition to /mnt/wind_C:

Prepare disk space for linux partitions

 

  • MOUNT POINT -> /mnt/winc_C
  • WARNING: Do NOT tick a formation partition radio button. This will completely remove your windows installation. You have been warned !


















 

6.4. Create a second primary partition

 

At this stage, we are ready to create yet another primary partition which will be used for Ubuntu Linux installation. Use the installation wizard window to move on the free space and select new partition button:

Create new primary partition

 

  • FREE SPACE -> NEW PARTITION






















 

6.5. Define a attributes for a new partition

Choose a partition size, file system and a mount point for a new partition:

Define a attributes for a new partition

 

  • PRIMARY -> 7000 -> BEGINNING -> EXT3 JOURNALING FILE SYSTEM -> / -> OK





















 

6.6. Create a SWAP partition

 

This partition is an absolute compulsory when it comes to any Linux operating system. There are many ways on how to choose a correct swap partition size. The most common procedure is to make it twice as big as is a RAM size on your system. For example, if you have a 512 MB of RAM your would create 1024MB big swap partition.

Create a SWAP partition

 

  • FREE SPACE -> NEW PARTITION






















 

6.7. Define a attributes for a SWAP partition

 

Let's make a 1GB swap partition:

Define a attributes for a SWAP partition

 

  • PRIMARY -> BEGINNING -> SWAP AREA -> OK






















 

6.8. Create a first logical partition

 

At this point, we are going to create a first logical partition with FAT32 file system. Purpose of this partition is to store and share data between both operating systems:

Create a first logical partition

 

  • FREE SPACE -> NEW PARTITION






















 

6.9. Define a attributes for a new logical partition

 

Please note that you do not have to create a same partition size and mount point. Select the size according to your needs and hard disk space.By selecting a mount point to /mnt/shared the Linux will automatically mount this file system to a /mnt/shared directory.

Define a attributes for a new logical partition

 

  • LOGICAL -> 20000 -> BEGINNING -> FAT32 file system -> /mnt/shared





















 

Partition Summary

 

This dialog window represents a partition summary. You should have a similar output.

Partition Summary

 

  • FORWARD






















7. Windows and Linux dual boot "boot menu"

If you followed above steps carefully by now you will have a fully functional dual boot installation of the Windows XP and Ubuntu Linux.

Linux Windows dual boot menu


Linux eBooks FREE Download

The GNU/Linux Advanced Administration
The GNU/Linux systems have reached an important level of maturity, allowing to integrate them in almost any kind of work environment, from a desktop PC to the sever facilities of a big company.

In this ebook "The GNU/Linux Operating System", the main contents are related with system administration. You will learn how to install and configure several computer services, and how to optimize and synchronize the resources using GNU/Linux.

The topics covered in this 500+ page eBook include Linux network, server and data administration, Linux kernel, security, clustering, configuration, tuning, optimization, migration and coexistence with non-Linux systems. A must read for any serious Linux system admin.

A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.

You've probably heard about Linux, the free, open-source operating system that's been pushing up against Microsoft. It's way cheaper, faster, safer, and has a far bigger active community than Windows, so why aren't you on it? Don't worry, Makeuseof.com understands. Like many things, venturing off into a completely unknown world can seem rather scary, and also be pretty difficult in the beginning. It's while adapting to the unknown, that one needs a guiding, and caring hand. This guide will tell you all you need to know in 20 illustrated pages, helping you to take your first steps. Let your curiosity take you hostage and start discovering Linux today, with this manual as your guide! Don't let Makeuseof.com keep you any longer, and download the Newbie's Initiation to Linux. With this free guide you will also receive daily updates on new cool websites and programs in your email for free courtesy of MakeUseOf.

Linux from Scratch
Linux from Scratch describes the process of creating your own Linux system from scratch from an already installed Linux distribution, using nothing but the source code of software that you need.

This 318 page eBook provides readers with the background and instruction to design and build custom Linux systems. This eBook highlights the Linux from Scratch project and the benefits of using this system. Users can dictate all aspects of their system, including directory layout, script setup, and security. The resulting system will be compiled completely from the source code, and the user will be able to specify where, why, and how programs are installed. This eBook allows readers to fully customize Linux systems to their own needs and allows users more control over their system.

A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)
Getting Started with Ubuntu 10.04 (Lucid Lynx) is a comprehensive beginners guide for the Ubuntu operating system; it features comprehensive guides, How Tos and information on anything you need to know after first installing Ubuntu.

Designed to be as user-friendly and easy to follow as possible, it should provide the first point of reference to any Ubuntu newcomer with lots of information. The manual has step by step instructions and includes lots of screenshots to show you how to do tasks. It also includes a Troubleshooting section to help you solve common Ubuntu problems quickly. Download this 160+ page manual today.

Securing & Optimizing Linux: The Hacking Solution (v.3.0)
A comprehensive collection of Linux security products and explanations in the most simple and structured manner on how to safely and easily configure and run many popular Linux-based applications and services.

This book is intended for a technical audience and system administrators who manage Linux servers, but it also includes material for home users and others. It discusses how to install and setup a Linux server with all the necessary security and optimization for a high performance Linux specific machine. It can also be applied with some minor changes to other Linux variants without difficulty.

Comments (15)
  • hitesh  - How to dual boot Windows XP and Ubuntu Linux

    How to dual boot Windows XP and Ubuntu Linux

  • hotwire  - Complicated.. What!

    I can't believe some of the readers here are complaining that this tutorial is complicated.. My Goodness, this is about as straight forward and easy as it gets for a step by step instructions on pc installation for Dual Boot..

    hotwire

  • Mark  - Swap Last?

    Can you create the Swap Partition last so that you can utilize the rest of the free space for it?

  • Mark  - Great Job!

    Don't listen to them, other than the misspelled words I think it was a great tutorial.

  • Anthony Papa  - Need Help

    I just reinstall my windows xp, the problem is, it automatically load windows without prompting which OS would I like to run...

    Is there a way to install grub without re installing my ubuntu?

  • Lubos  - How to dual boot Windows XP and Ubuntu Linux

    Ubuntu can be installed without using a CD or CD-ROM drive.
    * SmartBootManager - Installing from a PC which will not boot from a CD.
    * Installation/FromUSBStick - Installing from a USB memory stick.
    * Installation/FromCForUSBStick - Similar to above but using grub.
    * Installation/WithFloppies - Installing without a CD drive over a network.
    * Installation/FromHardDriveWithFloppies - Installing without a CD drive or network capabilities from a hard drive.
    * Installation/FromWindows - Installing from Windows without using floppies, a CD, or any other removable media.
    * Installation/FromLinux - Installing using a spare partition from an existing Linux system to house the Ubuntu CD image.
    * Installation/FromVM - Installing using a physical disk to a Virtual Machine.
    ref: https://help.ubuntu.com/community/Installation

  • Lubos  - How to dual boot Windows XP and Ubuntu Linux


    if you do not want to format your disk you can try to shrink you partitions with tools like partition magic. This will create free unpartitioned space on your disk which can be used to install linux.

  • ben  - How to dual boot Windows XP and Ubuntu Linux

    Currently, I have XP pro on a partition. My second partition holds security progs & utils.
    As well, this old sys does not have a burner, so I've downloaded Ubuntu to the 2nd partition for installation to a 3rd once created (or can I install it from an external HD?)

    I do not want to format the drive and re-install XP to create a 3rd partition.

    I've used OS/2 on a dual boot sometime ago with win95, but the procedures here seem complicated. What are my options?

  • nimi  - Right! XP first!

    "Windows XP installation must always go before a Linux Installation. The reason for this is that MS Windows and its creators completely ignore any other operating systems and the coexistence of both Linux and windows does not seem very attractive to them"

    XP overwrites the MBR whatever it may be. Hence grub (w/linux) must always be installed last so it automatically recognizes 'the other' operating system.

    In any other case grub can be installed via live cd for example with the following entry at /boot/grub/menu.lst:

    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/hda2
    title Microsoft Windows XP Professional
    root (hd0,1)
    savedefault
    makeactive
    chainloader +1

    Cheers!

  • thomas  - thanks

    Great tut -simple,visual understands non-geek user needs!thanks

  • Yaro  - Shared partition...

    If this were me, that shared partition would be ext2/3/4. You can easily download and install an ext IFS driver for Windows, and you'll spare your data from being deployed on fragment-happy and ACL-deficient Windows filesystems.

    ian - Wubi is a wastee of time. Pastign Linux onto a Windows partition strikes me as askign for trouble, partly because both FAT32 and NTFS are garbage filesystems.

    Linux is happiest on its own filesystem. And setting up a real dual boot is not that hard.

  • hendoc  - Too complicated

    You don't have to set mount points or anything for Ubuntu to see your NTFS partition. You are making it way too hard for a newbie. Just put in the Ubuntu Iso and follow the simplest method. I've done it many times.

  • ns  - VERY COMPLICATED

    I am a true newbie to this. You're right, this is complicated. It would be nice to have instructions for someone who has no experience with Linux. I was trying to install from windows without using a CD, USB, etc. and I am totally lost. Sadly, I only need this to run one program! Partitions and Virtual Machines is completely out of my league.

  • Giz  - Learn it

    It's good to know how to set partitions, other wise you'll be used to the GUI all the time. Builds skill, but at least WUBI lets lower skilled users try Ubuntu without hosing their system.

  • ian  - Bit hard

    This all seems a bit complicated when you could simply get the windows pc - download the latest ubuntu cd and use WUBI to dual boot your PC for you.

Write comment
NOTE: To unsubscribe enter your email, select "do not dotify" with title: UNSUBSCRIBE and Send.
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
Security
Please input the anti-spam code that you can read in the image.