mount
Command Function
This command is used to mount a device to a specified directory.
Syntax
mount <device> <path> <name> [uid gid]
Parameter Description
Table 1 Parameters
Parameter
|
Description
|
Value Range
|
device
|
Indicates the path of the device to be mounted. The format is the path of the device.
|
A device in the system
|
path
|
Indicates the directory of the device.
The user must have the execution (search) permission for the specified directory.
|
N/A
|
name
|
Indicates the file system type.
|
vfat, yaffs, jffs, ramfs, nfs, procfs, romfs
|
uid gid
|
uid indicates the user ID.
gid indicates the group ID.
This parameter is optional. The default values are uid:0 and gid:0.
|
N/A
|
Usage
By specifying the device to be mounted, directory, and file system format in the mount command, you can successfully mount the file system to the specified directory.
Example
Enter mount /dev/mmcblk0p0 /bin1/vs/sd vfat.
Output
Mounting /dev/mmcblk0p0 to the /bin1/vs/sd directory
![](figures/en-us_image_0000001051690323.png)