[arch-general] USB Buffering Issue

Timothy Redaelli timothy.redaelli at gmail.com
Fri Dec 2 06:09:59 EST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 12/02/2011 11:58 AM, Paul Gideon Dann wrote:
> On Friday 02 Dec 2011 11:54:45 Timothy Redaelli wrote:
>> Hi, by default linux mounts the devices with the async option. 
>> You can mount using the sync option, so you are sure that the I/O
>> is made synchronously. Just remember: "In case of media with
>> limited number of write cycles (e.g. some flash drives) "sync"
>> may cause life-cycle shortening." (from man 8 mount)
> 
> Yes, that's probably it.  I don't see "sync" in the mount options,
> so I'm guessing it's being mounted async.  Shouldn't udev be taking
> care of this for usb drives?
> 
> By the way, I'm mounting the drive via udisks (from KDE).  So noone
> else is seeing this?

You can try to edit the udev mount options:

# echo 'ACTION=="add", ENV{mount_options}="sync"' >
/etc/udev.d/rules.d/99-mount-options.rules

Then you must reload udev rules:

# udevadm control --reload-rules

- -- 
Timothy Redaelli
drizztbsd @ irc.freenode.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJO2LIEAAoJEOcRMG48T4i8s/8H/iAWvcTkqfrwaibdcatunT5w
O/eWtnw5cw0xoG9IIu13So+a0EuzvWWly5NcNmd8HVqKlmuHi1gimTeAuwdmuS46
tqDIcaYHUfw7VobLEPinWgLeA6QVYTiKPpqP6oxdDeydXYs16ub1F5Gk3OAxXDUQ
C3zQpcfFLVb2wSYYwAoo++USWPApVSAtlfW2mt/7Oz3ggJrhgZN9U+dAWRdLFe/b
Kw+nDJCCG3x33nMSLgAfWe4237Bif0Q2OOZfcZ/RFfV7wRiEZ6AtaRknfVvVIBLy
u53BrUqid9u7ZV7CpTvU41ka2py1KeHMBAXkIDvwCzAhgtDnQSi/Tp9gTfURdm4=
=r74L
-----END PGP SIGNATURE-----


More information about the arch-general mailing list