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

Re: GNOME Shell can't unmount my USB key



On Wed, 10 Feb 2016, Stuart Longland wrote:

> On 08/02/16 09:20, Patrick Bartek wrote:
> > You shouldn't have to "eject" it all.  Just plug it in and when
> > done, pull it out. The system should mount and unmount it
> > automatically. We're not talking Windows here.
> 
> We're not talking DOS either.
> 
> Windows 98 might've written data synchronously to USB devices, but
> with flash having limited erase/program cycles[1], modern operating
> systems[2] stores a cache of data to be written to the device.
> 
> This is only written to the storage device:
> - if the `sync` command is run
> - if the device is unmounted
> - when sufficient data is in the cache to make a write worthwhile
> - if mounted with the 'sync' option: on every write
> 
> Unless you've configured your system to mount the filesystem with -o
> sync, assuming that hitting save in your application means the file's
> written to disk right there and then is a very dangerous assumption to
> make, and one that will bite you hard in the bum some day.

All I can say is it works, caveats you mentioned aside.  No
problems in 3 years of use.

Perhaps some research into udev and udev rules is called for.  Udev was
a purported to be a great improvement over HAL.

B


Reply to: