Re: rsync 10 times slower in Etch than in Sarge!



on Fri, Jan 18, 2008 at 12:16:28PM -0500, Douglas A. Tutty wrote:

Why issue a 'sync' instead of just unmounting and waiting until the
thing stops flashing?



On Fri, Jan 18, 2008 at 09:24:22AM -0900, Ken Irving <fnkci@xxxxxxx> was heard
to say:

sync blocks, so you can tell from the command line when the job is done.


Daniel Burrows <dburrows@xxxxxxxxxx> writes:

So does umount. (I see you said that below, but I wanted to underline
it again; it looks like Rudolfo overlooked it) After "umount"
completes, it's safe to remove the stick.



I didn't overlook this, but:

1) in my experience, some time ago I used to extract the pendrive after
`umount' completes and the device often got corrupted. When I asked this
list for help to recover it, someone suggested to apply the `sync' option
to the mount option: since then I put that option in my fstab, until this
thread advised not to do so;

2) I measured the time, and it seems to me that the `sync' command takes a
little longer than `umount' to stop.

For these two reasons I presume that it is not safe to extract the device just
after `umounting' and without the sync option in fstab.

What do you think?

Thanks,
Rodolfo


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Preventing delayed USB writes
    ... Running sync before umount isn't necessary because ... umount invokes sync itself. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: rsync 10 times slower in Etch than in Sarge!
    ... sync blocks, so you can tell from the command line when the job is done. ... For that matter, umount also blocks... ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: umount without sync
    ... There have been some bugs afaik and a sync has been a workaround. ... to USB before the umount is successfully finished, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: rsync 10 times slower in Etch than in Sarge!
    ... Daniel Burrows writes: ... it's safe to remove the stick. ... `umount' completes and the device often got corrupted. ... Then I presume that if I use both issues, i.e. first do `sync' and then ...
    (Debian-User)
  • Re: Safely Remove USB Key ???
    ... Frank wrote: ... >How can I be sure that it is safe to remove the USB key, ... umount is all you need. ...
    (comp.os.linux.hardware)