Comment 2 for bug 558926

Revision history for this message
Martin Pitt (pitti) wrote : Re: Open files on ejected media confuse the system

Closing udisks task, since udisks can't do anything about open FDs in other processes.

Indeed forced unmounts are done with -l (lazy unmount), there is not much else that you can do -- you can't pull away open file descriptors from underneath bash and other processes -- what should they do about it? You'd need to tell them "please go drop this file or change directory, etc", which only the application itself can do. The alternative would be to force the application to crash, but in terms of not losing data this isn't the best solution either.

However, what does look fishy is that a newly added USB stick wouldn't mount and work normally -- if there's a stale mount on, say, /dev/sdb, then the next device should just get /dev/sdc assigned.

Can you please send the output of "mount" and /var/log/kern.log after this happened?