From: Alexandre P. N. <al...@om...> - 2006-09-20 19:20:10
|
Roland Ambrosch escreveu: >hi, > >well I freed 160kB and even cannot create files. >One extra poblem I have now is, that I moved /etc/services instead of >copying it and can't get ssh access through USB after a reboot :). > >Is there a way to check the filesystem, like fsck does normally? >When will the "free" disk space really be freed? During reboot? During remount? > >best regards, >roland > > > The jffs2 has a garbage collector, I'm not sure when it runs, but in order for it to run it is necessary to have a few sectors free (some clain one is enough, other that it requires at least three). In other words, full space is not a condition jffs2 handles very well. AFAIK there's not a fsck tool for it, but you can extract your files and recreate the filesystem from scratch (yes, I know, that sucks). I'm not sure freeing 160k is enough, I guess it would depend on how the deleted files were spread over the sectors. I guess you should try to fix the ssh startup first, and then moving around (via scp) a lot of your files on the gumstix (try to get at least 400kb free), and then trying to copy then back. When I faced the same problem, jffs2 behaved erratically, sometimes I couldn't even delete files, other times it suceeded, that until I got rid of a log file and then it could use that space for whatever it needed it to. - Alexandre |