Operating System - Linux
1823062 Members
3460 Online
109645 Solutions
New Discussion юеВ

how to check free/unallocated/unpartitioned space of hdd

 
SOLVED
Go to solution
Maaz
Valued Contributor

how to check free/unallocated/unpartitioned space of hdd

Dear Experts
fdisk doesnt show the unpartitioned/free space of hard disk.
how to check free/unallocated/unpartitioned space of hard disk ?

Regards
Maaz
14 REPLIES 14
Ivan Ferreira
Honored Contributor
Solution

Re: how to check free/unallocated/unpartitioned space of hdd

Fdisk shows the total size of the disk, and the current partitions. You can know the free space by using these information.

If you post the results of the fdisk -l command, i will tell you how much free space you have in your disk (if any).
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Andrew Bruce
Valued Contributor

Re: how to check free/unallocated/unpartitioned space of hdd

Ivan is right, fdisk -l will show you disk space and how it is allocated.

Alternatively, if you're looking for an easy way to examine your disks, try qtparted:
http://qtparted.sourceforge.net/index.en.html

It's billed as a linux clone of Partition Magic.

The downside is that fdisk is included by default on all linux distros, while qtparted is not...

Regards,

Andy Bruce
I Love it when a plan comes together!
Maaz
Valued Contributor

Re: how to check free/unallocated/unpartitioned space of hdd

Thanks Ivan Ferreira and Andrew Bruce
Ivan Ferreira i m sending the output of fdisk -l /dev/hda

Maaz
Valued Contributor

Re: how to check free/unallocated/unpartitioned space of hdd

Dear Andrew Bruce i m trying to install the qparted and the following error received

checking for Qt... configure: error: Qt (>= Qt 3.3) (headers and libraries) not found. Please check your installation!

I m sending u the output of ./configure

Regards
Maaz
Ivan Ferreira
Honored Contributor

Re: how to check free/unallocated/unpartitioned space of hdd

You have 883923 free 1k blocks (+/- 880MB).
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Maaz
Valued Contributor

Re: how to check free/unallocated/unpartitioned space of hdd

Thanks Ivan Ferreira.
Plz help regarding QT error

Regards
Maaz
Ivan Ferreira
Honored Contributor

Re: how to check free/unallocated/unpartitioned space of hdd

Try installing qtparted from the rpm file:

http://dag.wieers.com/packages/qtparted/

Use rpm -ivh qparted-.rpm

To install.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Maaz
Valued Contributor

Re: how to check free/unallocated/unpartitioned space of hdd

Thanks Ivan Ferreira for the help
http://dag.wieers.com/packages/qtparted/ they dont have rpm for rhel 4. So what should i do then ?
Second i download the rhl9 rpm and tried to install the rpm on rhl 9 box, it shows two dependencies
#rpm -ivh qtparted-0.4.4-1.0.rh9.rf.i386.rpm
warning: /opt/qtparted-0.4.4-1.0.rh9.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
libdal-0.3.so.0 is needed by qtparted-0.4.4-1.0.rh9.rf
libreiserfs-0.3.so.0 is needed by qtparted-0.4.4-1.0.rh9.rf
Any help will be highly appreciated

Regards
Maaz
Ivan Ferreira
Honored Contributor

Re: how to check free/unallocated/unpartitioned space of hdd

Sorry, I did not realized that, go here:

http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/config(qtparted)

If there are dependencies, you need to search, download and install them also.

Specify the dependencias along with the package, so, it will look like:

rpm -ivh package.rpm package.rpm package.rpm

or

rpm -Uvh package.rpm package.rpm package.rpm
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Maaz
Valued Contributor

Re: how to check free/unallocated/unpartitioned space of hdd

Thanks Ivan Ferreira for continous help
But unfortunately they http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/config(qtparted) also dont have qtparted for rhel 4.
I think the only possible solution is to install from source.
so if u, or any1 here can plz help me to install qtparted from source. I tried to install from source and have posted the error, in the earlier post

Once again thanks

Regards
Maaz
Ivan Ferreira
Honored Contributor

Re: how to check free/unallocated/unpartitioned space of hdd

The link that I provided before had qparted for FC4, do you see a different output?. Is located here:

http://download.fedora.redhat.com/pub/fedora/linux/extras/4/i386/

Specifically:

http://download.fedora.redhat.com/pub/fedora/linux/extras/4/i386/qtparted-0.4.4-3.i386.rpm

Doing it from the source will require the installation of libraries, etc. That's why I insist with rpm files. Also, programs to support ntfs, xfs, etc, or disable them at compilation time.

Cheers!
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ivan Ferreira
Honored Contributor

Re: how to check free/unallocated/unpartitioned space of hdd

Also, if you have full Internet access, and you configured the /etc/yum.conf file, you may try install qtparted using:

yum install qtparted

YUM will download the packages and the dependencies (I cannot test).
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Maaz
Valued Contributor

Re: how to check free/unallocated/unpartitioned space of hdd

Thanks Ivan
closed
Regards
Maaz
Jess Long
Frequent Advisor

Re: how to check free/unallocated/unpartitioned space of hdd

Maaz:

My personal choice for determining what is in use on a disk is sfdisk -l .

This should identify each partition, what type it is, it's size, etc.

Regards,
Jess