mount
Command Function
This command is used to mount a device to a specified directory.
Syntax
mount [-f] [-t TYPE] [-o OPTION,] [[DEVICE] DIR]
Parameters
Table 1 Parameter description
Usage
By 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.
Example
Run mount -t nfs 192.168.1.3:/nfs nfs.
Output
Mounting the nfs directory on the server with IP address of 192.168.1.3 to the newly created /nfs directory in the current system
OHOS:/$ mkdir nfs
OHOS:/$ mount -t nfs 192.168.1.3:/nfs nfs
Mount nfs on 192.168.1.3:/nfs, uid:0, gid:0
Mount nfs finished.
OHOS:/$ ls nfs/
16d.xml gpio_test ohos_test.txt userfs_vfat.img
OHOS_Image.bin hello rootfs_vfat.img
dev_tools mksh_rootfs_vfat.img test_demo