Re: disable data caching for USB storage? On Thu, 27 Jan 2005 19:02:43 -0000, AthlonRob <junkmail@axpr.net> wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>NotDashEscaped: You need GnuPG to verify this message
>
>On Tue, 25 Jan 2005 00:12:06 +0100, Olive <olive.lin@versateladsl.be> wrote:
>> I don't think this is possible. You can umount your USB sticks before
>> removing it; then there will be no problems.
>
>I think the issue is not the fact the USB stick loses data if it isn't
>unmounted, it's the fact that the unmounting process takes longer than
>it really needs to.
This discussion reminds me about when I was running iomega zip-disks
under linux. Had the similar issue: why does umount take so long,
those things locked the media until umount, eject.
Adding 'sync' to the fstab entry destroys performance (try it with
a floppy, you'll hear the directory rewrite seeking), so I got into
the habit of following file write commands with a 'sync' command.
Thay way, the data is immediately written out to the removable media,
taking full advantage of write caching --> fastest write performance.
The delay in umount seems more a perception of being longer, as the
cached write data is flushed to the media, and the user is waiting,
waiting to rip out the media and get on with whatever...
Cheers,
Grant. |