Re: Preventing writes to the underlying directory when a mounted filesystem disappears

Max Nikulin <[email protected]> Tue, 28 Jul 2026 10:38:07 +0700
Newsgroups gmane.linux.debian.user
Message-ID <[email protected]>
On 27/07/2026 9:37 pm, Andy Smith wrote:
> On Mon, Jul 27, 2026 at 11:06:13AM -0300, Marcelo Laia wrote:
>> The motivation here is a little different. I'm trying to understand how
>> Linux behaves when the target filesystem unexpectedly disappears and how
>> to prevent applications from silently falling back to the underlying
>> filesystem.

> In practice I don't think that is a problem that happens.

I would not be surprised if behavior of udisks (that is often involved 
in the case of USB drives) has some specifics in comparison to 
/etc/fstab entries or to calling mount directly. On the other hand, a 
directory for logging should not be handled by udisks.