Linux Mount Command

Source: Internet
Author: User
Tags gpg

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.