Disk mounting and dismounting

Source: Internet
Author: User

Disk mounting and dismounting [root @ www ~] # Mount-a [root @ www ~] # Mount [-l] [root @ www ~] # Mount [-t file system] [-L Label name] [-o extra selection region] \ [-n] mount point of device file name selection region no parameter:-: mount all unmounted ephemeral disks according to the configuration file/etc/fstab mounts.-l: Enter the mount command to display the current mount quota information. Add-l to add the Label name! -T: If the mkfs mounts option is not the same as the mounts option, you can add the file system type to the mounts option. For more information, see the supported types of kernel Linux: ext2, ext3, vfat, reiserfs, iso9660 (disc format), nfs, cifs, and smbfs (these three types are network attached file system types)-n: in the case of "Silent attachment", the system will write the actual Mount conditions to the/etc/mtab in real time to facilitate the running of other programs. However, in some cases (such as the maintenance mode of a single user), data is deliberately written to avoid the problem. In this case, you have to use this-n sequence to select the sequence. -L: in addition to the device file name (for example,/dev/hdc6), the system can also use the file system upload header name (Label) to mount the volume row. It is best to have a unique license name for your fuse file system! -O: You can add the "extra" parameter when mounting the file! For example, account, password, read and write permissions, etc.: ro, rw: mount the file system to become the primary read (ro) ring erasable (rw) async, sync: whether the file system uses synchronous write (sync) to disable asynchronous (async) memory mechanism. For details, refer to the file system operation mode. The pre-commit is async. Auto, noauto: allow you to say that this partition is mounted by mount-a auto mount (auto) dev, nodev: Do you want to talk about this partition, you can create a device file? Dev can allow suid, nosuid: Do you want to allow suid/sgid encoding file format for this partition ton? Exec, noexec: Do you allow users to execute binary files on this partition? User, nouser: whether to allow the user to execute the mount command for this partition failed? In general, only the root user can mount rows, but if the user parameter is specified, the general user can also mount the partition row. Defaults: remount: The default value is rw, suid, dev, exec, auto, nouser, and async. This is useful when a system error occurs and parameters are not updated again! Example 1: mount the Ext2/Ext3 File System to the/mnt/hdc6 file system by using the pre-built fuse mode! [Root @ www ~] # Mkdir/mnt/hdc6 [root @ www ~] # Mount/dev/hdc6/mnt/hdc6 [root @ www ~] # DfFilesystem1K-blocksUsed Available Use % Mounted on... omitted in the middle.../dev/hdc6197631242072 1833836 3%/mnt/hdc6 # it looks like there is a mount in the real volume! The quota file size is about 2 GB!

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.