On Thu, Jul 30, 2009 at 11:33 AM, Boyd Stephen Smith Jr.<bss@iguanasuicide.net> wrote:
In <4A719CC3.7050201@dodin.org>, jdd (kim2) wrote:
Chuck Payne a écrit :
I have a question. Have you ever seen disc space just disappear and you were unable to find what is using?
look at mount points. May be you had a failure in mouting and so some files are hidden under the mount point
You can to this simply by bind mounting root on a temporary mount point: mount -o bind / /mnt
Then, you can use whatever tools you'd normally use to look for files taking up space, such as: du -ax /mnt | sort -rn /tmp/fs_report && head -n $((LINES - 2)) /tmp/fs_report | cut -c "-$COLUMNS"
Finally, you may want to use lsof etc. to look for "phantom" files. When an open file is deleted from a Linux/UNIX file system, it continues to take up space in the file system and can even grow but won't be visible in directory listings until the last process using it has closed it, at which point all the space will be released back to the file system. -- Boyd Stephen Smith Jr. ,= ,-_-. =.
Cool trick. I did not know that one. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org