Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-06-2010, 12:26 PM   #1
Registered: Apr 2007
Distribution: centos,rhel, solaris
Posts: 239

Rep: Reputation: 30
how to show total free unpartitioned space in a hard drive?


Can anybody tell me a command or way to find out the total amount of free unused partition space in a hard drive?

-- when i use fdisk to create a new partition; its hard to tell how much free space is available.

-- tried searching the net but found no answers. some suggested using cfdisk.
-- i don't have cfdisk installed on the centos 5.3 server. i don't think its bundled in the distro any more.

Old 03-06-2010, 12:27 PM   #2
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 650

Rep: Reputation: 79
df -h

partitioned or unpartitioned?

Last edited by bret381; 03-06-2010 at 12:29 PM.
Old 03-06-2010, 01:32 PM   #3
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741
Originally Posted by bret381 View Post
df -h
Ahem......df reports only on filesystems. It will not tell you anything about unpartioned space (or --I assume-- even about partitions that are not formatted.)

You can see the unpartitioned space with:
fdisk -l
Old 03-06-2010, 01:40 PM   #4
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 650

Rep: Reputation: 79
my bad did not see unpartitioned in the title. Jumping the gun a little bit


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check and use unpartitioned space of Hard disk in linux. nhsarvaiya Linux - Hardware 10 09-17-2014 09:42 AM
how to free up space on my hard drive? beny2 Linux - Server 4 10-06-2009 08:38 PM
Extend ext3 Partition Using Unpartitioned Space On Same Hard Drive - Fedora Core 6 aaron4katie Linux - Hardware 9 01-11-2007 05:20 AM
Unpartitioned Free Space IBall Linux - Hardware 3 04-17-2006 04:37 AM
Not enough free space on hard drive with 50g of free space??? auoq SUSE / openSUSE 5 10-13-2004 08:21 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration