resize the hard disk partition

Asked by Ramy Al-AShram on 2008-01-29

i have installed ubuntu gusty on 250G hard disk space.
so I need to know first how much free space do i have in this partition. (from the command line)
second, I need to resize the partition from the command line.
can any one help me in this issue
thanks in advance

Question information

English Edit question
Ubuntu Edit question
No assignee Edit question
Last query:
Last reply:
Allen Chemist (alchemist) said : #1

Free space is quite simple, just type:

If you prefer a "human readable" version (that is, XXMb, XXGb form), type
df -h

Also, to determine file usage (how big is this directory), you can do
du -hs dir
(for a 'human readable summary')

As for the resizing from the command line, parted should do the trick. The official manual is here:

but it appears like it is quite a bit of work to learn. You may also try booting from a livecd, and using the graphical partition editor there (assuming you have a computer with a monitor and supported hardware).

Hope this helps

peter b (b1pete) said : #2


First check if gparted is installed System-->admin-->partition editor or System-->admin-->synaptic and search if gparted pkg is installed; if NOT pls install it.

then in a terminal do

sudo gparted
    enter pwd
and a nice gparted GUI is presented. I MUST draw your attention that this is a very sharp tool --> feel your way how it works first BEFORE committing changes to disk. Please treat it in the same fashion like any tool that alters HDD/partition config --> a small mistake means disaster.

hope this helps.

peter b

Can you help with this problem?

Provide an answer of your own, or ask Ramy Al-AShram for more information if necessary.

To post a message you must log in.