The Mount command is used to mount the specified file system or partition to the specified directory, is used to mount the disc, to access the disc's data, and the disc is not automatically mounted to the directory, so it needs to be mounted manually. (to ensure that the system has successfully connected the disc)
1. Usage
Mount [-LHV]
mount-a [Options]
mount [Options] [--source] < source > | [--target] < catalogue >
Mount [Options] < source > < directory >
Mount < operations > < mount point > [< target;]
2. Command options
-a,--all mount all file systems in Fstab
- C,--No-canonicalize does not normalize paths
-F,--fake empty run; skip Mount (2) system call
-F,--Fork to disable fork for each device (use with-a option)
-T,--fstab < paths >/etc/fstab alternative files
- H,--Help displays this assistance and exits
- i,--internal-only do not call mount.< Type > Helper program
-L,--show-labels lists all mounts with the specified label
- n,--no-mtab do not write/etc/mtab
-O,--options < list > Mount options list, comma delimited
-o,--test-opts < list > Restrict file System collection (used with-a option)
-R,--read-only mount file system as read-only (with-o ro)
- t,--types < list > restrict file system type collection
--source < source > indicate source (path, label, UUID)
--target < targets > specify mount points
-v,--verbose to print the current operation
- v,--version displays release information and exits
-w,--rw,--read-write mount file system in read-write mode (default)
- H,--Help displays this assistance and exits
- v,--version output information and exit
3. Example
1) Mount the disc to the/mnt/cdrom/command Mount/dev/cdrom/mnt/cdrom or Mount/dev/sr0/mnt/cdrom
Mount /dev/cdrom/mnt/cdrommount:/dev/ls /mnt/cdrom/centos_ Buildtag EULA images LiveOS repodata RPM-gpg-key-centos-testing-7EFI GPL isolinux Packages RPM-gpg-key-centos-7 TRANS. TBL
4. Lifting the Mount
Note: You cannot lift the mount point directory, you must first switch to a different directory
Umount/mnt/cdrom or Umount/dev/sr0
Linux Mount Command