In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
What are the commonly used mount commands in linux? for this problem, this article introduces the corresponding analysis and solutions in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.
I. the format of the mount command is (note that mount can only be run under root permissions)
Mount dervice dir
Dervice is the device to be mounted, and dir is the mount point
two。 View devices in the current disk list
Fdisk-l
The following information is displayed
Root@kali:~# fdisk-lDisk / dev/sda: 465.8 GiB, 500107862016 bytes 976773168 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisklabel type: dosDisk identifier: 0x1eb9aaf8Device Boot Start End Sectors Size Id Type/dev/sda1 * 2048 209719295 209717248 100G 7 HPFS/NTFS/exFAT/dev/sda2 209719296 976773119 767053824 365.8G f W95 Ext'd (LBA) / dev/sda5 20921344 4655935 255854592 122G HPFS/NTFS/exFAT/ Dev/sda6 465577984 721432575 255854592 122G 7 HPFS/NTFS/exFAT/dev/sda7 721434624 976773119 255338496 121.8G 7 HPFS/NTFS/exFATDisk / dev/sdb: 117.9 GiB 126567317504 bytes, 247201792 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisklabel type: dosDisk identifier: 0x19ac4874Device Boot Start End Sectors Size Id Type/dev/sdb1 * 2048 238815231 238813184 113.9G 83 Linux/dev/sdb2 238817278 247199743 8382466 4G 5 Extended/dev/sdb5 238817280 247199743 8382464 4G 82 Linux swap / SolarisDisk / dev/sdc: 29.7 GiB, 31876710400 bytes 62259200 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisklabel type: dosDisk identifier: 0x00000000Device Boot Start End Sectors Size Id Type/dev/sdc1 2048 62257151 62255104 29.7G c W95 FAT32 (LBA)
Here we can see all the devices and partitions connected to the computer, for example, we want to mount / dev/sda5
three。 Create a mount point
Mkdir / mnt/diskdmount / dev/sda5 / mnt/diskd
Mounted successfully
four。 Eject device
Umount / dev/sda5
You can view the device mount point through df
This is the answer to the question about which mount commands are commonly used in linux. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.
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.