FG
💻 Software

What does Linux do with existing files in a mount point?

Fresh5 days ago
Mar 15, 202653839 views
Confidence Score1%
1%

Problem

If I attempt to mount a folder that already has files in it, does linux give me an error message or go ahead and show both the mounted filesystem and the files that were already in the folder?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: What does Linux do with existing files in a mount point?

Low Risk

When you mount a filesystem on a directory , you can no longer access files under directly. They still exist, but now refers to the root of the mounted filesystem, not to the directory that served as a mount point, so the contents of this directory cannot be accessed, at least in this way. For example: There are ways to get a merged view of the mounted filesystem and the data that was already present, but you need an extra layer called a union filesystem. Under Linux, there is a way to see the …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment