You are not logged in.

#1 2012-05-27 21:21:54

clappboard
Member
Registered: 2011-11-26
Posts: 39

Copy to USB to Fast / Can't Unmount

So, the title pretty much says it all.  I copy a file to the USB drive (~700mb) which goes super fast, then I can't unmount the drive for a long time after that (~3-4min).  There's no copy dialogue open, same issue with all file managers/basic cli cp, mv, etc.  Really, really, annoying.  I've tried multiple formats and filesystem types.
Any insight would be appreciated!

EDIT:  I almost forgot to mention that the drive is mounting to /run/media/DEVICE_NAME.  In my experience I always thought they were supposed to mount to /media/DEVICE_NAME?

Last edited by clappboard (2012-05-27 21:23:56)


I also go by 'clappy.'

Offline

#2 2012-05-27 21:27:58

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,359
Website

Re: Copy to USB to Fast / Can't Unmount

It is not uncommon for the copy processes to report being done before the data is fully written to usb devices, in my experience.  I'm not sure if it's because the copy is copying to some sort of memory buffer for the device first, that may be why, but I'm completely guessing on that.

That mount location does seem odd to me.  How do you mount/unmount?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2012-05-27 21:33:40

clappboard
Member
Registered: 2011-11-26
Posts: 39

Re: Copy to USB to Fast / Can't Unmount

Trilby wrote:

It is not uncommon for the copy processes to report being done before the data is fully written to usb devices, in my experience.  I'm not sure if it's because the copy is copying to some sort of memory buffer for the device first, that may be why, but I'm completely guessing on that.

That mount location does seem odd to me.  How do you mount/unmount?

The copying to temp something or other has occurred to me before, and as far as mount/unmount I let it automount in GNOME.  When I do it from the command line I use pmount for simplicity.  I've checked fstab and mtab and neither of them specify a special mount of any sort...


I also go by 'clappy.'

Offline

#4 2012-05-27 22:07:31

donniezazen
Member
From: Salt Lake City
Registered: 2011-06-24
Posts: 671
Website

Re: Copy to USB to Fast / Can't Unmount

Udisks2 now mounts in /run/media/$HOME/$LABEL. This is the default behavior. I read /media be deprecated soon.

I have been reading about disk umounting for a while but I am unable to get a decisive answer about how to safely remove drives in Linux.
Here is what I have been doing.

sdparm --command=sync $Drive
sleep 5    
sdparm --command=stop $Drive
umount $Drive

But then again spinning down is not recommended because most drives will only spin down 50,000 times. What works is a little sketchy.

Source 1 Source 2 Source 3

Last edited by donniezazen (2012-05-27 22:08:01)

Offline

#5 2012-05-27 22:35:19

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Copy to USB to Fast / Can't Unmount

I think the behavior you experience is normal if you don't mount your devices with the sync flag. Of course if you decide to try using the sync flag, copying will end up slower but you should be able to unmount immediately afterwards.

Offline

#6 2012-05-28 01:43:51

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Copy to USB to Fast / Can't Unmount

Offline

Board footer

Powered by FluxBB