On Thu, 5 Jan 2006, Roger Leigh wrote: > > By any chance, does autofs or autofs4 mount your device with -o sync? > > Doing that with flash memory devices is a grave mistake -- although it > > shouldn't cause the sort of lock-up you described. > > Yes. I have > > pen-secure -fstype=ext2,sync,nodev,nosuid,noatime :/dev/sda2 > > in /etc/auto.misc. Removing the sync option does prevent the lockups. > I just added it back and it locked up immediately.
Sync for flash devices is generally a bad idea. Especially with vfat filesystems but to some extent with all of them, it causes constant rewriting of sectors containing metadata. Flash memory behaves poorly when the same sector gets written over and over again; it tends to slow down and eventually wear out completely. > The usb/usb-storage logs are attached (device mount + command which > broke it). Would you like any more information? The log you provided shows only two commands, both of which completed successfully. Is that really the place where things got hung? If it is then the problem isn't in the USB stack but someplace higher up: the SCSI stack, the block layer, or the filesystem layer. Alan Stern ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel