LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-23-2011, 05:40 PM   #1
Usalabs
Member
 
Registered: Jan 2004
Distribution: OpenSUSE 42.1 Server
Posts: 158

Rep: Reputation: 15
How do I know if a USB HD has finished copying?


1st I'll explain something, windoze copies to any internal or external hard drive, on-the-fly, Linux doesn't, it uses a temporary storage buffer.

When coping to a USB hard drive, yes it shows the file copying bar, but after the bar has finished Linux is still emptying the buffer, and there is no visual indication that the copying process has completely finished.

Is there a way that Ubuntu can use on-the-fly copying to USB and the copy bar reflects the true copying process?, so that when the bar has reached the end at 100%, it actually means copying has completed and the USB drive can be removed.
 
Old 12-23-2011, 06:38 PM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
You can add "sync" to the mount options when you mount the drive.
Either in fstab, or the mount command.
 
Old 12-23-2011, 10:24 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Probably slow it down a (fair) bit.
I just issue umount - when that returns, you're done. And no, it doesn't have a nice GUI that I'm aware of.
 
Old 12-24-2011, 06:49 AM   #4
Usalabs
Member
 
Registered: Jan 2004
Distribution: OpenSUSE 42.1 Server
Posts: 158

Original Poster
Rep: Reputation: 15
The problem in using umount is that I have to add myself to the sudoers file, or add myself to the root group so that I can use 'sudo umount <dev>'

The other option might work using sync, but Ubuntu uses UUID's for drive designations in the fstab file, and it changes every time the drive is re-inserted, thus adding sync as an option in fstab will not work, because of the UUID change.

There has to be a way to add the sync option to the automount command, so that when any USB storage device is attached, the automount would apply the sync option during it's mounting of the drive.
 
Old 12-24-2011, 06:53 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
That'd be udev rules.
 
Old 12-24-2011, 07:54 AM   #6
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Quote:
Originally Posted by Usalabs View Post
The problem in using umount is that I have to add myself to the sudoers file, or add myself to the root group so that I can use 'sudo umount <dev>'
If you add the option user to the mount options in fstab that won't be needed.

Quote:
The other option might work using sync, but Ubuntu uses UUID's for drive designations in the fstab file, and it changes every time the drive is re-inserted, thus adding sync as an option in fstab will not work, because of the UUID change.
Then don't use UUIDs. It is not mandatory. On the contrary, UUIDs were introduced to be sure that a certain drive would be recognized as that drive and mounted accordingly. Instead of using sba, sdb, etc which order could change during booting. You want to mount ignoring the UUID, so enter /dev/sdb, /dev/sdc in your fstab to mount USB sticks.

jlinkels
 
  


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
configure Krusader to play sound after finished copying qrange Linux - Software 1 08-30-2010 01:49 PM
Copying changed files to USB. dougnc Linux - Software 8 03-12-2008 12:13 PM
Copying a file to USB memory Gins Linux - General 12 07-26-2007 03:10 AM
problems copying files to USB mcang Linux - Hardware 1 08-05-2005 06:55 PM
External USB 2.0 HD - fails after copying 10-20% dehuszar Linux - Hardware 9 05-09-2005 03:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:45 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