Why should files be mounted on Linux?

I have an old library that does some manipulation of files on a floppy disk \ CD (file transfer over network paths). This library has a stream that checks every second whether a file will be installed (for example, floppy disk \ CD-ROM).

Why? What operations can be performed only on mounted files?

Many thanks.

+3
source share
3 answers

To access the file in any way - read, write, execute, delete - you need to specify its location. The location of a file is always its position in the directory tree, where Unix has only one directory tree, starting from one root.

If the device is not turned on (and, therefore, its own (auxiliary) directory tree) is in the "main" directory tree, it is not available.

Including the device directory tree in the system "main" directory tree is what is known in the Unix world as the "installation".

+4
source

On unix, system devices are mounted, not files. for example, / dev / fd 0 is the device file (the file representing the device). You cannot access files on a device without installing it.

+3

Disk volumes (drives) must always be installed on Linux before they are used. Maybe the goal of this thread is to continue checking the floppy disk and abort the operation if someone gets out and is unmounted.

+1
source

Source: https://habr.com/ru/post/1755172/


All Articles