Re: USB automount problem - Mount folder remains and blocks
I can't give a full answer (beyond my expertise!) but I'm not convinced it is actually a bug so much as a side-effect of the environment you describe.
This link to a somewhat related (but old) problem someone was having with mounting and unmounting usb sticks says something about how the mechanism operates, and that it is at a deeper level than Nautilus. Nautilus is merely watching for the creation, replacement and destruction of directories, files, links etc and adapting its display accordingly.
HTML Code:
https://www.linuxquestions.org/questions/linux-hardware-18/how-does-automount-unmount-work-for-usb-memory-sticks-666983/
What is happening is that the unmount you need is not happening because of the power cut.
Perhaps the rationale for what you see is it would be difficult for Linux to ascertain that the repowered device is actually the same as it last knew (not just the same physical device but also unaltered for instance by something done on a different computer), so using a new mount point is the safest thing to do?
Perhaps there is something about an old mount point in these circumstances which could cause damage to the data on the device? Might it be holding knowledge of unwritten buffers which an attempt to access the device would trigger?
I do not know.
It looks like a cautious approach to what may be a difficult question.
You could build a batch which could delete these dead mount points at a single click at will.
Ask me a dumb question. Then I'll know I am in good company.
Bookmarks