How to change the partition sizes after installing ubuntu?

Asked by Mr. Singh

I have installed Ubuntu 11.04. I am having severe issues with the partitions I created while installing linux. Actually I was completely new to linux interface (earlier i was window XP/7 user). The problem persists when I replaced window with linux. I created five partitions for my 160GB HD as I was expecting earlier that drives like window XP/7 would be created after partition.
So I created 5 partitions. But I was surprised to know that linux doesn't create drives like xp instead it uses mount points. I used five mount points:
1) / : 37.25 GB
2) home: 37.25 GB
3) usr : 35.39 GB
4) opt : 35.39 GB
5) Swap : 3.76 GB

Here i got problem after installing linux, i come to know that i can use only 'Home' to store my data. So all others are useless to me. I want to decrease the size of 'usr' and 'opt' mount points and also want to increase the size of 'home' without losing any data or reinstalling ubuntu. Is it possible?

Additional Note: I am using ext4 filesystem and created 'home, 'usr', 'opt' as extended.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu ubiquity Edit question
Assignee:
No assignee Edit question
Solved by:
Mr. Singh
Solved:
Last query:
Last reply:
Revision history for this message
Maxim Petrov (maximpetrov) said :
#1

Yes, it possible. Boot from Ubuntu LiveCD and run GParted partition editor. GParted allow you to change size of partitions. I think you'll understand interface.

P.S. I don't think you need partition for /opt. Ubuntu usually not use this directory for install programs.

Revision history for this message
marcus aurelius (adbiz) said :
#2

the only separate partition you need is /home. i put /opt in its own partition. something corrupted ubuntu and i had to reinstall everything. the existing /opt partition created tons of problems and i had to delete it and reinstall again. putting /opt in its own partition is useless, as programs aren't unique installed in /opt anyways.

Revision history for this message
Mr. Singh (gurbrinder007) said :
#3

i have installed gparted in ubuntu. Will it work the same way as the live cd? Should i unmount all mount points first? The option for resizing is not highlighted. I hope my data should not be washed.

Revision history for this message
Maxim Petrov (maximpetrov) said :
#4

Yes, it will be work the same way, but you must unmount all partitions what you want to resize. But when in installed ubuntu you can't unmount /home and /usr, so you should boot from LiveCD for this operation.