kernel-small-debug-shell-file-mount.md 5.0 KB
Newer Older
D
duangavin123 已提交
1
# mount<a name="EN-US_TOPIC_0000001134006264"></a>
W
wenjun 已提交
2

N
NEEN 已提交
3 4
-   [Command Function](#section11631837182)
-   [Syntax](#section1697638111820)
D
duangavin123 已提交
5
-   [Parameters](#section1650151221819)
N
NEEN 已提交
6 7 8 9
-   [Usage](#section124541520171912)
-   [Example](#section7424625171917)
-   [Output](#section14757018116)

W
wenjun 已提交
10 11 12 13 14 15 16 17
## Command Function<a name="section11631837182"></a>

This command is used to mount a device to a specified directory.

## Syntax<a name="section1697638111820"></a>

mount <_device_\> <_path_\> <_name_\> \[_uid gid_\]

D
duangavin123 已提交
18
## Parameters<a name="section1650151221819"></a>
W
wenjun 已提交
19

D
duangavin123 已提交
20
**Table  1**  Parameter description
W
wenjun 已提交
21 22 23 24 25 26 27 28 29 30 31 32

<a name="table1338mcpsimp"></a>
<table><thead align="left"><tr id="row1344mcpsimp"><th class="cellrowborder" valign="top" width="21%" id="mcps1.2.4.1.1"><p id="p1346mcpsimp"><a name="p1346mcpsimp"></a><a name="p1346mcpsimp"></a><strong id="b84913249612"><a name="b84913249612"></a><a name="b84913249612"></a>Parameter</strong></p>
</th>
<th class="cellrowborder" valign="top" width="52%" id="mcps1.2.4.1.2"><p id="p1348mcpsimp"><a name="p1348mcpsimp"></a><a name="p1348mcpsimp"></a><strong id="b1136292612616"><a name="b1136292612616"></a><a name="b1136292612616"></a>Description</strong></p>
</th>
<th class="cellrowborder" valign="top" width="27%" id="mcps1.2.4.1.3"><p id="p1350mcpsimp"><a name="p1350mcpsimp"></a><a name="p1350mcpsimp"></a><strong id="b4385271067"><a name="b4385271067"></a><a name="b4385271067"></a>Value Range</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="row1351mcpsimp"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.2.4.1.1 "><p id="p1353mcpsimp"><a name="p1353mcpsimp"></a><a name="p1353mcpsimp"></a>device</p>
</td>
D
duangavin123 已提交
33
<td class="cellrowborder" valign="top" width="52%" headers="mcps1.2.4.1.2 "><p id="p1355mcpsimp"><a name="p1355mcpsimp"></a><a name="p1355mcpsimp"></a>Specifies the path of the device to be mounted. The format is the path of the device.</p>
W
wenjun 已提交
34 35 36 37 38 39
</td>
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.2.4.1.3 "><p id="p1357mcpsimp"><a name="p1357mcpsimp"></a><a name="p1357mcpsimp"></a>A device in the system</p>
</td>
</tr>
<tr id="row1358mcpsimp"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.2.4.1.1 "><p id="p1360mcpsimp"><a name="p1360mcpsimp"></a><a name="p1360mcpsimp"></a>path</p>
</td>
D
duangavin123 已提交
40 41
<td class="cellrowborder" valign="top" width="52%" headers="mcps1.2.4.1.2 "><p id="p1362mcpsimp"><a name="p1362mcpsimp"></a><a name="p1362mcpsimp"></a>Specifies the directory of the device.</p>
<p id="p1363mcpsimp"><a name="p1363mcpsimp"></a><a name="p1363mcpsimp"></a>You must have the execution (search) permission for the specified directory.</p>
W
wenjun 已提交
42 43 44 45 46 47
</td>
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.2.4.1.3 "><p id="p1365mcpsimp"><a name="p1365mcpsimp"></a><a name="p1365mcpsimp"></a>N/A</p>
</td>
</tr>
<tr id="row1366mcpsimp"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.2.4.1.1 "><p id="p1368mcpsimp"><a name="p1368mcpsimp"></a><a name="p1368mcpsimp"></a>name</p>
</td>
D
duangavin123 已提交
48
<td class="cellrowborder" valign="top" width="52%" headers="mcps1.2.4.1.2 "><p id="p1370mcpsimp"><a name="p1370mcpsimp"></a><a name="p1370mcpsimp"></a>Specifies the file system type.</p>
W
wenjun 已提交
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
</td>
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.2.4.1.3 "><p id="p1372mcpsimp"><a name="p1372mcpsimp"></a><a name="p1372mcpsimp"></a>vfat, yaffs, jffs, ramfs, nfs, procfs, romfs</p>
</td>
</tr>
<tr id="row138821392219"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.2.4.1.1 "><p id="p15883891213"><a name="p15883891213"></a><a name="p15883891213"></a>uid gid</p>
</td>
<td class="cellrowborder" valign="top" width="52%" headers="mcps1.2.4.1.2 "><p id="p158834917217"><a name="p158834917217"></a><a name="p158834917217"></a><strong id="b1647703019395"><a name="b1647703019395"></a><a name="b1647703019395"></a>uid</strong> indicates the user ID.</p>
<p id="p18500185615215"><a name="p18500185615215"></a><a name="p18500185615215"></a><strong id="b13341343114017"><a name="b13341343114017"></a><a name="b13341343114017"></a>gid</strong> indicates the group ID.</p>
<p id="p519052614387"><a name="p519052614387"></a><a name="p519052614387"></a>This parameter is optional. The default values are <strong id="b586915244111"><a name="b586915244111"></a><a name="b586915244111"></a>uid:0</strong> and <strong id="b1471656417"><a name="b1471656417"></a><a name="b1471656417"></a>gid:0</strong>.</p>
</td>
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.2.4.1.3 "><p id="p178835919211"><a name="p178835919211"></a><a name="p178835919211"></a>N/A</p>
</td>
</tr>
</tbody>
</table>

## Usage<a name="section124541520171912"></a>

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<a name="section7424625171917"></a>

D
duangavin123 已提交
71
Run  **mount /dev/mmcblk0p0 /bin1/vs/sd vfat**.
W
wenjun 已提交
72 73 74 75 76

## Output<a name="section14757018116"></a>

Mounting  **/dev/mmcblk0p0**  to the  **/bin1/vs/sd**  directory

D
duangavin123 已提交
77
![](figure/en-us_image_0000001134008688.png)
W
wenjun 已提交
78