Can mounting a usb flash drive with the sync option damage it ? - LinuxQuestions.org
LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
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

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 03-03-2008, 03:22 PM   #1
electronpusher
LQ Newbie
 
Registered: Mar 2008
Posts: 11
Exclamation 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.
electronpusher is offline  
Tag This Post , ,
Reply With Quote
Old 03-03-2008, 05:24 PM   #2
ilikejam
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
ilikejam is offline     Reply With Quote
Old 03-04-2008, 10:04 AM   #3
David the H.
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.
David the H. is offline     Reply With Quote
Old 03-04-2008, 12:27 PM   #4
electronpusher
LQ Newbie
 
Registered: Mar 2008
Posts: 11
Smile Thanks to ilikejam and David the H .........

Your posts were timely and very helpful..... I feel a WHOLE lot better!
electronpusher is offline     Reply With Quote
Old 03-04-2008, 12:46 PM   #5
electronpusher
LQ Newbie
 
Registered: Mar 2008
Posts: 11
Cool 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!
electronpusher is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sync a USB flash drive with HD folders, possible? Valandil Linux - General 5 09-21-2007 09:00 PM
Mounting a USB Flash drive carlgulliver100 Linux - Software 2 11-13-2006 12:51 PM
Booting from USB flash drive is my only option? ex0r Linux - Laptop and Netbook 1 11-03-2006 05:25 AM
mounting a usb flash drive chodeman07 Linux - Hardware 1 02-09-2006 09:59 AM
Mounting a USB Flash Drive Garibaldi3489 Slackware 3 01-04-2005 10:09 PM


All times are GMT -5. The time now is 10:42 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Open Source Consulting | Domain Registration