Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to install ubuntu on my current hard drive which currently contains two partitions, my Windows partition (sda2, view image attached) and a recovery partition (sda2).

I want to create a new partition for ubuntu but it does not give me the option. The installer says "This computer currently has multiple operating systems on it. What would you like to do?" and gives me two options: erase disk and install Ubuntu or something else. Should I create a new partition through Windows (and if so what format) or the new partition table (which would delete all current partitions?

Help me I'm lost! I really love Ubuntu and I want it on my computer.

share|improve this question
    
What exactly are you trying to do? Replace Windows with Ubuntu, or dual-boot Windows and Ubuntu? –  Adam Martinez Apr 7 '12 at 19:40
    
Dual-boot Windows and Ubuntu. –  user53925 Apr 7 '12 at 19:55

1 Answer 1

First you need to resize your windows 7 partition and create a new partition for installation.

If you are more familiar with windows you can do it from windows disk management utility or using gparted in ubuntu.

Take Backup before doing anything else. Also create recovery media s for restoration. You might loose ability to use recovery partition in easy way

In Windows

  1. Open Run prompt by pressing Win + R. Type diskmgmt.msc to open up the management console.
  2. Right click on C: drive containing Windows 7 and choose shrink. Follow the wizard to shrink it as much as possible.There will be unallocated space now. Close the window.
  3. Now to create an extended partition. (There difference between primary partition and logical partition,to avoid multiple OS installation problem we are creating this) To do so, press Win, search for cmd. Now right click on it and choose run as administrator.
  4. In console type diskpart, when diskpart changes the prompt. type following commands one by one

    select disk 0
    create partition extended
    
  5. Now again open disk management by following step 1.
  6. Right click on the unallocated space and select New simple volume, change the amount of space you want to be in ubuntu drive. choose do not format this drive in the next step. We will use this volume as for ubuntu installation.
  7. The rest of unallocated space you can create as many parition as you want by following the sixth step and formatting to ntfs (if you want them to use in windows).

A good partition tutorial is here if you are in any doubt

Now get back to ubuntu installation:

  1. Boot up using the live cd/usb. Now choose something else option.
  2. Gparted tool will open with your current disk configuration. Figure out the space you reserved in step 6 for ubuntu. Click on that, choose delete. It will became free space.
  3. Creating swap space: click on the free space , the click on add. Now select file system as SWAP and size as 1GB (swap space is alternative to RAM, depending upon ram size you can decide )
  4. Creating the ubuntu disk: Now after adding swap space, there will be free space. Click on that, again click add. This time choose file system as ext4 and for mount point select / from the drop down.

A reference image of my system :

enter image description here

Now go forward with your install. Ubuntu and windows duel boot will ready in minutes. :)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.