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

Re: lost disk space



On 07/20/2011 08:34 AM, Martin Ågren wrote:
On 20 July 2011 07:12, Frank McCormick<debianlist@videotron.ca>  wrote:
Spent  a few hours watching online video tonight (the Discovery website)
and discovered afterwards that I had lost about 7 GIGS of diskspace!!
I assume it was because of all that video watching (in Google-Chrome) but
now I can't find out where it's gone ?
You could try something like

du -h | grep -E "^.{1,5}G"

from e.g., your home directory. This will report disk usage of each
FILE, recursively for directories (-h for human-readable sizes) and
pick only those lines that are reported using the Gigabyte unit.
Somewhere in the output of this command, you might find your problem.

Hope that helps,
Martin


Is chrome running ?
It usually keeps only file descriptor open , but file is deleted ...

you can check /proc/{chrome-pid}/fd with ls -l and grep for deleted files

something like that

pidof chrome| sed 's/\s/\n/g' | while read line ; do ls -l /proc/$line/fd/ | grep deleted | awk -v line=$line '{print "/proc/"line"/fd/"$9}' ; done | xargs ls -lh lrwx------ 1 root root 64 Jul 20 09:43 /proc/22474/fd/22 -> /dev/shm/.com.google.chrome.jWfLZS (deleted) lrwx------ 1 root root 64 Jul 20 09:43 /proc/22474/fd/23 -> /dev/shm/.com.google.chrome.IZGUMb (deleted) lrwx------ 1 root root 64 Jul 20 09:45 /proc/22482/fd/23 -> /dev/shm/.com.google.chrome.jWfLZS (deleted) lrwx------ 1 root root 64 Jul 20 09:45 /proc/22482/fd/24 -> /dev/shm/.com.google.chrome.IZGUMb (deleted) lrwx------ 1 malex toor 64 Jul 20 09:43 /proc/22524/fd/25 -> /data/tmp/FlashXXkMs72Y (deleted)


Hope this helps ,

Alex


Reply to: