🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #25982

Re: df usage wrong

#25982
From: Terry L Ridder
Date: Sun, 08 Feb 1998 00:00
48 lines
2053 bytes
Peter Augustin wrote:
> 
> Hi!
> 
> Please look at this:
> 
> readme:~$ df
> Filesystem         1024-blocks  Used Available Capacity Mounted on
> /dev/md0             23500763 21962138   268697     99%
> /var/news/spool/articles
> 
> Add 21,962,138 and 268,697 -> its 22,230,835 Bytes.
> 
> Why says df 23,500,763 and not 22,230,835 Bytes? There are 1,269,928
> Bytes missing.
> 
> The machine is Linux 2.0.32 using the md Softraid System.
> 
> --
> 
>           Realname: Peter Augustin            EMail: acp@inode.at
>           Homepage: http://www.inode.at/acp/    IRC: ACP #inode

First off the numbers returned by 'df' are 1024-blocks not bytes.
If you desire bytes you need to take the numbers and multiply by
1024.

Linux reserves disk space for root, which is why sometimes
when 'df' is run you will see Capacity > 100%.

If you take 1,269,928 / 23,500,763 == .0540 or roughly 5.4%
is reserved, which would be about normal.

-- 
Terry L. Ridder
Blue Danube Software (Blaue Donau Software)
"We do not write software, we compose it."

 When the toast is burnt
 and all the milk has turned
 and Captain Crunch is waving goodbye
 when the Big One finds you
 may this song remind you that they 
 don't serve breakfast in hell
 ==Breakfast==Newsboys

Technical Details
Message-ID: <6bl34q$c87$1@gte2.gte.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.linux.development.system.mbox.zip!not-for-mail
References: <34DD77B9.6BAC482A@inode.at>

Show Full Headers
Complete Article Headers
Message-ID: <6bl34q$c87$1@gte2.gte.net>
Subject: Re: df usage wrong
Date: Sun, 08 Feb 1998 00:00:00 +0000
From: Terry L Ridder <terrylr@tbcnet.com>
References: <34DD77B9.6BAC482A@inode.at>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.linux.development.system.mbox.zip!not-for-mail
X-Deja-AN: 323214445
Content-Transfer-Encoding: 7bit
To: acp@inode.at
Content-Type: text/plain; charset=us-ascii
Organization: Blue Danube Software
X-Auth: C2079E414D9DD6C318978491
Mime-Version: 1.0
Newsgroups: comp.os.linux.development.system,news.software.nntp