LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   How to find unallocated disk space in RHEL (https://www.linuxquestions.org/questions/linux-enterprise-47/how-to-find-unallocated-disk-space-in-rhel-4175531182/)

RHCE_ran 01-16-2015 02:29 AM

How to find unallocated disk space in RHEL
 
We have RHEL 5.x in our environment. I want to know how to find unallocated disk space. I would explain with an example, say the disk size is 150 GB and only 100 GB shows allocated using

fdisk -l

command. There is no way to find the remaining 50 GB of space.

I hope, I have been able to explain the problem.

Requesting a reply to my query.

Regards

syg00 01-16-2015 02:34 AM

fdisk has all the data you need - simple arithmetic will show you where the unallocated space is.
Both cfdisk and parted will specifically show "free" space.

pan64 01-16-2015 04:27 AM

I think you know, but just to be sure: the occupied disk space is always more than the actual size of the file, therefore you can never use the full capacity of the disk.
df -h (or df -m) will show you the available space on all of your partitions.

RHCE_ran 01-29-2015 06:01 AM

Thanks but fdisk does not show unallocated space.

Regards

---------- Post added 01-29-15 at 07:02 AM ----------

Thanks but fdisk does not show unallocated space, it shows only status of space in partitions.

Regards

TB0ne 01-29-2015 10:32 AM

Quote:

Originally Posted by RHCE_ran (Post 5308192)
Thanks but fdisk does not show unallocated space.

You need to read the man pages on fdisk, and look at the cfdisk and parted pages as well, that syg00 suggested. If there IS unallocated space, those utilities will show it to you, and let you allocate it. As someone who is 'certified', it seems odd that you don't know how to partition a hard drive.

RHCE_ran 02-02-2015 12:21 AM

That's a sarcastic reply.


All times are GMT -5. The time now is 09:36 AM.