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
 
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Sorry if 'Profile Badge' is not the correct term. I have an MS 365 subscription and I've noticed on my Word documents the small circle with my initials in it is sometimes different in colour document to document (it's the circle at the top right of the doc, that, when you hover over it it tells you you're signed in; if you click on it you get a bit more info). Last night I had four docs with a red circle, one with blue. When I closed the blue and opened it again it was red. Today I have 3...
Back
Top