File transfer hangs for a long time before finishing
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
- Peter Linu
- Level 7
- Posts: 1883
- Joined: Sun Nov 11, 2018 8:24 pm
- Location: Sinny, Straya
Re: File transfer hangs for a long time before finishing
I have a very similar problem and I don't use USB transfer at all. I have a network setup wherein I transfer from a dual boot laptop with Cinnamon 20.1 or (mainly) Win7 to several XFCE NAS shares. An initial transfer to a share is always deathly slow and sometimes it's quicker to reboot and then it works how it should. I asked a Linux propeller-head and he says that it's always been like that. Obviously he didn't have a solution.
Cinnamon 21.3 Thinkcentre M920q + 2 Thinkpad T440p (modded) + Lenovo Y50-70 (all have VBs) + 2 PC NAS drives w XFCE21.2 + Q4OS-32bit on ASUS Atom (2011) + Asus UX305F-64bit+ 10yo Lenovo NAS for backup
Re: File transfer hangs for a long time before finishing
Can we assume deathly slow is 2 MB/sec or slower?An initial transfer to a share is always deathly slow
- Peter Linu
- Level 7
- Posts: 1883
- Joined: Sun Nov 11, 2018 8:24 pm
- Location: Sinny, Straya
Re: File transfer hangs for a long time before finishing
Yes
Cinnamon 21.3 Thinkcentre M920q + 2 Thinkpad T440p (modded) + Lenovo Y50-70 (all have VBs) + 2 PC NAS drives w XFCE21.2 + Q4OS-32bit on ASUS Atom (2011) + Asus UX305F-64bit+ 10yo Lenovo NAS for backup
-
- Level 1
- Posts: 1
- Joined: Sun Apr 11, 2021 12:57 pm
Re: File transfer hangs for a long time before finishing
I have the same problem, copying large files to usb hangs at 99% indefinitely. If I try to disconnect the device, the system says the device is in use.
To workaround open a terminal and run the "sync" command. This may take several seconds to finish, but should work.
To workaround open a terminal and run the "sync" command. This may take several seconds to finish, but should work.
- fstjohn
- Level 5
- Posts: 534
- Joined: Fri Jan 02, 2015 3:21 pm
- Location: The beautiful North Georgia mountains
Re: File transfer hangs for a long time before finishing
People are saying Windows or various GUI file managers don't have this problem. If one's able to do the same file transfer in Windows and Mint on the same computer, seems using a USB stick with an activity LED you could time how long the activity LED was blinking from the time the transfer was initiated until it finally went out. IMO that should give a fair comparison, buffer or no buffer, accurate transfer bar or not. Same technique should work comparing different file managers or the command line cp.
- fstjohn
- Level 5
- Posts: 534
- Joined: Fri Jan 02, 2015 3:21 pm
- Location: The beautiful North Georgia mountains
Re: File transfer hangs for a long time before finishing
Just did an experiment. I copied a directory containing 10GB of assorted .mp3 files from my internal HD to a USB3.0 - 32GB memory stick using four different file managers. The times given are from initiating the copy until the activity light on the stick stops flashing. In all except Nemo the progress bar seemed to be reasonably accurate. In all cases when the program indicated the copy was complete it corresponded to activity light stopped. With Nemo the progress bar hung at 99% and remained until the transfer finished (activity light stopped flashing). Here are the times:
Nemo
13 min 29 sec
Double Commander
14 min 59 sec
Krusader
13 min 37 sec
Midnight Commander
17 min 46 sec
Nemo
13 min 29 sec
Double Commander
14 min 59 sec
Krusader
13 min 37 sec
Midnight Commander
17 min 46 sec
-
- Level 1
- Posts: 39
- Joined: Thu Aug 25, 2016 2:29 pm
Re: File transfer hangs for a long time before finishing
I've got this problem too. It can also just freeze at 5% and then stop for a while. I cancel it, yet to no avail, when I turn it off, it takes a looong time since, idk, it must be doing something with the data. It's really a shame since this has only happened in Mint to me and I haven't been able to find a solution.n0body_special wrote: ⤴Sat Jun 27, 2020 10:02 am The way I see it, the problem of the original poster (and for me) is actually three problems:
1) Stupid implementation of write-cache for removable usb drives. Writing buffers are useful for hard disks, but it's a completely stupid thing to have for usb flash drives. It offers nothing in terms of actual writing speed, deceives the user about the true writing speed, and if the user removes a drive without unmounting, you get a corrupt filesystem. All file managers I have used are affected by this (nemo, double commander, midnight commander) and also the cp shell command. This thing is moronic: it absolutely should not exist and future linux distros should find a way to disable it. Until then there MUST be a workaround or a way to disable it.
2) Actual writing speed is slow: adding vm.dirty_bytes=15000000 in /etc/sysctl.conf makes the writing buffers small 15MB, effectively takes the writing cache out of the way and brings you face to face with the real problem: while copying to usb drives, I get speeds of 300kb/s and that's for usb 3 devices! I was wrong in my previous post. Copying 5 GB of data does finish if you leave the flash drive alone, it just happens after 10 hours or so. Users complain about "freezing" but it's not freezing, it's actually very very very slow copying.
3) During this slow copying procedure, Nemo becomes slow to respond or unresponsive. And because Nemo is an integral part of the desktop, the whole system becomes unresponsive while the usb copies (i.e. you can't open another folder and view it's contents). I have had to hard-reset the system after some time. Also, if you change your mind and decide to cancel copying, it takes some time (for me about 5 minutes) before copying actually stops. I think the system is waiting for that last file to finish copying before stopping and that may take some time
- Larry78723
- Level 14
- Posts: 5476
- Joined: Wed Jan 09, 2019 7:01 pm
- Location: Jasper County, SC, USA
Re: File transfer hangs for a long time before finishing
It would be interesting to see if Debian 10 has the same problem. It uses Nautilus file manager.
If you have found the solution to your initial post, please open your original post, click on the pencil, and add (Solved) to the Subject, it helps other users looking for help, and keeps the forum clean.
- Larry78723
- Level 14
- Posts: 5476
- Joined: Wed Jan 09, 2019 7:01 pm
- Location: Jasper County, SC, USA
Re: File transfer hangs for a long time before finishing
Debian has the same issue so this isn't a Nemo issue.
If you have found the solution to your initial post, please open your original post, click on the pencil, and add (Solved) to the Subject, it helps other users looking for help, and keeps the forum clean.
Re: File transfer hangs for a long time before finishing
I have the same problem in Linux Mint Xfce
Re: File transfer hangs for a long time before finishing
Moderator's note:
Please start a new topic, this one is too old. Thanks!
If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!