In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
What is mount in linux system? Perhaps many people do not understand, in order to let you understand better, the editor summed up the following content, I hope you can gain something according to this article.
What does linux mount mean?
In the Linux system, everything is a file, and all files are placed in a tree structure with the root directory as the root of the tree. In Linux's view, any hardware device is also a file, each with its own set of file systems (file directory structure).
Therefore, the problem is that when using these hardware devices in the Linux system, the hardware devices can only be used by combining the file directory of the Linux itself with the file directory of the hardware device. The process of merging two into one is called "mounting".
If it is not mounted, the hardware device can be found through the graphical interface system in the Linux system, but it cannot be found on the command line.
Mount refers to connecting the top-level directory in the device file to a directory under the Linux root directory (preferably an empty directory). Accessing this directory is equivalent to accessing the device file.
To correct a misunderstanding, not any directory under the root directory can be used as the mount point, because the mount operation will make the files in the original directory hidden, so the root directory and the original directory of the system should not be used as the mount point. It will cause a system exception or even crash, and the mount point should be a newly-built empty directory.
For example, we want to access the data on a USB disk through the command line. Figure 1 shows the file directory structure of the USB disk and the file directory structure in the Linux system.
Figure 1 the directory structure of USB disk and Linux system files
As you can see in figure 1, the U disk and Linux system files currently belong to two file systems, and the U disk files cannot be found using the command line, so the two file systems need to be mounted.
Next, we create a new directory / sdb-u under the root directory, and mount the USB disk file system to this directory through the mount command, as shown in figure 2.
Figure 2 File system mount
As you can see, the USB disk file system has become part of the Linux file system directory, and accessing / sdb-u/ is equivalent to accessing the USB disk.
As mentioned earlier, the / dev/ directory file in the root directory is responsible for all the hardware device files. In fact, when the U disk is inserted into Linux, the system does assign a directory file (such as sdb1) to the U disk, which is located in the / dev/ directory (/ dev/sdb1), but cannot access the U disk data directly through / dev/sdb1/. Accessing this directory will only provide you with some basic information about the device (such as capacity).
In short, any hardware device used by the Linux system must mount the device file with the existing directory file.
After reading the above, do you have any further understanding of the hooks in the linux system? If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.