• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# partinfo
2
3
4## Command Function<a name="section1777503617199"></a>
5
6This command is used to query information about the partitions of a hard disk or SD card identified by the system.
7
8## Syntax<a name="section185501447132114"></a>
9
10partinfo <_dev\_inodename_\>
11
12## Parameters<a name="section1304151212252"></a>
13
14**Table  1**  Parameter description
15
16<a name="table1390mcpsimp"></a>
17<table><thead align="left"><tr id="row1396mcpsimp"><th class="cellrowborder" valign="top" width="22%" id="mcps1.2.4.1.1"><p id="p1398mcpsimp"><a name="p1398mcpsimp"></a><a name="p1398mcpsimp"></a><strong id="b130786349111516"><a name="b130786349111516"></a><a name="b130786349111516"></a>Parameter</strong></p>
18</th>
19<th class="cellrowborder" valign="top" width="51%" id="mcps1.2.4.1.2"><p id="p1400mcpsimp"><a name="p1400mcpsimp"></a><a name="p1400mcpsimp"></a><strong id="b1089142031013"><a name="b1089142031013"></a><a name="b1089142031013"></a>Description</strong></p>
20</th>
21<th class="cellrowborder" valign="top" width="27%" id="mcps1.2.4.1.3"><p id="p1402mcpsimp"><a name="p1402mcpsimp"></a><a name="p1402mcpsimp"></a><strong id="b17244395211516"><a name="b17244395211516"></a><a name="b17244395211516"></a>Value Range</strong></p>
22</th>
23</tr>
24</thead>
25<tbody><tr id="row1403mcpsimp"><td class="cellrowborder" valign="top" width="22%" headers="mcps1.2.4.1.1 "><p id="p1405mcpsimp"><a name="p1405mcpsimp"></a><a name="p1405mcpsimp"></a>dev_inodename</p>
26</td>
27<td class="cellrowborder" valign="top" width="51%" headers="mcps1.2.4.1.2 "><p id="p1407mcpsimp"><a name="p1407mcpsimp"></a><a name="p1407mcpsimp"></a>Specifies the name of the partition to be queried.</p>
28</td>
29<td class="cellrowborder" valign="top" width="27%" headers="mcps1.2.4.1.3 "><p id="p1409mcpsimp"><a name="p1409mcpsimp"></a><a name="p1409mcpsimp"></a>A valid partition name</p>
30</td>
31</tr>
32</tbody>
33</table>
34
35## Usage<a name="section4566131982520"></a>
36
37None
38
39## Example<a name="section4351134942514"></a>
40
41Run  **partinfo /dev/mmcblk0p0**.
42
43## Output<a name="section66689331412"></a>
44
45System partition information:
46
47```
48OHOS # partinfo /dev/mmcblk0p0
49part info :
50disk id          : 0
51part_id in system: 1
52part no in disk  : 0
53part no in mbr   : 0
54part filesystem  : 00
55part sec start   : 20480
56part sec count   : 102400
57```
58
59