Android 9.0 查看分区信息 Partition size view after android p

Android 9.0  查看分区信息

 

方式1: df -h  /  df -ah 

查看个分区的大小/使用状况/挂载点等信息

 

 

 上述图片没有显示system分析的状况,可以执行 df -h /system,system实际是被加载到root这个节点

 

 

 

 

方式2:查看分区数  cat /proc/partitions

 

 

 

 

方式3:查看分区名字:ls -l /dev/block/by-name

 

 

 

 

方式4:查看分区挂载点:cat /proc/mounts  /  mount

 

 

方式5:查看各分区容量 cat /sys/class/block/mmcblk0p16/size  显示单位是records,1records=512byte

 

 

 上面这张图片是system分区的状况:size = 3145728/2=1572864 KB = 1536 MB = 1.5GB

 

😅😆😉

举个例子:开发测试板的一份分区表

AOSP 9.0 [Layout View]
   +---------------------------------+ 0x0001d1ffbe00
   |        data (   4268843KBytes) 29 |
   +---------------------------------+ 0x0000cd731000
   |         ta2 (     16384KBytes) 39 |
   +---------------------------------+ 0x0000cc731000
   |          ta (     16384KBytes) 38 |
   +---------------------------------+ 0x0000cb731000
   |        dtbo (      8192KBytes) 37 |
   +---------------------------------+ 0x0000caf31000
   |      vbmeta (      1024KBytes) 36 |
   +---------------------------------+ 0x0000cae31000
   |       param (      4096KBytes) 35 |
   +---------------------------------+ 0x0000caa31000
   |        misc (      4096KBytes) 34 |
   +---------------------------------+ 0x0000ca631000
   |        logo (     16384KBytes) 33 |
   +---------------------------------+ 0x0000c9631000
   |       uboot (      4096KBytes) 32 |
   +---------------------------------+ 0x0000c9231000
   |      vendor (    262144KBytes) 31 |
   +---------------------------------+ 0x0000b9231000
   |       cache (    630784KBytes) 28 |
   +---------------------------------+ 0x000092a31000
   |      system (   1572864KBytes) 30 |
   +---------------------------------+ 0x00000c231000
   |   recovery2 (     40960KBytes) 25 |
   +---------------------------------+ 0x000009a31000
   |    recovery (     40960KBytes) 24 |
   +---------------------------------+ 0x000007231000
   |       boot2 (     32768KBytes) 23 |
   +---------------------------------+ 0x000005231000
   |        boot (     32768KBytes) 22 |
   +---------------------------------+ 0x000003231000
   |      video2 (     10240KBytes) 8 |
   +---------------------------------+ 0x000002831000
   |       video (     10240KBytes) 7 |
   +---------------------------------+ 0x000001e31000
   |      audio2 (     10240KBytes) 64 |
   +---------------------------------+ 0x000001431000
   | audioKernel (     10240KBytes) 5 |
   +---------------------------------+ 0x000000a31000
   |    FwTable2 (        32KBytes) 67 |
   +---------------------------------+ 0x000000a29000
   |    fw_table (        32KBytes) 51 |
   +---------------------------------+ 0x000000a21000
   |     factory (      4096KBytes) 50 |
   +---------------------------------+ 0x000000621000
   |   TEE_PARAM (         4KBytes) 83 |
   +---------------------------------+ 0x000000620000
   |   bootcode2 (      3072KBytes) 49 |
   +---------------------------------+ 0x000000320000
   |##  bootcode (      3072KBytes) 48 |
   +---------------------------------+ 0x000000020000
   |   part_area (       128KBytes) 76 |
   +---------------------------------+ 0x000000000000

 

posted on 2021-07-15 18:16  二的次方  阅读(2755)  评论(0编辑  收藏  举报