LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-07-2007, 08:59 PM   #1
kubuntu_user
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Rep: Reputation: 0
Do you have this problem with Ubuntu Edgy and USB sticks ?


If I copy a big file to my USB stick, one that will take a while, from the
command line, then go and do a "Safely Remove" right away (right click on desktop icon), then the stick is unmounted without waiting for the file copying to be
finished, resulting in invalid file size and truncated contents in the USB stick.
Anybody else experiencing this ? Can you try ?
 
Old 01-07-2007, 09:02 PM   #2
xjlittle
Member
 
Registered: Aug 2003
Location: Indiana
Distribution: fc6 sles9 & 10 kubuntu ubuntu-server
Posts: 240
Blog Entries: 2

Rep: Reputation: 30
That would be expected behavior. Why in the world would you want to unmount it knowing that there is a file operation going on?
 
Old 01-07-2007, 10:47 PM   #3
IndyGunFreak
Senior Member
 
Registered: Aug 2003
Location: Indpls
Distribution: Laptops: Debian Jessie XFCE, NAS: OpenMediaVault 3.0
Posts: 1,355

Rep: Reputation: 70
Quote:
Originally Posted by xjlittle
That would be expected behavior. Why in the world would you want to unmount it knowing that there is a file operation going on?
Thats kinda what I was thinking, what did you expect, everything to work great with half the file copied?

IGF
 
Old 01-08-2007, 01:34 AM   #4
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
Ubuntu is better behaved than that. Right click and select eject. Any writes in progress are completed and a pop up progress bar is displayed.
 
Old 01-08-2007, 01:11 PM   #5
kubuntu_user
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Correct, {x,k}ubuntu is actually very smart and will pop-up a dialog telling you
to wait. I think they correctly monitor the USB bus. Now on Edgy it is broken for me.
It was working beautifully on Dapper.

Now let em say this, the attitude of the first 2 posters is why we still have trouble
getting ubuntu into the mainstream. "It's the users fault!" , heh, that is the same
attitude of Microsoft documentation.

Thanks for the third poster (fragos) to actually contribute.
 
Old 01-08-2007, 03:29 PM   #6
IndyGunFreak
Senior Member
 
Registered: Aug 2003
Location: Indpls
Distribution: Laptops: Debian Jessie XFCE, NAS: OpenMediaVault 3.0
Posts: 1,355

Rep: Reputation: 70
Quote:
Originally Posted by kubuntu_user
Correct, {x,k}ubuntu is actually very smart and will pop-up a dialog telling you
to wait. I think they correctly monitor the USB bus. Now on Edgy it is broken for me.
It was working beautifully on Dapper.

Now let em say this, the attitude of the first 2 posters is why we still have trouble
getting ubuntu into the mainstream. "It's the users fault!" , heh, that is the same
attitude of Microsoft documentation.

Thanks for the third poster (fragos) to actually contribute.
It wasn't an attitude at all, to me its common sense. I'd say 90% of the problems with Ubuntu, are user related(the ones I have/had in the past included)....

IGF
 
Old 01-08-2007, 04:56 PM   #7
ithawtewrong
Member
 
Registered: Jul 2004
Location: Mile High
Posts: 161

Rep: Reputation: 30
I copied a 600+Meg ISO from USB to HDD on Edgy, selected Eject and got a progress bar. Mine is working fine.
 
Old 01-08-2007, 09:47 PM   #8
kubuntu_user
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by IndyGunFreak
It wasn't an attitude at all, to me its common sense. I'd say 90% of the problems with Ubuntu, are user related(the ones I have/had in the past included)....
IGF
OK, so how do you solve the problem? How do you tell when your copy to/from USB is complete?
 
Old 01-09-2007, 03:23 AM   #9
IndyGunFreak
Senior Member
 
Registered: Aug 2003
Location: Indpls
Distribution: Laptops: Debian Jessie XFCE, NAS: OpenMediaVault 3.0
Posts: 1,355

Rep: Reputation: 70
Quote:
Originally Posted by kubuntu_user
OK, so how do you solve the problem? How do you tell when your copy to/from USB is complete?

Well, I've copied my back up file folders to an external USB drive, and there was always a progress timer. When it hits Zero, I presume it to be done. Roughly 4gigs of Music, about 20-25gigs of videos, broken down into folders of probably 5gigs each, and some other misc. files/folders that probably take up another 5-6gigs.

Its always worked that way for me, I have no idea what your problem is. As for when I unmount it, it unmounts almost immediately, but I do get the progress bar you mention for about 1sec.

