I have some trouble in Ubuntu 10.
When I start to copy a file to my flash-drive and then during the copy operation I remove my flash-drive I get an error, as expected.
Then I plug my flash again and try to delete the half-copied file - it removes it correctly, but my flash-drive gets locked (read-only) so I can't save/delete anything on it until I unplug and plug my flash back in.
sudo mount -o remount,rw blabla - works fine too, removing the lock.
How can I fix it so that the disk does not get locked when remove the half-copied file?