I have installed ubuntu 15.04 by erasing hard disk.During installation, I haven't done the partition.So, can anyone tell me how to do it now? i'm attaching screenshot of gparted here.
2 Answers
You can use gparted, depending what you want to do. It has a gui, so it is very easy to use
- 51
Alright, that partition table is quite ugly. I'd make it different. If you want to apply the changes that I'm going to suggest, you need to start a live session of Ubuntu, like you did for installing the OS on your system.
After launching the live session, open the dash and start gparted.
Now, I don't like two things in your partition table:
1- The swap partition is HUGE for its purpose;
2- You have a large root(/) partition without a separate home (/home) partition.
How to fix those things:
1- Open gparted from a live session;
2- Select the swap partition and resize it to a maximum of 2048Mib (the equivalent of 2Gib). To do that, there's a button in the top menu (view image):

NOTE: do not use my partition table.
3- Resize the root partition (mount point /) to something like 25Gib (it depends on your needs, it can be way larger if you want).
4- Now, with the free space remaining, create a new primary-ext4 partition with mount point set as /home.
Now, you'll have a standard partition table, with a root partition, a home partition and a swap partition.