So, I ran into an issue today where I believe some files exist under a directory that is currently used as a mountpoint for a running application. Meaning, prior to that mountpoint being used, files already existed under that directory and are now hidden by the system because that directory is now being used as a mountpoint.
Does anyone know, without unmounting, a way to list or remove files in the mountpoint directory without affecting files on the mounted filesystem?
Example:
/test1 is a mountpoint for /dev/sdc1
Prior to mounting sdc1, I create /test1/file1.txt
Then, I mount /dev/sdc1 on /test1
How can I list out the hidden file1.txt without unmounting sdc1? I've never even ever thought of this before lol.
Does anyone know, without unmounting, a way to list or remove files in the mountpoint directory without affecting files on the mounted filesystem?
Example:
/test1 is a mountpoint for /dev/sdc1
Prior to mounting sdc1, I create /test1/file1.txt
Then, I mount /dev/sdc1 on /test1
How can I list out the hidden file1.txt without unmounting sdc1? I've never even ever thought of this before lol.