Linux - General This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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. |
 |
03-03-2008, 03:22 PM
|
#1
|
|
LQ Newbie
Registered: Mar 2008
Posts: 11
|
Can mounting a usb flash drive with the sync option damage it ?
[ Log in to get rid of this advertisement]
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.
|
|
|
|
03-03-2008, 05:24 PM
|
#2
|
|
Senior Member
Registered: Aug 2003
Location: Glasgow, Scotland
Distribution: Fedora 7/8 / Solaris 8/9/10
Posts: 2,684
|
Hi.
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.
Dave
|
|
|
|
03-04-2008, 10:04 AM
|
#3
|
|
Senior Member
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian Sid/kde3.5
Posts: 1,580
|
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.
|
|
|
|
03-04-2008, 12:27 PM
|
#4
|
|
LQ Newbie
Registered: Mar 2008
Posts: 11
|
Thanks to ilikejam and David the H .........
Your posts were timely and very helpful..... I feel a WHOLE lot better!
|
|
|
|
03-04-2008, 12:46 PM
|
#5
|
|
LQ Newbie
Registered: Mar 2008
Posts: 11
|
Mounting Flash Drives from the Command Line ?
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!
|
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:42 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
LQ Podcast
LQ Radio
|
|