Mysterious drive capacity numbers....?

Karl Auer kauer at biplane.com.au
Tue Dec 14 11:53:59 UTC 2010


On Tue, 2010-12-14 at 12:01 +0100, Loïc Grenié wrote:
> > Filesystem           1K-blocks      Used Available Use% Mounted on
> > /dev/sdb1            961432072  57820632 854773440   7% /media/nc1
> >
> > Note that the amount used is given as 57,820,632K - about 57GB.
> >
> > But 961 - 854 = 107. Where did the extra 50GB go?
> 
>     That's 5% reserved "for root". Any non-root user can put data on the
>   drive as long as used space is less than 912594072k. As soon as used
>   space goes above 912594072k, only root can write (up to 961432072k).

Makes sense, and as soon as I read your message I remembered about
reserved space. I realised after writing my previous message that any
formatting overhead is of course already reflected in the reported size
of the partition. Which does mean a pretty large formatting overhead,
but the 50GB I've "lost" are in addition to that.

dumpe2fs shows a "reserved block count" of 12209500 and a block size of
4096. That's pretty close to 50GB :-) I think I will use tune2fs to
lower that.

Running "df -k" as root does not show different numbers, which is mildly
irritating.

Thanks, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)                   +61-2-64957160 (h)
http://www.biplane.com.au/kauer/                   +61-428-957160 (mob)

GPG fingerprint: DA41 51B1 1481 16E1 F7E2 B2E9 3007 14ED 5736 F687
Old fingerprint: B386 7819 B227 2961 8301 C5A9 2EBC 754B CD97 0156
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20101214/8d39b0aa/attachment.sig>


More information about the ubuntu-users mailing list