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

  • Thread starter Thread starter Eus
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the scenarios in which one might choose to mount a filesystem in a non-empty directory. Participants explore the implications of such actions, including accessibility of the original directory's contents and potential use cases.

Discussion Character

  • Debate/contested
  • Exploratory

Main Points Raised

  • Eus questions the rationale behind mounting a filesystem in a non-empty directory, noting that it renders the original contents inaccessible.
  • Aquafire argues that technically, nothing is truly inaccessible when mounting a filesystem, and suggests there may be no good reason to do so, viewing it as a waste of time.
  • Eus provides a specific example where mounting a filesystem in a non-empty directory is beneficial, such as when using ISO9660 images for games, allowing for a user-friendly selection menu without needing multiple mount points.
  • Another participant challenges the claim that contents become inaccessible, citing personal experience with mounting filesystems like ISO images or network shares in their home directory without losing access to existing files.
  • Participants express curiosity about the initial question, with Eus clarifying that their inquiry stemmed from a lack of understanding at first, but they later encountered a scenario that justified the action.

Areas of Agreement / Disagreement

Participants express differing views on the accessibility of original directory contents when a filesystem is mounted in a non-empty directory. Some agree with Eus's concerns, while others challenge the notion that contents become inaccessible, indicating a lack of consensus on the implications of such actions.

Contextual Notes

There are unresolved assumptions regarding the technical behavior of mounting filesystems in non-empty directories and the specific contexts in which this practice may be beneficial or problematic.

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
 

Similar threads

  • · Replies 18 ·
Replies
18
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 22 ·
Replies
22
Views
5K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 19 ·
Replies
19
Views
2K
  • · Replies 29 ·
Replies
29
Views
6K
  • · Replies 8 ·
Replies
8
Views
1K