You are not logged in.

#1 2013-06-13 04:02:51

IMCHillen
Member
Registered: 2010-01-08
Posts: 10

USB File Transfer Hangs

I've exhausted all I can think of, turning to you guys for help.

All large-ish (150MB and greater) USB file transfers hang no matter how they're mounted, tried multiple flash drives with the same results.

When a USB device is automatically mounted, any transfer hangs at 98-99%. The system itself is responsive, but locks up whatever file manager is attempting the transfer. File manager returns to normal use after flash drive is removed. This happens with multiple file managers (nemo, nautilus, and thunar tried) in gnome and xfce.

Mounting the drive manually and attempting a cp appears to copy successfully, then a umount takes a long time to complete (multiple times longer than the cp itself) - kind of like files are waiting to be written and are not being committed right away. Attempting a 'sync' afterwards also hangs until the umount completes, kind of supporting that theory.

Switched to lts kernel as a wild shot, no difference.

I'm stuck. Ideas? Help on what steps to take next? Logs to dig through? How can I figure out what's happening?

Thanks in advance!

Offline

#2 2013-06-13 04:07:54

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: USB File Transfer Hangs

The cp behavior is normal.  If you want it to write everything right away, you can mount it with the "sync" mount option. I don't use automounting so I can't comment on the other stuff.

Offline

#3 2013-06-13 05:10:42

LyCC
Member
Registered: 2012-09-05
Posts: 180

Re: USB File Transfer Hangs

Hi, i don't think it hangs, it's waiting for the buffered data to be written (it reads what you are copying faster then it can actually write it down to the usb device, untill the buffer fills, then you see a kind of stall at 0bytes/sec untill the whole buffer is written down - so just wait untill this happens). Now, it depends on how fast the usb device is, on slow devices i seen timed out. Anyway you can use

tail -f /var/log/messages.log

in a terminal and see what is going on, if any error, it should display there (or mount it with sync as WonderWoofy suggested).

Last edited by LyCC (2013-06-13 05:11:16)

Offline

#4 2013-06-13 05:15:32

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: USB File Transfer Hangs

The only problem with that recommendation is that in Arch Linux most users don't use syslog of any kind, but rather just use the journal.

Offline

#5 2013-06-14 02:42:35

IMCHillen
Member
Registered: 2010-01-08
Posts: 10

Re: USB File Transfer Hangs

WonderWoofy's right, no syslog for me, unfortunately. Mounting with the sync option appears to be the least cumbersome, it's unfortunate that most automatic mounting options wouldn't do this for you to give a more accurate reading of data.

Thank you both for helping me figure this out!

Offline

#6 2013-06-14 04:22:36

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: USB File Transfer Hangs

It should still be easy to see the message log. Use journalctl or install syslog-ng.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

Board footer

Powered by FluxBB