In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "what is the reason why linux should be mounted". In daily operation, I believe that many people have doubts about the reason why linux should be mounted. The editor consulted all kinds of materials and sorted out a simple and easy-to-use method of operation. I hope it will be helpful to answer the doubt of "what is the reason why linux should be mounted?" Next, please follow the editor to study!
Because the linux system treats all the hardware devices as files, it needs to mount the devices to the system in order to let the system identify the devices; if it is not mounted, the hardware devices can be found through the graphical interface system in the Linux system, but the command line can not find them.
The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
Why should linux be mounted?
Because the Linux system treats all hardware devices as files, when using hardware devices such as optical drives, they must be mounted to the system so that Linux can identify them.
The so-called Linux system "everything is a file". 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).
When using these hardware devices in the Linux system, only by combining the file directory of the Linux itself with the file directory of the hardware device can the hardware device be used by us. 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.
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 you cannot access the U disk data directly through / dev/sdb1/. Accessing this directory will only provide you with some basic information (such as capacity) of this setting.
In short, any hardware device used by the Linux system must mount the device file with the existing directory file.
At this point, the study of "what is the reason why linux should be mounted" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.