"df" available space output

This is a discussion on "df" available space output within the Linux Administration forums, part of the Linux Forums category; Hello, I'm administering some RH 7.3 boxes and noticed that the "Available Space" output column is ...


Go Back   Usenet Forums > Linux Forums > Linux Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-25-2006
Mike
 
Posts: n/a
Default "df" available space output

Hello,

I'm administering some RH 7.3 boxes and noticed that the "Available
Space" output column is not a direct subtraction. For example, the output:

"""
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/cciss/c0d0p1 248911 98858 137202 42% /
"""

Calculating "1k-blocks - Used": 248911 - 98858 = 150053

Why doesn't it match the available space? I have been administering unix
based servers for a while, but this was something I never paid close
attention to because it was trivial. I'm assuming each file system has
some data structure that's accounted for in the Available space.

Thanks.

--
Mike
Reply With Quote
  #2 (permalink)  
Old 05-25-2006
Chris F.A. Johnson
 
Posts: n/a
Default Re: "df" available space output

On 2006-05-25, Mike wrote:
> Hello,
>
> I'm administering some RH 7.3 boxes and noticed that the "Available
> Space" output column is not a direct subtraction. For example, the output:
>
> """
> Filesystem 1k-blocks Used Available Use% Mounted on
> /dev/cciss/c0d0p1 248911 98858 137202 42% /
> """
>
> Calculating "1k-blocks - Used": 248911 - 98858 = 150053
>
> Why doesn't it match the available space? I have been administering unix
> based servers for a while, but this was something I never paid close
> attention to because it was trivial. I'm assuming each file system has
> some data structure that's accounted for in the Available space.


On most systems, a portion of every file system is reserved for use
by the superuser, and not included in the available space.

--
Chris F.A. Johnson, author <http://cfaj.freeshell.org>
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
===== My code in this post, if any, assumes the POSIX locale
===== and is released under the GNU General Public Licence
Reply With Quote
  #3 (permalink)  
Old 05-26-2006
Mike
 
Posts: n/a
Default Re: "df" available space output

Chris F.A. Johnson wrote:
> On 2006-05-25, Mike wrote:
>> Hello,
>>
>> I'm administering some RH 7.3 boxes and noticed that the "Available
>> Space" output column is not a direct subtraction. For example, the output:
>>
>> """
>> Filesystem 1k-blocks Used Available Use% Mounted on
>> /dev/cciss/c0d0p1 248911 98858 137202 42% /
>> """
>>
>> Calculating "1k-blocks - Used": 248911 - 98858 = 150053
>>
>> Why doesn't it match the available space? I have been administering unix
>> based servers for a while, but this was something I never paid close
>> attention to because it was trivial. I'm assuming each file system has
>> some data structure that's accounted for in the Available space.

>
> On most systems, a portion of every file system is reserved for use
> by the superuser, and not included in the available space.
>


That would be a good thing for root to login :)

Thanks, Davide/Chris.

--
Mike
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:32 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0