Can mounting a usb flash drive with the sync option damage it ?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can mounting a usb flash drive with the sync option damage it ?
I came across something on the internet that said that the sync option was on by default on some Linux systems and that this would damage flash drives using a VFAT file system by repeatedly writing to the FAT. It also said that even though the man page said that the default was to NOT mount with sync some systems do anyway. Should I be concerned? How can I conclusively verify that this is NOT happening? I ran mount with out parameters and neither async or sync was listed. I am using Ubuntu Dapper Drake. Thanks a LOT for any help anyone may be able to render. I'm worried.
Don't worry about it. The sync option flushes any writes to disk immediately instead of caching, so you'll tend to get more writes if you're doing a lot of file manipulations which, over time, will wear out the flash memory on the drive. Fortunately, though, the write cycle life of most recent flash is in the 100's of thousands of operations before you should see any effects. If it's just an external storage key for moving files between machines, then it'll probably outlive you whether sync is switched on or not.
It's probably actually safer to have sync on, as there's less likely to be any corruption should you pull the drive out without unmounting it.
More important I think is to add the noatime (or perhaps relatime) and nodiratime mount options, which prevent the system from updating the access times of files and directories when they are only being read. This can save a lot of write/erase cycles and increase the active life of flash memory; and possibly improve performance as well. It's probably a good idea to use it on all of your drives, actually.
I think I'm going to do as David the H suggests and mount my flash drives with the options he suggested. Would it be best to do this from the command line? I have no problems with that. I guess I would have to put an entry in fstab? What should I put? Does anyone have any suggestions? Thanks again!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.