Linux Mount Command

Source: Internet
Author: User

Linux mount CommandLet me give you a few examples
Mount Mount -T [File system]-o [additional options  ]mount193.169.  4.2:/home_b/nfstoot/demon/t10/mntumount             -F    Force             -n    do not upgrade/ etc/mtab Case Uninstall #umount /media/user/*

The above mount means: Mount NFS File system, timeout reminder, this file system/mnt mounted on the 193.169.4.2 on the T10.

Uninstall all the things under the user to uninstall.

The Linux mount command is a frequently used command that is used to mount files outside the Linux system.

Grammar
Mount [-HV] Mount -A [-FFNRSVW] [-t Vfstype]mountdirMountdir

Parameter description:

-V: Show program version-h: Display auxiliary message-V: Show more messages, usually and-f is used to remove the error. -A:/etc/all the file systems defined in the Fstab are hung. -F: This command is usually used with-a, and it will be for eachMountthe action produces a trip responsible for execution. You can speed up the action of hanging when the system needs to hang a large number of NFS file systems. -F: Usually used for debugging purposes. It will makeMountDoes not perform the actual hanging action, but simulates the entire hanging process. Usually and-v is used together. -N: Generally speaking,MountIt hangs on the/etc/.write a file in the mTAB. However, this option can be used to cancel this action if there is no writable file system in the system. -s-r: Equals-o ro-WEqual too rw-L: Split the hard drive with a specific label on it. -U: The file system with the file segmentation sequence is hung down. -L and-u must be in/proc/it makes sense to partition such files when they exist. -T: Specifies the configuration of the file system, which is usually not required.Mountthe correct pattern is automatically selected. -o Async: Open asynchronous mode, all file read and write actions will be performed in asynchronous mode. -OSync: Executes in synchronous mode. -O atime,-o Noatime: When Atime is turned on, the system updates the last call time of the archive each time it is read. When we use the Flash file system, we may turn this option off to reduce the number of writes. -O auto,-o noauto: Open/Turn off auto-hang mode. -o Defaults: Use preset options for RW, suid, dev, exec, auto, Nouser, and async.-O Dev,-o nodev-o exec,-o noexec allows execution of the file to be executed. -O suid,-o Nosuid: Allows execution of the file under root authority. -O user,-o nouser: User can performMount/Umountthe action. -o remount: Put an already hung file system back in a different way. For example, a system that was originally read-only, is now re-hung in a read-write mode. -o ro: Hang up with read-only mode. -o rw: Hang up in read/write mode. -O loop=: Use loop mode to mount a file as a hard disk split system.

Instance

Hang the/dev/hda1 under/mnt.

#Mount /dev/hda1/mnt

Hang the/dev/hda1 under/mnt with read-only mode.

#Mount -o ro/dev/hda1/mnt

Use the loop mode to hang the image file of the/tmp/image.iso disc under/mnt/cdrom. In this way, the Linux CD ISO file that can be found on the general network can be viewed without being burned into a disc.

#Mount -o loop/tmp/image.iso/mnt/cdrom

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.