Re: Preventing delayed USB writes



On 15 May 2007 09:34:05 -0700
pedxing <pedxing@xxxxxxxxx> wrote:

Lenny AMD64.

When I write to a USB device (stick or mp3 player), I notice that
the writes appear to happen quickly, but actually take a long time to
complete. I assume there is some form of caching going on.

To be safe, I issue a sync command from a terminal and wait for it
(up to 15 minutes!) to complete before unmounting the drive.

Is there any way to prevent the caching from occuring? I would like
to configure things so that, for instance, when I (ok, actually my
wife) use konqueror to copy songs to my mp3 player, when the copy
dialog says 100%, I can immediately unmount the device without
having to wait for a delayed write.

I have looked at the mount man page, but it says the sync option
(which I think is what I want) is only available for ext2/3 and ufs
file systems.

The man page may be wrong [0] - and beware of damaging the flash stick!

-Ped

[0] http://readlist.com/lists/vger.kernel.org/linux-kernel/22/111748.html

Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


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



Relevant Pages

  • Preventing delayed USB writes
    ... When I write to a USB device, ... wife) use konqueror to copy songs to my mp3 player, ... I can immediately unmount the device without ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Preventing delayed USB writes
    ... When I write to a USB device, ... when mounting the partition mount it with sync, ... wife) use konqueror to copy songs to my mp3 player, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Preventing delayed USB writes
    ... wife) use konqueror to copy songs to my mp3 player, ... In both cases, it is never a good idea just to yank out the usb device, ... The memory chips in a memory stick are special, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Preventing delayed USB writes
    ... wife) use konqueror to copy songs to my mp3 player, ... In both cases, it is never a good idea just to yank out the usb device, ... short service life if blocks are frequently rewritten. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: usb and debian 4.0 os ...can i get some pointers???please???
    ... I do not get you get in your messeges logs. ... What happened here is that i unpluged the usb device (my cingular 8125 ... out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)