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