1# partition 2 3 4## Command Function<a name="section255095212257"></a> 5 6This command is used to query flash partition information. 7 8## Syntax<a name="section10258056122515"></a> 9 10partition \[_nand / spinor_\] 11 12## Parameters<a name="section177200581256"></a> 13 14**Table 1** Parameter description 15 16<a name="table1425mcpsimp"></a> 17<table><thead align="left"><tr id="row1431mcpsimp"><th class="cellrowborder" valign="top" width="21%" id="mcps1.2.4.1.1"><p id="p1433mcpsimp"><a name="p1433mcpsimp"></a><a name="p1433mcpsimp"></a><strong id="b194783171311544"><a name="b194783171311544"></a><a name="b194783171311544"></a>Parameter</strong></p> 18</th> 19<th class="cellrowborder" valign="top" width="52%" id="mcps1.2.4.1.2"><p id="p1435mcpsimp"><a name="p1435mcpsimp"></a><a name="p1435mcpsimp"></a><strong id="b207813185121"><a name="b207813185121"></a><a name="b207813185121"></a>Description</strong></p> 20</th> 21<th class="cellrowborder" valign="top" width="27%" id="mcps1.2.4.1.3"><p id="p1437mcpsimp"><a name="p1437mcpsimp"></a><a name="p1437mcpsimp"></a><strong id="b133141469711544"><a name="b133141469711544"></a><a name="b133141469711544"></a>Value Range</strong></p> 22</th> 23</tr> 24</thead> 25<tbody><tr id="row1438mcpsimp"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.2.4.1.1 "><p id="p1440mcpsimp"><a name="p1440mcpsimp"></a><a name="p1440mcpsimp"></a>nand</p> 26</td> 27<td class="cellrowborder" valign="top" width="52%" headers="mcps1.2.4.1.2 "><p id="p1442mcpsimp"><a name="p1442mcpsimp"></a><a name="p1442mcpsimp"></a>Displays information about the NAND flash partition.</p> 28</td> 29<td class="cellrowborder" valign="top" width="27%" headers="mcps1.2.4.1.3 "><p id="p1444mcpsimp"><a name="p1444mcpsimp"></a><a name="p1444mcpsimp"></a>N/A</p> 30</td> 31</tr> 32<tr id="row1445mcpsimp"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.2.4.1.1 "><p id="p1447mcpsimp"><a name="p1447mcpsimp"></a><a name="p1447mcpsimp"></a>spinor</p> 33</td> 34<td class="cellrowborder" valign="top" width="52%" headers="mcps1.2.4.1.2 "><p id="p1449mcpsimp"><a name="p1449mcpsimp"></a><a name="p1449mcpsimp"></a>Displays information about the SPI NOR flash partition.</p> 35</td> 36<td class="cellrowborder" valign="top" width="27%" headers="mcps1.2.4.1.3 "><p id="p1451mcpsimp"><a name="p1451mcpsimp"></a><a name="p1451mcpsimp"></a>N/A</p> 37</td> 38</tr> 39</tbody> 40</table> 41 42## Usage<a name="section17866411262"></a> 43 44- The **partition** command is used to query flash partition information. 45- The NAND flash partition information can be queried only when the Yet Another Flash File System \(YAFFS\) is enabled. The SPI NOR flash partition information can be queried only when the Journaling Flash File System \(JFFS\) or ROM filesystem \(romfs\) is enabled. 46 47## Example<a name="section1927174202610"></a> 48 49Run **partition spinor**. 50 51## Output<a name="section11321011223"></a> 52 53SPI NOR flash partition information: 54 55``` 56OHOS # partition spinor 57spinor partition num:0, blkdev name:/dev/spinorblk0, mountpt:/, startaddr:0x00500000, length:0x00a00000 58``` 59 60