"Function description":
Disk Mount
"Syntax format":
Mount-a
Mount-l
mount [-t file system "[-l Label name [-o additional options "[-n] appliance file name    mount point
"Option Parameters":
-A :/etc/fstab all non-mounted disks according to the data of the configuration file;
- L : The simple input mount will display the information currently mounted. Plus-L to add a label name;
- T : You can add a file system type to specify the types you want to mount; Common Linux support types are: ext2,ext3,vfat,reiserfs,iso9660 (disc format), NFS,CIFS,SMBFS (these three are network file systems)
- N : In the default case, the actual mount is written to/etc/mtab in real time to facilitate the action of other programs. However, in some cases (such as single-user maintenance mode), in order to avoid problems, it is deliberately not written. You have to use this-n option now.
- L : The system can be mounted using the file system's header name (label) in addition to the device file name (for example,/DEV/HDC6). It's a good idea to have a unique name for your file system.
- o : Some additional parameters can be attached to the mount at a later time. For example: Account number, password, read-write permission, etc. Async,sync: Whether this file system uses synchronous write (sync) or asynchronous (async) memory mechanisms. Default to Async.
"Practice Actions":
[email protected] ~]# mount
/dev/sda3 on/type ext4 (rw)
Proc On/proc type proc (rw)
Sysfs On/sys type SYSFS (rw)
Devpts on/dev/pts type devpts (rw,gid=5,mode=620)
Tmpfs ON/DEV/SHM type TMPFS (rw)
/DEV/SDA1 on/boot type EXT4 (rw)
None On/proc/sys/fs/binfmt_misc type Binfmt_misc (rw)
Example two: Mounting a disc
[Email protected] ~]# Mkdir/media/cdrom
[Email protected] ~]# mount-t Iso9660/dev/cdrom/media/cdrom
Mount:block Device/dev/sr0 is write-protected, mounting read-only
[Email protected] ~]# Mount/dev/cdrom/media/cdrom
Mount:block Device/dev/sr0 is write-protected, mounting read-only
Mount:/dev/sr0 already mounted or/media/cdrom busy
Mount:according to mTAB,/dev/sr0 is already mounted on/media/cdrom
[Email protected] ~]# Umount/dev/cdrom
[Email protected] ~]# Mount/dev/cdrom/media/cdrom
Mount:block Device/dev/sr0 is write-protected, mounting read-only
Summary: Mount disc can be specified as-T iso9660 this disc format to mount, or let the system to test the mount itself. So just one of the instructions above is enough. That mount-t Iso9660/dev/cdrom/media/cdrom is equivalent to Mount/dev/cdrom/media/cdrom
This article is from "Linux rookie" blog, please be sure to keep this source http://490617581.blog.51cto.com/11186315/1757801
Linux mount (disk mount)