Best mount options for USB flash drives?

Peter plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Tue Apr 18 01:18:25 UTC 2006



On Mon, 17 Apr 2006, Walter Dnes wrote:

>  Flash drives have a finite (large, but still finite) number of writes
> before a sector "wears out".  I just got an MP3 player and am charging
> the internal battery... via USB... nice.
>
>  The player is formatted fat32 according to "fdisk -l".  I assume that
> "noatime" is a necessity.  Even with a FAT32 fs, the "ls" command will
> cause the "access time" attribute for a file to be rewritten.  "noatime"
> overrides that.  I'm not sure whether or not "sync" is even possible on
> a FAT32 mount, but my gut feeling is that "async" should be "kinder and
> gentler" on the flash drive, because it gathers together a bunch of
> separate writes into one big write.  Does USB2 versus USB1.1 make any
> difference?

My current options for automounting cameras and flash drives are:

fs="vfat"; options="rw,async,noatime,users,exec,uid=plp,gid=users,umask=000";;

additionally, automount is run with --timeout=2 which causes fast 
unmounts. Fast enough that you have to be real quick to pull the drive 
out before it stops flashing.

Peter
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list