Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed 12.04 from Pendrive. Now I want to partition my 500GB HDD in the following order: 50GB for the Ubuntu OS, 70GB for Windows 7, remaining for data storage.

  1. How to do partition in Ubuntu?
  2. After that how to install Windows 7?
share|improve this question

You can use gParted to partition your harddrives.

To make a new partition, first shrink an existing partition (if you don't have enough unallocated space). The remaining space would be turned into unallocated space. Then you can make a new partition in that space.

Here is the tutorial for gparted:

After that, you can normally install your Windows. But you won't be able to boot back into Ubuntu as the GRUB, needed to boot Ubuntu, would be replaced by the boot loader of Windows.

You would need a Live USB/CD/DVD of Ubuntu. After installing Windows, boot with any Live media. Open up a terminal and run the following commands:

sudo grub-install /dev/sda
sudo update-grub

Note that here /dev/sda is the name of the harddisk. To check the name of your harddisk run sudo fdisk -l. You'll see several names like /dev/sda1, /dev/sda2, etc. These are the names of the partitions, but /dev/sda is the name of the disk.

share|improve this answer
Edited the answer. Thanks! – green Aug 22 '12 at 16:20

i think, the best solution for you is using of Acronis Disk Director Suite (google it). You need a blank CD for burning this suite. You will get a bootable CD with all tools that you need

share|improve this answer

Your Answer


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.