Computing.Net > Forums > Linux > Checking Hard Disk free space

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Checking Hard Disk free space

Reply to Message Icon

Name: judson_jebaraj8
Date: December 9, 2005 at 04:59:35 Pacific
OS: Redhat Linux 9.0
CPU/Ram: 512M
Comment:

Hi Guys

I need to check the free space of the hard disk in RedHat Linux 9.0. I used command df, its giving partion size, partion used,
partion available for use.

But I want to know the total disk space is free and used, like my hard disk size is 40 GB, but used only 20 GB, now how can i know the remaining unused space in linux.(It means I need to know the free unpartioned space).

Rgds
Jebaraj



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: December 9, 2005 at 06:14:58 Pacific
Reply:

"partion available for use" is what you are after. You might just want it in a more human readable form (eg in Gb, Mb etc), just pass the "h" switch:
$ df -h


0

Response Number 2
Name: judson_jebaraj8
Date: December 12, 2005 at 22:53:33 Pacific
Reply:

I want like hard disk free space left unpartition, df -h only shows partitioned disk free space and used space.

But I want to know the unpartition free space in my Hard disk. For example my hard disk size is 40GB, I used only 20 GB while installing, I need to know the remaining unpartitioned disk space. How can I know the remaining 20GB disk space is free.

Rgds
Jebaraj



0

Response Number 3
Name: 3Dave
Date: December 13, 2005 at 09:30:11 Pacific
Reply:

Haven't tried it as I don't currently have any drives with unpartitioned space, "cat /proc/partitions"? You could also try "fdisk -l" or using parted (or qtparted/gparted if you want a GUI).


0

Response Number 4
Name: davemiller
Date: December 14, 2005 at 13:32:46 Pacific
Reply:

as root, use the cfdisk command

ex:$ cfdisk /dev/hdx

("x" being the drive letter, which is probably "a" if you have only one hard drive)

have a look and then just quit the program

I'm not as dumb as I am.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Checking Hard Disk free space

best linux possible www.computing.net/answers/linux/best-linux-possible/19452.html

Get hard disk information www.computing.net/answers/linux/get-hard-disk-information/13711.html

part of hard disk missing www.computing.net/answers/linux/part-of-hard-disk-missing/23288.html