Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am trying to understand the disk usage in my RHEL system. When I run the Disk Usage Analyzer tool graphically, my screen shows the below output.

enter image description here

However, if I run the command df -h I get the below output.

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda5              38G   23G   14G  64% /
/dev/sda7             146G   48G   91G  35% /home
/dev/sda3              99M   23M   72M  24% /boot
tmpfs                 2.0G     0  2.0G   0% /dev/shm

In the graphical output, I see the / is having 71.7 GB and usage is 100%. However, from the command line, I see that I still have 14G left and the use % is only 64. Why is there a discrepancy between the command line and the graphical output?

How can I interpret the output?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

That's because the GUI tool (I think that's baobab) does not take into account the different partitions, it only looks at the directory tree. This means that it sees /home as a subdirectory of / but does not consider that it is a separate partition.

If you look at your df output:

/dev/sda5              38G   23G   14G  64% /<br>
/dev/sda7             146G   48G   91G  35% /home

you have 23G used in / and 48G used in /home. 48+23=71 so baobab is reporting 71G used in /.

share|improve this answer
    
Thanks for clarifying my doubt! –  Ramesh Oct 16 '13 at 21:21
1  
@Ramesh - I'd also suggest you take a look at the answer I provided to this Q for a more comprehensive list of tools for looking at diskusage. In Centos, how to find free disk space? –  slm Oct 17 '13 at 4:38
    
Thank you! Sure, I will take a look at that. –  Ramesh Oct 17 '13 at 14:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.