Mount (mount) and unmount (umount) commands in linux

The production system involves the storage of some file attachments. In the actual project, the nas mounting method is used. The following is a record of mounting related problems for friends to share and reference:
Mount and unmount in linux ) The use of commands
One, simple usage

Mount

$ mount /dev/hda2 /home

The first parameter is the device file related to the disk or partition including the file system.
The second parameter is the directory to be mounted.

Unmount the mount point

$ umount /dev/hda2
$ umount /usr

The parameters can be device files or installation points.

Practical example:
mount:
mount -t nfs 172.21.20.11:/bchdgdzc /usr/local/nginx/html/files/ -o rw,noatime,nodiratime,nolock,nocto,noacl,nordirplus,vers=3,wsize=1048576 ,rsize=1048576
Description: Mount the nas system with the IP address of 172.21.20.11:/bchdgdzc under /usr/local/nginx/html/files/, and the following are some detailed configuration parameters
to unmount:

umount /usr/local/nginx/html/files/

Guess you like

Origin blog.csdn.net/wujian_csdn_csdn/article/details/107940020