System specs:


  • During installation there is supposed to be a "use whole disk" option.
    – Lekensteyn
    Commented Apr 22, 2012 at 14:50
  • i dont want the whole disk to be used .....cant i install in a partition of 10 GB ?.......because i want the previous data not to be erased ....
    – SaiKanth_K
    Commented Apr 22, 2012 at 14:55
  • More info needed, then. Does XP use the entire disk? If so, how full is the disk? Do you have 10 GB available for Ubuntu? It's pretty hard to answer your question with the information you have provided. Commented Apr 22, 2012 at 15:11
  • If you don't want the previous data to be erased, what do you mean when you say that you want to install Ubuntu over Windows XP, and that you want to install Ubuntu "without having windows xp"? Commented Apr 22, 2012 at 16:07
  • @marty,@eliah i have 6 partitions of my hdd(80 GB) C:operating system(10 GB) D:,E:,F:,G:,H: .....data now i want to replace ubuntu 12.04 in C:(10 GB) with xp and i dont want the data to be erased present in the other partitions ......cant we do this with ubuntu because this is the first time i am installing ubuntu.
    – SaiKanth_K
    Commented Apr 23, 2012 at 5:43

3 Answers 3


The installation will give you a few choices:

(1) Use the entire disk, which will delete the data. Don't use this option;

(2) Install Ubuntu to a new partition along with existing partitions, which will not erase anything, but may not do exactly what you want. I believe it will (perhaps only sometimes) resize an existing partition to make room for Ubuntu.

(3) "Something else", which is the manual method, and is the one I always use. But it requires slight knowledge of the current setup, which you probably have since you have multiple partitions.

I suggest using option 3, but if you are not sure along the way, you should stop the installation, unless you have a good backup. But it's not too hard, especially if you prepare yourself first with a little information... such as:

Boot the Ubuntu Live CD, but choose the option to try it out without installing yet.

Once it's running, run the program "gparted" from the menu. This is a very nice GUI partitioning programming, which is good for visually seeing the partitions and data.

It will probably be showing the CD layout by default, so you'll have to change the combobox at the top to show your hard drive, which should be named "sda". The partitions are numbered as sda1, sda2, sda3, etc. The order is the order they are created, and it's not necessarily consecutive. Anyway, you should identify the XP partition and remember it so you can reuse it for Ubuntu.

You will need a small swap partition of 3 or 4 GB. If you have extra space on any partitions, you could resize one and create it now. It doesn't matter where it is.

When you've identified the partition for Ubuntu (most likely sda1 if you are over-writing XP), you can choose the option to install Ubuntu onto sda1. Probably best to choose ext4, and format the partition.

I've left out a bit of detail, as I'm not sure how much you need. Feel free to ask any questions if you're unsure of anything, and if you feel uncomfortable along the way, just don't continue, and no harm will be done. Also, you should be able to use the install CD to run a browser (you can verify this before installing), so if something goes wrong, you can at least still research or ask questions.

Hope this helps.


Your easiest way will be this:

  1. First In Windows XP, give the XP partition a label or name. For example, let it be "XP". You can do this, by Right clicking on the XP partition and select properties.

  2. Boot to the Ubuntu using Live CD or USB.

  3. Open a terminal by pressing Ctrl-Alt-T

  4. Type sudo blkid and press Enter

  5. See an entry with this kind of text LABEL=XP. Note the /dev/sdxX value. for example, it can be /dev/sda1 or /dev/sda2.

  6. Now Click on the Install Ubuntu icon on the Desktop

  7. Provide necessary information until you reached at partitioning stage.

  8. There will be three options Install Ubuntu with Windows side by side , Completely erase hard disk and install Ubuntu, Something else. Choose Something else

  9. In the next page, you will be shown partitions of your hard disk

  10. Select your Windows partition you determined with sudo blkid command.

  11. Select or Press Edit button

  12. Change Don't use this partition to ext4. i.e change partition type

  13. change the mount point to / then Press OK

  14. A new partition in the place of your previous Windows partition will be created

  15. Now, Click next to provide other necessary information to complete installation.

Notice that, I haven't created any swap partition during installation. But, You need to create swap after installation is completed. See the below question link to get a help.

Note: If you have important files in the Windows partition, please make a backup of necessary files.


If you don't want your data to be erased but want to install Ubuntu over XP, you need to backup your data. You could also keep your old partition(s) but I don't recommend that. Copy your data to an external drive, choose "Use the entire Disk" and then copy the data back to your internal hard disk.

  • i dont have an external harddisk to backup my data ..... is there any other option ?
    – SaiKanth_K
    Commented Apr 23, 2012 at 16:36
  • How big are your partitons and on which one(s) is your important data?
    – jplatte
    Commented Apr 23, 2012 at 17:43

Not the answer you're looking for? Browse other questions tagged .