If I edit the files on my pendrive, and then just remove it physically, the data will not be recorded. I have to click "eject", and so the led starts to blink, and the data starts to be recorded.
How can I change this, so that the data is recorded instantly when changed?
update: Ubuntu 11.10
In Ubuntu 11.10 I wrote the rules file (from @enzotib answer), and works, but gives the following message when I try to eject/unmount:
(should I start another question for Ubuntu 11.10?)