On Fri, 2004-03-05 at 17:35, Galen wrote:
> $ df .
> Filesystem            Size  Used Avail Use% Mounted on
> -                     244M  167M   77M  69% /cygdrive/f
> 
> $ ls -hl
> total 4.1G
> -rw-r--r--    0 huggy    None          16E Dec 31  1969 Inbox
> -rw-r--r--    1 huggy    None         247k Feb  4 22:34 Inbox.msf
> 
> Do you think I could wget the Internet with that much space?

This is a good indicator that your file system is corrupt, which happens
far too often with flash drives. The major problem is that people
neglect to unmount the drive before removing it (Windows also) but the
system delays writes until the next the next convenient time. This is
further complicated by the fact that Windows will often mysteriously
lock files on the drive making it impossible to unmount.

The solution is to make all writes synchronous (disable write-caching
for the drive on windows, mount with -o sync in Linux) and at least
don't pull it out while you know it may still be writing. Of course the
best way is to always unmount it properly anyway.

Other things could cause this problem of course, like buggy USB hardware
(I know I can't trust mine).


____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to