LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 01-16-2015, 02:29 AM   #1
RHCE_ran
Member
 
Registered: Oct 2013
Posts: 90

Rep: Reputation: Disabled
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
 
Old 01-16-2015, 02:34 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,585

Rep: Reputation: 3504Reputation: 3504Reputation: 3504Reputation: 3504Reputation: 3504Reputation: 3504Reputation: 3504Reputation: 3504Reputation: 3504Reputation: 3504Reputation: 3504
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.

Last edited by syg00; 01-16-2015 at 03:10 AM. Reason: typo
 
Old 01-16-2015, 04:27 AM   #3
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,239

Rep: Reputation: 5453Reputation: 5453Reputation: 5453Reputation: 5453Reputation: 5453Reputation: 5453Reputation: 5453Reputation: 5453Reputation: 5453Reputation: 5453Reputation: 5453
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.
 
Old 01-29-2015, 06:01 AM   #4
RHCE_ran
Member
 
Registered: Oct 2013
Posts: 90

Original Poster
Rep: Reputation: Disabled
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
 
Old 01-29-2015, 10:32 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,657

Rep: Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911
Quote:
Originally Posted by RHCE_ran View Post
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.
 
Old 02-02-2015, 12:21 AM   #6
RHCE_ran
Member
 
Registered: Oct 2013
Posts: 90

Original Poster
Rep: Reputation: Disabled
That's a sarcastic reply.
 
  


Reply


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
What to do with Unallocated space Fixit7 Puppy 1 01-06-2015 03:52 AM
How Much Hard Disk Space required to install RHEL AS 5.0 singh_chitranjan Linux - Newbie 1 06-24-2008 01:22 AM
Unallocated hard disk space now unusable!!!320 GB SATA riodeuno Slackware 6 08-25-2007 12:20 AM
moving unallocated disk space into reiserfs partition. GUIPenguin Linux - General 3 04-08-2006 03:07 PM
add unallocated free space to existing disk drives!! ajaymyeg Linux - Networking 1 07-21-2004 08:17 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 03:31 AM.

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