View Single Post

   
  #8 (permalink)  
Old 01-18-2008, 05:22 PM
Bill Davidsen
 
Posts: n/a
Default Re: SOS! Root filled, want to recover MySQL data!

Thomas wrote:
> Please use "find / -size +100000000C|page" to find out any files bigger
> than 100MB and delete those junk files only if you can figure them out.
> Good luck. Thomas
>

I think some combination of smaller size, mtime (limit to recently
written files), and staying in the filesystem of interest.

example:
find / -xdev -type f -mtime -2 -size +2000000

Then let's sort by size and save in a file...
find / -xdev -type f -mtime -2 -size +2000000 -print0 |
xargs -0 ls -s | sort -n | tee file_in_another_filesystem | tail -20

That will show the largest of the large files modified in the last two
days, the "print0" handles filenames with special characters.

Other tricks include just using the "-ls" in find and "sort +6n" to
order on size. Whatever works for you.

--
bill davidsen
SBC/Prodigy Yorktown Heights NY data center
http://newsgroups.news.prodigy.com
Reply With Quote