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--
Today, what the editor shares with you is the detailed explanation of mount commands and common command parameters. I believe many people do not know much about mount commands. In order to let you know more about mount commands, I have summarized the following contents. Let's look down together. I'm sure you'll get something.
Detailed explanation of linux mount command
The mount command is used to load the file system to the specified mount point. This command is also often used to mount cdrom, so that we can access the data in cdrom, because you insert the CD into cdrom, Linux will not automatically mount, you must use the Linux mount command to complete the mount manually.
Under the Linux system, different directories can mount different partitions and disk devices, and its directories and disk partitions are separate and can be combined freely (by mounting).
Different directory data can span different disk partitions or different disk devices
There is no entrance to the disk device by default, and the entrance that cannot access the disk is the mount point.
The essence of mounting is to add an entry to the disk.
Common command parameters for mount
The standard form of the mount command, is mount-t type device dir-l: display a list of loaded file systems;-h: display help and exit;-v: verbose mode, output instruction execution details;-n: load file systems that are not written to the file "/ etc/mtab";-r: load file systems into read-only mode;-a: load all file systems described in file "/ etc/fstab". -t: load file system type supported include: adfs, affs, autofs, cifs, coda, coherent, cramfs, debugfs, devpts, efs, ext, ext2, ext3, ext4, hfs, hfsplus, hpfs, iso9660, jfs, minix, msdos, ncpfs, nfs, nfs4, ntfs, proc, qnx4, ramfs, reiserfs, romfs, squashfs, smbfs, sysv, tmpfs, ubifs, ubifs, udf, ufs, umsdos.
Commonly used command displays:
Mount the first partition of the first disk to the / etc directory
Mount-t ext4-o loop,default / dev/sda1 / etc/dev/sda1-- > the first partition mounted on the first disk / dev/sdb2-- > the second partition df-h mounted on the second disk to view the mounted disk = = > equivalent to viewing cat / proc/mounts
Unmount the mounted disk
Umount-lf / dev/sda1
The above is a detailed description of mount commands and a brief introduction of common command parameters, of course, the detailed use of the above differences have to be used before you understand. If you want to know more, welcome to follow the industry information channel!
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.