resize the hard disk partition
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
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- 2008-01-29
- Last reply:
- 2008-01-30
Allen Chemist (alchemist) said : | #1 |
Free space is quite simple, just type:
df
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:
http://
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
-allen
peter b (b1pete) said : | #2 |
Hello,
First check if gparted is installed System-
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.