LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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

Reply
 
Search this Thread
Old 03-03-2008, 02:22 PM   #1
electronpusher
LQ Newbie
 
Registered: Mar 2008
Posts: 14

Rep: Reputation: 0
Exclamation 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.
 
Old 03-03-2008, 04:24 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
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
 
Old 03-04-2008, 09:04 AM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946
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.
 
Old 03-04-2008, 11:27 AM   #4
electronpusher
LQ Newbie
 
Registered: Mar 2008
Posts: 14

Original Poster
Rep: Reputation: 0
Smile Thanks to ilikejam and David the H .........

Your posts were timely and very helpful..... I feel a WHOLE lot better!
 
Old 03-04-2008, 11:46 AM   #5
electronpusher
LQ Newbie
 
Registered: Mar 2008
Posts: 14

Original Poster
Rep: Reputation: 0
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!
 
  


Reply

Tags
flash drive, mounting, sync


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
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 9 03-14-2010 11:16 PM
Mounting a USB Flash drive carlgulliver100 Linux - Software 2 11-13-2006 11:51 AM
Booting from USB flash drive is my only option? ex0r Linux - Laptop and Netbook 1 11-03-2006 04:25 AM
mounting a usb flash drive chodeman07 Linux - Hardware 1 02-09-2006 08:59 AM
Mounting a USB Flash Drive Garibaldi3489 Slackware 3 01-04-2005 09:09 PM


All times are GMT -5. The time now is 04:27 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration