From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cebf,a62238f79963f467 X-Google-Attributes: gid10cebf,public X-Google-Thread: 1164f8,a62238f79963f467 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-02-26 12:22:49 PST Xref: gmd.de comp.sys.dec:13628 comp.sys.dec.micro:1588 Path: gmd.de!xlink.net!howland.reston.ans.net!pipex!uunet!solaris.cc.vt.edu!csugrad.cs.vt.edu!not-for-mail From: jaitken@csugrad.cs.vt.edu (Jeff 'RTFM' Aitken) Newsgroups: comp.sys.dec,comp.sys.dec.micro Subject: Re: I forgot the command to find total disk space available Followup-To: comp.sys.dec,comp.sys.dec.micro Date: 26 Feb 1994 15:22:49 -0500 Organization: Virginia Tech Computer Science Dept, Blacksburg, VA Message-ID: <2kob2p$a0k@csugrad.cs.vt.edu> References: <2kjdbb$fje@menudo.uh.edu> <2kll4q$ca8@menudo.uh.edu> Reply-To: jaitken@vt.edu NNTP-Posting-Host: csugrad.cs.vt.edu X-Newsreader: TIN [version 1.2 PL2] 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 <=--- + +-------------------------------------------------------------------------+