[clue-tech] Missing disk space?

Kevin Fenzi kevin at scrye.com
Tue May 24 12:06:35 MDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> "Angelo" == Angelo Bertolli <angelo at freeshell.org> writes:

Angelo> I just noticed that df on a partition does not result in
Angelo> anywhere near the same amount of disk space being used
Angelo> reported by du.  Should I be worried about something here?

Angelo> angelo at descartes:~$ df -h Filesystem Size Used Avail Use%
Angelo> Mounted on /dev/hda1 1.7G 479M 1.2G 30% / tmpfs 23M 0 23M 0%
Angelo> /dev/shm /dev/hda6 4.1G 33M 3.9G 1% /home angelo at descartes:~$
Angelo> cd /home angelo at descartes:/home$ du -sh 116K .

Well, there are 2 things that could be going on here. 

- - If you are using a journaled fs (ext3 in particular) the journal
takes up some space on the partition and it's not something you can
see with ls. Thats usually pretty small though. 

- - There might be a file on there that is still open by some process
that was rm'ed. The rm will work and the file will no longer show in
'ls' but it will still exist on disk until the last process that had
it open is gone. You can see if this is the case with 
'fuser -m /home', which should show all processes on that device. 

kevin

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQFCk20u3imCezTjY0ERAlfbAJ4r3RXzwFmy6p7pfHCwC4lN1GhzOwCePkwx
CoXrbCkQZtsUkyHwlqcnlUc=
=J4M4
-----END PGP SIGNATURE-----



More information about the clue-tech mailing list