Re: USB Buffering Issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



-----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-----


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux