1e41f4b71Sopenharmony_ci# mount
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci
4e41f4b71Sopenharmony_ci## Command Function
5e41f4b71Sopenharmony_ci
6e41f4b71Sopenharmony_ciThis command is used to mount a device to a specified directory.
7e41f4b71Sopenharmony_ci
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci## Syntax
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_cimount [_-f_] [_-t TYPE_] [_-o OPTION,_] [[_DEVICE_] _DIR_]
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci
14e41f4b71Sopenharmony_ci## Parameters
15e41f4b71Sopenharmony_ci
16e41f4b71Sopenharmony_ci**Table 1** Parameter description
17e41f4b71Sopenharmony_ci
18e41f4b71Sopenharmony_ci| Parameter  | Description                                                   | Value Range                                                    |
19e41f4b71Sopenharmony_ci| ------ | ----------------------------------------------------------- | ------------------------------------------------------------ |
20e41f4b71Sopenharmony_ci| --help | Displays the parameters supported by the **mount** command.                              | N/A                                                          |
21e41f4b71Sopenharmony_ci| -f     | Fakes mounting the file system (no mounting is actually performed).                             | N/A                                                          |
22e41f4b71Sopenharmony_ci| -t     | Specifies the file system type.                                           | vfat, yaffs, jffs, ramfs, nfs, procfs, romfs|
23e41f4b71Sopenharmony_ci| -o     | Specifies the mount options.                                                 | N/A                                                          |
24e41f4b71Sopenharmony_ci| DEVICE | Specifies the device to mount (in the format of the device directory).                       | A device in the system                                            |
25e41f4b71Sopenharmony_ci| DIR    | Specifies the directory.<br>You must have the execution (search) permission on the specified directory.| N/A                                                          |
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ci
28e41f4b71Sopenharmony_ci## Usage Guidelines
29e41f4b71Sopenharmony_ci
30e41f4b71Sopenharmony_ciBy specifying the device to mount, directory, and file system format in the **mount** command, you can successfully mount the file system to the specified directory.
31e41f4b71Sopenharmony_ci
32e41f4b71Sopenharmony_ci## Note
33e41f4b71Sopenharmony_ci
34e41f4b71Sopenharmony_ciCurrently, the shell does not support this command. mksh supports it. To switch to mksh, run **cd bin** and **./mksh**.
35e41f4b71Sopenharmony_ci
36e41f4b71Sopenharmony_ci## Example
37e41f4b71Sopenharmony_ci
38e41f4b71Sopenharmony_ciRun **mount -t nfs 192.168.1.3:/nfs nfs**.
39e41f4b71Sopenharmony_ci
40e41f4b71Sopenharmony_ci
41e41f4b71Sopenharmony_ci## Output
42e41f4b71Sopenharmony_ci
43e41f4b71Sopenharmony_ciMount the **nfs** directory on the server with IP address of **192.168.1.3** to the newly created **/nfs** directory in the current system.
44e41f4b71Sopenharmony_ci
45e41f4b71Sopenharmony_ci
46e41f4b71Sopenharmony_ci```
47e41f4b71Sopenharmony_ciOHOS:/$ mkdir nfs
48e41f4b71Sopenharmony_ciOHOS:/$ mount -t nfs 192.168.1.3:/nfs nfs
49e41f4b71Sopenharmony_ciMount nfs on 192.168.1.3:/nfs, uid:0, gid:0
50e41f4b71Sopenharmony_ciMount nfs finished.
51e41f4b71Sopenharmony_ciOHOS:/$ ls nfs/
52e41f4b71Sopenharmony_ci16d.xml         gpio_test             ohos_test.txt    userfs_vfat.img
53e41f4b71Sopenharmony_ciOHOS_Image.bin  hello                 rootfs_vfat.img
54e41f4b71Sopenharmony_cidev_tools       mksh_rootfs_vfat.img  test_demo
55e41f4b71Sopenharmony_ci```
56