[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Unmounting/Ejecting removable media



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Saturday 11 May 2013, Kailash Kalyani was heard to say:
> Hi Curt,

Good morning.

> Caching and I/O scheduling give performance benefits which is why
> they're used with most media.

As I said, I don't mean media where transaction times are critical or 
anything like that. I mean USB devices, thumb drives and external 
drives, which are already slow as molasses.

> As I understand it you're wondering 
> if it is possible to disable write caching in Windows? The answer
> to that is yes.

Thank you for the pointer, I'll pass it on to a friend who uses 
Windows.

My question was much more general than just Windows.

The problem of pulling a removable drive without unmounting it first 
is a general problem. Caching that isn't immediately written out to 
the drive appears to me to be "asking for trouble".

> From Kernel 2.6 onwards udev (http://wiki.debian.org/udev) is the
> dynamic device manager. But despite searching for a while I've not
> figured out how to control the rules for mounting the devices.

Thank you for taking your time to investigate. It is interesting, and 
I will look at udeb myself as well.

> However, fstab entry "sync" or "async" controls what happens:
> http://www.tuxfiles.org/linuxhelp/fstab.html

Indeed. Removable drives not being in /etc/fstab is one of the 
particulars that may make it possible to have caching "on" for static 
drives, and "off" for removable. Hmmmm...

> Sincerely,
> Kailash

Peace,

Curt-

- -- 
The Magistrate, enrobed in taxes, condemns the thief in stolen rags.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iFcDBQFRjkGFtk9X6NaR4akRCNpbAQDMu6bbk6aMzI0qsyCpxhCmeCmY0rkpojjh
zgc+7oqx/QEAvxVDizZehEnsHHnfucKwWrm6LL89jsg9Vk9D1GRQgeo=
=bShg
-----END PGP SIGNATURE-----


Reply to: