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 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
add comment

1 Answer 1

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.

WARNING 1:

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

WARNING 2:

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.

ALSO CONSIDER:

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
add comment

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.