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 have 2 partitions Windows7 and Ubuntu. Both are installed and running well, except I would like to get rid of my windows 7 or at least a part of it and give that space to ubuntu.

So I am looking for the best way (not sure if it's doable too) to format my windows 7 partition and give that space to my ubuntu parition.

share|improve this question

This is not difficult to do; but you will need to create a bootable Ubuntu CD or USB, as you cannot edit or remove a partition you are currently using. Once you have done this, boot into it and open Gparted then delete the partition you no longer want. You can then right click on the other and expand it to fill the remaining space.

Reboot into Ubuntu and run

sudo update-grub

to remove the old Windows entry from your boot menu.


Resizing partitions always has the potential to cause data loss, although such loss is very unlikely.


Resizing and moving partitions CAN (depending on your exact partition layout) confuse GRUB and render your machine temporarily unbootable. This is easily fixed by using something like the Super Grub Disk to boot back into your machine, though that requires you having a separate working machine to create a Super Grub Disk with. You can then run sudo update-grub to restore normal booting.


Consider reinstalling Ubuntu over your entire disk, which will result in a cleaner system overall. This will, however, wipe all data on your disk.

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.