Home > Hosting > Server

Which directory is the linux mount point directory in?

2023-04-11 10:17:50

<p style="text-align: left;">This article mainly introduces the relevant knowledge of which directory is the linux mount point directory. The content is detailed and easy to understand, the operation is simple and fast, and has certain reference value. The next article will be rewarding, let&#39;s take a look together.</p><p><br/></p><blockquote><p style="text-align: left;">The linux mount point directory is generally in the /mnt directory; the user manually mounts the point, that is, the device that the user uses the mount command to mount; in linux , mounting is a very important function, it mounts a device to an existing directory; when we want to access a file in the storage, we must mount the partition where the file is located to an existing directory, and then pass Access this directory to access storage devices.</p></blockquote><p style="text-align: left;"><strong>Where is the Linux mount point directory? </strong></p><p style="text-align: left;">1. The user manually mounts the point, that is, the device that the user mounts using the mount command. The general directory is under the /mnt directory.</p><p style="text-align: left;">2. The mount point and introduction of the system partition are shown in the figure below</p><p style="text-align: left;"><img src="//img.freeonlinedomain.com/uploads/allimg/20230411/1-230411110215393.jpg" title="" alt="e079136d74774a5ab91370fcc85b92e5.jpg"/></p><p style="text-align: left;"><strong>What is mount? </strong></p><p style="text-align: left;">Mounting is a very important function. It connects a device (usually a storage device, which can mount CDs, hard disks, tapes, CD image files, etc.) to an existing (This directory may not be empty, but the previous content in this directory will not be available after mounting).</p><p style="text-align: left;">The Linux operating system regards all devices as files, and it integrates the resources of the entire computer into a large file directory. If we want to access the files in the storage, we must mount the partition where the files are located Go to an existing directory, and then access the storage device by accessing this directory. Mounting requires a mount source and a mount point.</p><p style="text-align: left;">Mount source: the object to be mounted</p><p style="text-align: left;">Mount point: a specific directory</p><p style="text-align: left;"><strong>linux view directory mount point</strong></p><p style="text-align: left;">df option file directory or file name</p><p style="text-align: left;">Parameters:</p><p style="text-align: left;">-a. --all, display all file systems, including virtual file systems</p><p style="text-align: left;">-B. --block-size specifies the unit size, such as 1K, 1M, etc.</p><p style="text-align: left;">-h, --human-readable is displayed in human-readable GB, MB, KB, etc.</p><p style="text-align: left;">- H. --si is the same as -h parameter, but not 1024, but 1000, that is, 1K=1000, not 1K=1024</p><p style="text-align: left;">-i, --inodes, instead of hard disk capacity, inode The number to display</p><p style="text-align: left;">-k, in KB capacityDisplay each file system, equivalent to --block-size=1k</p><p style="text-align: left;">-m, display each file system in MB capacity, equivalent to --block-size=1m</p><p style="text-align: left;">- l, --local, only display the local file system</p><p style="text-align: left;">--no-sync; do not call the sync command before counting usage information</p><p style="text-align: left;">-sync, call snyc before counting usage information Command</p><p style="text-align: left;">-P, portability, use POSIX format to display</p><p style="text-align: left;">-t, --type=TYPE, only display the specified type of file system</p><p style="text-align: left;">-T, --print-type, display file system type</p><p style="text-align: left;">-x, --exclude-type=TYPE, do not display the specified type of file system</p><p style="text-align: left;">--help, display help information</p><p style="text-align: left;">--version. Display version information</p><p style="text-align: left;">Example</p><pre class="brush:php;toolbar:false hljs yaml" style="margin-top: 8px; margin-bottom: 8px; padding: 15px; box-sizing: border-box; overflow-x: auto; background-color: rgb(240, 242, 245); color: rgb(45, 48, 55); font-size: 14px; border: 1px solid rgb(219, 225, 232); border-radius: 4px; white-space: pre-wrap; overflow-wrap: break-word; word-break: break-all; text-align: left;">$&nbsp;df&nbsp;/homeFilesystem&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1K-blocks&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Used&nbsp;Available&nbsp;Use%&nbsp;Mounted&nbsp;on/dev/sda1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;39088576&nbsp;21481232&nbsp;&nbsp;15598720&nbsp;&nbsp;58%&nbsp;/$&nbsp;df&nbsp;-khFilesystem&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Size&nbsp;&nbsp;Used&nbsp;Avail&nbsp;Use%&nbsp;Mounted&nbsp;onudev&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;971M&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;971M&nbsp;&nbsp;&nbsp;0%&nbsp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p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5120&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5116&nbsp;&nbsp;&nbsp;1%&nbsp;/run/locktmpfs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tmpfs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1020780&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;1020780&nbsp;&nbsp;&nbsp;0%&nbsp;/sys/fs/cgrouptmpfs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tmpfs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;204156&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;72&nbsp;&nbsp;&nbsp;&nbsp;204084&nbsp;&nbsp;&nbsp;1%&nbsp;/run/user/1000/dev/sr0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iso9660&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;58100&nbsp;&nbsp;&nbsp;&nbsp;58100&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;100%&nbsp;/media/cheng/VBOXADDITIONS_5.1.30_118389/dev/sdc1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vfat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;7558232&nbsp;&nbsp;6250404&nbsp;&nbsp;&nbsp;1307828&nbsp;&nbsp;83%&nbsp;/mnt</pre><p style="text-align: left;"><br/></p><p><br/></p><p><br/></p>


Copyright Description:No reproduction without permission。

Knowledge sharing community for developers。

Let more developers benefit from it。

Help developers share knowledge through the Internet。

Follow us