IGF

Last edited by IndyGunFreak; 01-09-2007 at 03:26 AM.
 
Old 01-09-2007, 04:21 AM   #10
IndyGunFreak
Senior Member
 
Registered: Aug 2003
Location: Indpls
Distribution: Laptops: Debian Jessie XFCE, NAS: OpenMediaVault 3.0
Posts: 1,355

Rep: Reputation: 70
oops, wrong thread.
 
Old 01-09-2007, 11:10 AM   #11
kubuntu_user
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by IndyGunFreak
Well, I've copied my back up file folders to an external USB drive, and there was always a progress timer. When it hits Zero, I presume it to be done. Roughly 4gigs of Music, about 20-25gigs of videos, broken down into folders of probably 5gigs each, and some other misc. files/folders that probably take up another 5-6gigs.

Its always worked that way for me, I have no idea what your problem is. As for when I unmount it, it unmounts almost immediately, but I do get the progress bar you mention for about 1sec.

IGF
Well, I tested this on Kubuntu Edgy and Edgy x86_64: started the copy of large files to
USB stick from the command prompt (I use large files so it will take a little while):
$ cp mylargfile /media/usbstick

Then I immediately go to the USB stick icon on desktop and do "Safely Remove". In Dapper,
this was a good way of telling when the copy was finished, because it will pop up the progress
bar and refuse to unmount until ready.

Now on Edgy I lost that dialog, furthermore the unmount occurs, truncating my files being
copied.
 
Old 03-21-2007, 05:29 AM   #12
RangerOne
LQ Newbie
 
Registered: Mar 2007
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by kubuntu_user
Well, I tested this on Kubuntu Edgy and Edgy x86_64: started the copy of large files to
USB stick from the command prompt (I use large files so it will take a little while):
$ cp mylargfile /media/usbstick

Then I immediately go to the USB stick icon on desktop and do "Safely Remove". In Dapper,
this was a good way of telling when the copy was finished, because it will pop up the progress
bar and refuse to unmount until ready.

Now on Edgy I lost that dialog, furthermore the unmount occurs, truncating my files being
copied.
I'm experiencing *exactly* the same problem as you. I have even tried to manually do a 'sync' before choosing the "Safely Remove" option, but still corrupts the last file transferred.

I'm running kubuntu in the machine where I experienced this; haven't detected this problem in my ubuntu install on another machine (both are edgy).

If you found out new information about this problem, or even got to a solution, please drop a line! Thanks.
 
Old 03-21-2007, 01:43 PM   #13
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
Right click the device icon and select eject. It insures all IO is complete, you may see a progress bar, and then dismounts.
 
Old 03-22-2007, 06:47 AM   #14
RangerOne
LQ Newbie
 
Registered: Mar 2007
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by fragos
Right click the device icon and select eject. It insures all IO is complete, you may see a progress bar, and then dismounts.
No, that's not working. There is no progress bar at all with kubuntu, right-clicking and selecting "Safely Remove" (if I'm correct, "Eject" appears only in ubuntu -no 'k') dismounts the device (at least theoretically) almost inmediately, but you can still notice by the led on the USB stick that there is pending traffic being completed; and if you type 'sync' on a terminal the command clearly stalls while there is still some writing done to the device.

In fact, this behaviour is the reason of existence of this thread, as kubuntu_user explained in the first post. It seems a kubuntu/edgy related issue that probably doesn't affect other flavours of the distro; but, as illogical as it may seem, it's definitely happening.
 
Old 03-22-2007, 02:38 PM   #15
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
There are certainly differences between KDE and Gnome. To be more accurate I should have commented in Ubuntu the progress bar only appears when there are buffers to flush to the device. I normally only see it if I've copied a large directory to a flash device and almost never for single files. Some readers have both a mounted light and an activity light. Mine has single LED for both. In neither case are the the LEDs an absolute indicator that the buffer is flushed.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
avm WLAN USB-stick on Ubuntu 6.10 (Edgy Eft) annuzzer Linux - Wireless Networking 2 02-26-2010 03:07 AM
gnome login problem in ubuntu edgy eft ivangetov Linux - Software 6 06-12-2007 03:28 PM
LXer: Planning for Ubuntu Edgy: A mid-week report from the Ubuntu developer's conference LXer Syndicated Linux News 0 06-22-2006 11:12 PM
USB memory sticks island_dude Linux - Hardware 1 01-20-2004 11:16 AM
Mounting different usb-sticks robertmarkbram Linux - Hardware 3 10-22-2003 07:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 12:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration