Autounmounting USB keys with FAT filesystem on Linux (RHEL5)

Posted by niXar on Super User See other posts from Super User or by niXar
Published on 2009-09-17T12:40:16Z Indexed on 2010/06/08 12:02 UTC
Read the original article Hit count: 269

Filed under:
|
|
|
|

For security reasons, I have two workstations i front of me, and I can only transfer data between them through a USB key.

As you can imagine, it can get quickly tiresome, but the most annoying is having to unmount the things before removing them. Not umounting them results in missing files most of the time, even if I remove them a while after having last written to them.

Now, since they're only used for transferring smallish files, and each are basically written once and read once, I don't need the fancy pansy caching infrastructure that makes clean unmounting a necessary step. And since the data is always a copy of something I have at hand, I don't care if the filesystem croaks from time to time.

But anyway the system doesn't need to force that on me, it could simply make sure everything is committed with a second, and works synchronously. Then when I remove the key, nothing is lost. Is there a way to do this?

I would appreciate any other tips on handling this situation.

Edit: it appears the situation has changed between RHEL5 and Fedora up to F11 on one hand, and F12 on the other. The latter use DeviceKit-disk, and I haven't quite figured out how to do this. The method provided below in gconf does not work anymore.

© Super User or respective owner

Related posts about linux

Related posts about gnome