Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

disk usage



On 11/24/2009 09:56 AM, Matthew Gillen wrote:
> I'm stumped by my home fileserver's root filesystem usage.  I can't understand
> why it's full.  df -h reports this:
> 
> $ df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/mapper/RootFsPrimary-RootPrimary
>                        30G   28G  460M  99% /
> 
> If I mount /dev/mapper/RootFsPrimary-RootPrimary somewhere else and cd to it,
> then run du -sh *, I get this (I deleted all the directories that were only 4K):
> 7.0M	bin
> 12K	dev
> 102M	etc
> 98M	lib
> 26M	lib64
> 20K	lost+found
> 12K	mnt
> 24M	root
> 17M	sbin
> 68K	tmp
> 4.9G	usr
> 1.1G	var
> 
> That adds up to less than 7G.  Why is my filesystem full then?  Where did that
> other 21G go?  Any ideas?
> 
> Thanks,
> Matt

Could it be a file in the root directory of the file system?  Your 
command was "du -sh *", which will show you disk usage for every file 
under root, but not for root itself.  Try again with "du -sh .".

HTH,

DR






BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org