首页 > 其他分享 >Android分区

Android分区

时间:2023-03-07 15:56:14浏览次数:46  
标签:03 01 04 分区 dev Android root block

1.查看分区数

cat proc/partitions


这里的 blocks 和 高通平台的分区表partition.xml是对应的

	...
	<partition label="modem" size_in_kb="90112" type="EBD0A0A2-B9E5-4433-87C0-68B6B72699C7" bootable="false" readonly="true" filename="NON-HLOS.bin"/>
	<partition label="fsc" size_in_kb="1" type="57B90A16-22C9-E33B-8F5D-0E81686A68CB" bootable="false" readonly="false" filename=""/>
	<partition label="ssd" size_in_kb="8" type="2C86E742-745E-4FDD-BFD8-B6A7AC638772" bootable="false" readonly="false" filename=""/>
	<partition label="sbl1" size_in_kb="512" type="DEA0BA2C-CBDD-4805-B4F9-F428251C3E98" bootable="false" readonly="false" filename="sbl1.mbn"/>
	<partition label="sbl1bak" size_in_kb="512" type="EBD0A0A2-B9E5-4433-87C0-68B6B72699C7" bootable="false" readonly="false" filename="sbl1.mbn"/>
	<partition label="rpm" size_in_kb="512" type="098DF793-D712-413D-9D4E-89D711772228" bootable="false" readonly="false" filename="rpm.mbn"/>
	<partition label="rpmbak" size_in_kb="512" type="EBD0A0A2-B9E5-4433-87C0-68B6B72699C7" bootable="false" readonly="false" filename="rpm.mbn"/>
	<partition label="tz" size_in_kb="2048" type="A053AA7F-40B8-4B1C-BA08-2F68AC71A4F4" bootable="false" readonly="false" filename="tz.mbn"/>
	<partition label="tzbak" size_in_kb="2048" type="EBD0A0A2-B9E5-4433-87C0-68B6B72699C7" bootable="false" readonly="false" filename="tz.mbn"/>
	<partition label="devcfg" size_in_kb="256" type= "F65D4B16-343D-4E25-AAFC-BE99B6556A6D" bootable="false" readonly="false" filename="devcfg.mbn"/>
	<partition label="devcfgbak" size_in_kb="256" type= "F65D4B16-343D-4E25-AAFC-BE99B6556A6D" bootable="false" readonly="false" filename="devcfg.mbn"/>
	<partition label="dsp" size_in_kb="16384" type="EBD0A0A2-B9E5-4433-87C0-68B6B72699C7" bootable="false" readonly="false" filename="adspso.bin"/>
	<partition label="modemst1" size_in_kb="1536" type="EBBEADAF-22C9-E33B-8F5D-0E81686A68CB" bootable="false" readonly="false" filename=""/>
	<partition label="modemst2" size_in_kb="1536" type="0A288B1F-22C9-E33B-8F5D-0E81686A68CB" bootable="false" readonly="false" filename=""/>
	...

2.如何查看分区表和分区名称的匹配关系

V58001A1:/dev/block/by-name # ls -l
total 0
lrwxrwxrwx 1 root root 15 1970-01-01 04:03 ALIGN_TO_128K_1 -> /dev/block/sdd1
lrwxrwxrwx 1 root root 15 1970-01-01 04:03 ALIGN_TO_128K_2 -> /dev/block/sdf1
lrwxrwxrwx 1 root root 15 1970-01-01 04:03 abl_a -> /dev/block/sde8
lrwxrwxrwx 1 root root 16 1970-01-01 04:03 abl_b -> /dev/block/sde30
lrwxrwxrwx 1 root root 15 1970-01-01 04:03 aop_a -> /dev/block/sde1
lrwxrwxrwx 1 root root 16 1970-01-01 04:03 aop_b -> /dev/block/sde23
lrwxrwxrwx 1 root root 15 1970-01-01 04:03 bluetooth_a -> /dev/block/sde5
lrwxrwxrwx 1 root root 16 1970-01-01 04:03 bluetooth_b -> /dev/block/sde27
lrwxrwxrwx 1 root root 16 1970-01-01 04:03 boot_a -> /dev/block/sde11
lrwxrwxrwx 1 root root 16 1970-01-01 04:03 boot_b -> /dev/block/sde33
lrwxrwxrwx 1 root root 15 1970-01-01 04:03 cdt -> /dev/block/sdd2
lrwxrwxrwx 1 root root 16 1970-01-01 04:03 cmnlib64_a -> /dev/block/sde13
lrwxrwxrwx 1 root root 16 1970-01-01 04:03 cmnlib64_b -> /dev/block/sde35
lrwxrwxrwx 1 root root 16 1970-01-01 04:03 cmnlib_a -> /dev/block/sde12
lrwxrwxrwx 1 root root 16 1970-01-01 04:03 cmnlib_b -> /dev/block/sde34
lrwxrwxrwx 1 root root 15 1970-01-01 04:03 ddr -> /dev/block/sdd3
lrwxrwxrwx 1 root root 16 1970-01-01 04:03 devcfg_a -> /dev/block/sde14
lrwxrwxrwx 1 root root 16 1970-01-01 04:03 devcfg_b -> /dev/block/sde36
lrwxrwxrwx 1 root root 16 1970-01-01 04:03 devinfo -> /dev/block/sde45

3.

标签:03,01,04,分区,dev,Android,root,block
From: https://www.cnblogs.com/caseyzq/p/17188354.html

相关文章