mount
Command Function
This command is used to mount a device to a specified directory.
Syntax
mount <device> <path> <name> [uid gid]
Parameters
Table 1 Parameter description
Parameter
|
Description
|
Value Range
|
device
|
Specifies the path of the device to be mounted. The format is the path of the device.
|
A device in the system
|
path
|
Specifies the directory of the device.
You must have the execution (search) permission for the specified directory.
|
N/A
|
name
|
Specifies 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
Run mount /dev/mmcblk0p0 /bin1/vs/sd vfat.
Output
Mounting /dev/mmcblk0p0 to the /bin1/vs/sd directory
![](figure/en-us_image_0000001134008688.png)