In what case will you mount a filesystem in a non-empty directory?

  • Thread starter Thread starter Eus
  • Start date Start date
AI Thread Summary
Mounting a filesystem in a non-empty directory typically renders the original contents of that directory inaccessible. However, there are specific scenarios where this practice can be justified. One example is when the contents of the directory are irrelevant to the task at hand, such as mounting a DVD containing multiple ISO images under a single mount point. This allows users to select and mount specific images without needing to access the underlying directory contents. Additionally, it is noted that mounting filesystems to home directories, like ISO images or network shares, does not necessarily make the home directory's contents inaccessible, contradicting the initial assumption. Overall, while there may be limited practical reasons for mounting in non-empty directories, certain use cases can make it a functional choice.
Eus
Messages
93
Reaction score
0
Hi Ho! :smile:

I just wonder in what case we want to mount a filesystem in a non-empty directory.
Mounting a filesystem in a non-empty directory will cause the content of the directory to be inaccessible. So, is there any good reason to do that?

Regards,
Eus
 
Computer science news on Phys.org
Eus said:
Hi Ho! :smile:

I just wonder in what case we want to mount a filesystem in a non-empty directory.
Mounting a filesystem in a non-empty directory will cause the content of the directory to be inaccessible. So, is there any good reason to do that?

Regards,
Eus

Two points.

1.Technically speaking, nothing is inaccessible.

2. re any good reason to do that ?... none that I can think of, other than wasting time.

Cheers

Aquafire
 
Hi Ho!

One reason to mount a file system on a nonempty directory is when the whole content of the directory will be rendered useless with the content of the file system to be mounted. For example, a DVD contains four ISO9660 image files of four different titles of games has been mounted under /mnt/dvdrom. To play a game, the ISO9660 image of the game must be mounted first so that its content can be read. Because only one game can be played in a PC, there is no need to mount the image in another mount point. Instead, the image is also mounted under /mnt/dvdrom, hiding the file system of the DVD whose content is not needed to be directly accessible in user space. This design will also allow the use of a friendly menu by which the user can select which game to run. Since the user who executed the menu can mount the DVD under /mnt/dvdrom, the menu can also mount the selected image file under /mnt/dvdrom. This will eliminate the need of asking the user to which mount point the user has permission to mount the selected image file.


Eus
 
Eus said:
Hi Ho! :smile:

I just wonder in what case we want to mount a filesystem in a non-empty directory.
Mounting a filesystem in a non-empty directory will cause the content of the directory to be inaccessible. So, is there any good reason to do that?

Regards,
Eus

Thats not true. Don't you ever mount file systems to your home dir? Like iso images, network shares, etc. Does the contents of your home dir then become inaccessible? No.
 
And also why did you ask if there is a good reason if you appear to already know?
 
octelcogopod said:
And also why did you ask if there is a good reason if you appear to already know?

Because when I asked it for the very first time (09.17.07), I didn't know the reason.
But, I encountered a case where I would like to mount a filesystem in a non-empty directory.
So, I wrote the reason here on 03.22.08 to let others know.


Eus
 
I came across a video regarding the use of AI/ML to work through complex datasets to determine complicated protein structures. It is a promising and beneficial use of AI/ML. AlphaFold - The Most Useful Thing AI Has Ever Done https://www.ebi.ac.uk/training/online/courses/alphafold/an-introductory-guide-to-its-strengths-and-limitations/what-is-alphafold/ https://en.wikipedia.org/wiki/AlphaFold https://deepmind.google/about/ Edit/update: The AlphaFold article in Nature John Jumper...
Thread 'Urgent: Physically repair - or bypass - power button on Asus laptop'
Asus Vivobook S14 flip. The power button is wrecked. Unable to turn it on AT ALL. We can get into how and why it got wrecked later, but suffice to say a kitchen knife was involved: These buttons do want to NOT come off, not like other lappies, where they can snap in and out. And they sure don't go back on. So, in the absence of a longer-term solution that might involve a replacement, is there any way I can activate the power button, like with a paperclip or wire or something? It looks...
Back
Top