Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: jaitken@csugrad.cs.vt.edu (Jeff 'RTFM' Aitken)
Subject: Re: I forgot the command to find total disk space available
Date: 26 Feb 1994 15:22:49 -0500	[thread overview]
Message-ID: <2kob2p$a0k@csugrad.cs.vt.edu> (raw)
In-Reply-To: 2kll4q$ca8@menudo.uh.edu

Thomas E. Wright (t-mas@uhibpd.phys.uh.edu) wrote:

: I did df and it gave me all the disk total, used and free numbers. I
: calcualted all of them up an got (according to the machine) 2.74Gb
: total, 1.40Gb used, and .72Gb free. Now, if we subtract used (1.40Gb)
: from total (2.74Gb) we get a different number for free disk space
: (1.34). For some reason, there is .57Gb missing.

     Ultrix filesystems reserve some space (usually somewhere around
10%) on each partition when you run newfs to create the filesystem.
This 10% is only writable by root.  This is why it is possible to do a
'df' and see something like "105% used".  So if you have, say, a 1GB
partition, and run newfs, you will actually only get in the
neighborhood of 900MB usable to regular users.  You can change this by
using the -m option to newfs.  From newfs(8): 

   -m free space %
           The percentage of space reserved from normal users; the
           minimum free space threshold.  The default value used is 10%.

You can also change this with the tunefs command.  See tunefs(8) for
details. 

     Additionally, there is some filesystem overhead.  I remember
asking this same question.  At one point I calculated what Ultrix
filesystems use, and if I remember right it was about 6%.  So, if
you've got a 1GB partition, creating the filesystem will use 60MB,
leaving you with 940MB.  Subtract 10% of that, and you get around
880MB free.  This could be the 'missing' disk space you're referring
to. 

Hope this helps,

Jeff


-- 
+-------------------------------------------------------------------------+
+              ---=>  Jeff Aitken     jaitken@vt.edu  <=---               +
+      ---=>  http://csugrad.cs.vt.edu/~jaitken/jaitken.html  <=---       +
+-------------------------------------------------------------------------+


      reply	other threads:[~1994-02-26 20:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-02-24 23:30 I forgot the command to find total disk space available Thomas E. Wright
1994-02-25 19:56 ` Thomas E. Wright
1994-02-26 20:22   ` Jeff 'RTFM' Aitken [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox