You are not logged in.
Pages: 1
Since I installed arch, I have a peculiar problem with copying data onto USB keys (not USB HDDs, though).
Even if the file is large (1-4GB), the copying progress bar completes in just few seconds, but if I unplug the USB then, the data will not copy. I need to keep the USB plugged in for how long I might THINK it needs to complete it, and then hope it was enough. Otherwise, the data is not be copied, or is corrupted.
The same issue occurs when using PCmanFM, which is my main file manager, and Nautilus.
Offline
I don't know all the details, but I suspect keys are being mounted as async, hdds as synchronous. Or something like that.
What I am certain of is that you can enter sync in the terminal and once you get the prompt back, you can be certain that it's ready to unmount and unplug. I think it forces all buffered disk operations to flush to disk.
...Or something like that.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Is there a way to get USB flash memory to mount properly? I remember not having such issues on Ubuntu 2 years ago.
Offline
In retrospect I should have been more cautious about the async/synchronous stuff. That was just something I 'overheard' on some USB related thread at some point. I found some threads by searching 'flash synchronous' but the related ones are pretty old.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Do you properly unmount the drive before unplugging it? That should sync all data to the drive.
Offline
I click 'unmount' but it freezes the file manager for the duration of the actual copying.
What I want is to see the real progress of copying, and not meaningless progress bar reaching 100% in 3-4 second on files of several GBs.
Offline
I have the same problem, and it drives me insane. What desktop manager are you using? Maybe it has something to do with it?
Offline
I am using gutted XFCE with PCmanFM handling desktop and file operations, but the same is true for Nautilus.
Offline
The only thing I could find after a quick google search were these posts about using sync. In regards to alphaniner's last post, these are all recent.
http://www.linuxquestions.org/questions … ng-920266/
http://crunchbanglinux.org/forums/topic … sb-sticks/
Offline
If you mount your USB drive with the sync option, you will get the "real progress of copying". Two way to accomplish this:
1. Mount your USB manually from the terminal (or add it to fstab)
2. Use devmon to mount your USB drive(s); it has a --sync | -s flag.
Offline
2. Use devmon to mount your USB drive(s); it has a --sync | -s flag.
Is there a way to run devmon daemon (?) automatically with sync option so it mounts all future usb plugins properly, or does it have to be done manually each time?
Offline
Use the flush option. And no, "sync" is not used with hard drives - it would ruin performance, by disabling buffering.
"flush" is a reasonable compromise for buffering.
Offline
anonymous_user wrote:2. Use devmon to mount your USB drive(s); it has a --sync | -s flag.
Is there a way to run devmon daemon (?) automatically with sync option so it mounts all future usb plugins properly, or does it have to be done manually each time?
Just specify "devmon --sync" in your DE/WM's startup file.
Offline
Would that not conflict with the current way devices are being mounted?
Also, would this affect internal HDD, too? I read --sync causes slower transfers.
Offline
If you just want the sync option for a specific device, you could try the --mount DEVICE flag. I never tried using devmon to only mount a specific device though. Also it does not affect internal drives unless you use the --internal flag
Offline
But this brings us back to manual mounting. What I would like is to have interhal HDDs and USB HDDs running at full speed, while USB flash drives mounted in a proper way.
Offline
Scratch that. I did some more testing, and running devmon --sync does not actually change a thing.
Offline
Any solution to this problem? I have it to.
Offline
Like someone else already said, after the progress bar goes away, run:
$ sync
A dirty hack would be to copy a file upward of 100 MB (like an .avi file or something) after you copy whatever you want copied 100% intact. Then remove this 100MB+ file. This way it makes sure that whatever was copied last, was copied completely.
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
I guess sync kind of works, though had hoped for a more satifying solution.
Offline
Pages: 1