##################################################
目录
安卓系统查看存储信息
关于安卓分区
查看磁盘使用情况
查看根分区目录
df -h 常用查看存储情况
df -ah 查看所有存储情况
查看分区数量
df 的 h 参数单独查看加载节点
查看分区表和分区名称的匹配关系
查看各分区容量
查看设备
##################################################
——————————
如果没有安卓分区知识 建议看一下这篇文章:
[探索 Android 设备分区]-安卓手机分区扫盲!折腾狂必看~~_燃吹的博客-CSDN博客_手机分区安卓系统是怎么分区的?用户权限扫盲/为什么需要 root 手机示例获取安卓 5.0.2手机信息以及系统分区详解安卓 6.0 系统分区传统安卓的 non-A/B 分区传统分区介绍传统系统升级方案安卓 7.0 之后的A/B 和 VAB 分区结构A/B 主备分区A/B 分区的系统升级方式以及优缺点A/B 分区结构虚拟 AB 分区安卓 10 之后的动态分区Shared System Image/SSI 概念动态分区和super 概念示例一个 Android 10 的默认分区方案...https://blog.csdn.net/m0_67268286/article/details/125128226
——————————
%%%%%
cmcc_jiangsu:/ # ls
acct d init.environ.rc odm sys
bin data init.rc oem system
boot default.prop init.recovery.amlogic.rc proc tmp
bootfiles dev init.usb.configfs.rc product ueventd.rc
bugreports etc init.usb.rc root vendor
cache factory init.zygote32.rc sbin
charger info metadata sdcard
config init mnt storage
cmcc_jiangsu:/ # ls -alh
total 792K
drwxr-xr-x 23 root root 0 2015-01-01 08:00 .
drwxr-xr-x 23 root root 0 2015-01-01 08:00 ..
dr-xr-xr-x 34 root root 0 2015-01-01 08:00 acct
lrwxrwxrwx 1 root root 11 1970-01-01 08:00 bin -> /system/bin
drwxr-xr-x 2 root root 0 1970-01-01 08:00 boot
drwxrwxr-x 2 system system 0 2015-01-01 08:00 bootfiles
lrwxrwxrwx 1 root root 50 1970-01-01 08:00 bugreports -> /data/user_de/0/com.android.shell/files/bugreports
drwxrwx--- 6 system cache 4.0K 2015-01-01 08:00 cache
lrwxrwxrwx 1 root root 13 1970-01-01 08:00 charger -> /sbin/charger
drwxr-xr-x 4 root root 0 1970-01-01 08:00 config
lrwxrwxrwx 1 root root 17 1970-01-01 08:00 d -> /sys/kernel/debug
drwxrwx--x 40 system system 4.0K 2015-01-01 08:00 data
lrwxrwxrwx 1 root root 23 1970-01-01 08:00 default.prop -> system/etc/prop.default
drwxr-xr-x 17 root root 5.5K 2015-01-01 08:00 dev
lrwxrwxrwx 1 root root 11 1970-01-01 08:00 etc -> /system/etc
drwxr-xr-x 2 root root 0 2015-01-01 08:00 factory
lrwxrwxrwx 1 root root 17 1970-01-01 08:00 info -> /mnt/vendor/param
-rwxr-x--- 1 root root 1.4M 1970-01-01 08:00 init
-rwxr-x--- 1 root root 1.1K 1970-01-01 08:00 init.environ.rc
-rwxr-x--- 1 root root 29K 1970-01-01 08:00 init.rc
-rwxr-x--- 1 root root 15K 1970-01-01 08:00 init.recovery.amlogic.rc
-rwxr-x--- 1 root root 7.5K 1970-01-01 08:00 init.usb.configfs.rc
-rwxr-x--- 1 root root 5.5K 1970-01-01 08:00 init.usb.rc
-rwxr-x--- 1 root root 511 1970-01-01 08:00 init.zygote32.rc
drwxr-xr-x 4 root root 4.0K 2015-01-01 08:00 metadata
drwxr-xr-x 11 root system 240 2015-01-01 08:00 mnt
drwxr-xr-x 4 root root 4.0K 1970-01-01 08:00 odm
drwxr-xr-x 2 root root 0 1970-01-01 08:00 oem
dr-xr-xr-x 259 root root 0 1970-01-01 08:00 proc
drwxr-xr-x 7 root root 4.0K 1970-01-01 08:00 product
drwx------ 2 root root 0 2021-12-10 20:51 root
drwxr-x--- 2 root root 0 1970-01-01 08:00 sbin
lrwxrwxrwx 1 root root 21 1970-01-01 08:00 sdcard -> /storage/self/primary
drwxr-xr-x 4 root root 80 2015-01-01 08:00 storage
dr-xr-xr-x 12 root root 0 2015-01-01 08:00 sys
drwxr-xr-x 15 root root 4.0K 1970-01-01 08:00 system
drwxrwxrwt 3 root root 80 2022-07-21 00:02 tmp
-rw-r--r-- 1 root root 5.1K 1970-01-01 08:00 ueventd.rc
drwxr-xr-x 13 root root 4.0K 1970-01-01 08:00 vendor
cmcc_jiangsu:/ #
%%%%%
最常用的方式:
cmcc_jiangsu:/ # df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 0.9G 516K 0.9G 1% /dev
tmpfs 0.9G 0 0.9G 0% /mnt
/dev/block/odm 122M 472K 122M 1% /odm
/dev/block/product 126M 51M 75M 41% /product
/dev/block/system 1.2G 738M 501M 60% /system
/dev/block/vendor 310M 244M 66M 79% /vendor
tmpfs 0.9G 88K 0.9G 1% /tmp
tmpfs 0.9G 0 0.9G 0% /tmp/capture
/dev/block/data 10G 254M 10G 3% /data
/dev/block/cache 976M 1.2M 975M 1% /cache
/dev/block/metadata 11M 40K 11M 1% /metadata
/dev/block/param 11M 860K 11M 8% /mnt/vendor/param
/dev/block/tee 27M 28K 27M 1% /mnt/vendor/tee
/data/media 10G 254M 10G 3% /mnt/runtime/default/emulated
cmcc_jiangsu:/ # df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 1027576 516 1027060 1% /dev
tmpfs 1027576 0 1027576 0% /mnt
/dev/block/odm 124912 472 124440 1% /odm
/dev/block/product 129008 52496 76512 41% /product
/dev/block/system 1269632 756112 513520 60% /system
/dev/block/vendor 317396 249988 67408 79% /vendor
tmpfs 1027576 132 1027444 1% /tmp
tmpfs 1027576 0 1027576 0% /tmp/capture
/dev/block/data 10610276 260480 10349796 3% /data
/dev/block/cache 999320 1312 998008 1% /cache
/dev/block/metadata 11760 40 11720 1% /metadata
/dev/block/param 11744 860 10884 8% /mnt/vendor/param
/dev/block/tee 27632 28 27604 1% /mnt/vendor/tee
/data/media 10610276 260480 10349796 3% /mnt/runtime/default/emulate
d
cmcc_jiangsu:/ #
%%%%%
cmcc_jiangsu:/ # df -ah
Filesystem Size Used Avail Use% Mounted on
rootfs 0 0 0 0% /
tmpfs 0.9G 516K 0.9G 1% /dev
devpts 0 0 0 0% /dev/pts
proc 0 0 0 0% /proc
sysfs 0 0 0 0% /sys
selinuxfs 0 0 0 0% /sys/fs/selinux
tmpfs 0.9G 0 0.9G 0% /mnt
/dev/block/odm 122M 472K 122M 1% /odm
/dev/block/product 126M 51M 75M 41% /product
/dev/block/system 1.2G 738M 501M 60% /system
/dev/block/vendor 310M 244M 66M 79% /vendor
none 0 0 0 0% /acct
/sys/kernel/debug 0 0 0 0% /sys/kernel/debug
none 0 0 0 0% /dev/stune
none 0 0 0 0% /config
none 0 0 0 0% /dev/cpuctl
none 0 0 0 0% /dev/cpuset
cg2_bpf 0 0 0 0% /dev/cg2_bpf
bpf 0 0 0 0% /sys/fs/bpf
pstore 0 0 0 0% /sys/fs/pstore
tmpfs 0.9G 132K 0.9G 1% /tmp
tmpfs 0.9G 0 0.9G 0% /tmp/capture
tracefs 0 0 0 0% /sys/kernel/debug/tracing
/dev/block/data 10G 254M 10G 3% /data
/dev/block/cache 976M 1.2M 975M 1% /cache
/dev/block/metadata 11M 40K 11M 1% /metadata
/dev/block/param 11M 860K 11M 8% /mnt/vendor/param
/dev/block/tee 27M 28K 27M 1% /mnt/vendor/tee
tmpfs 0.9G 0 0.9G 0% /storage
adb 0 0 0 0% /dev/usb-ffs/adb
/data/media 10G 254M 10G 3% /mnt/runtime/default/emulated
/data/media 10G 254M 10G 3% /storage/emulated
/data/media 10G 254M 10G 3% /mnt/runtime/read/emulated
/data/media 10G 254M 10G 3% /mnt/runtime/write/emulated
cmcc_jiangsu:/ #
%%%%%
要注意的是 df 中的 size 是不准的 要以 /proc/partitions 为准
cmcc_jiangsu:/ # cat /proc/partitions
major minor #blocks name
1 0 4096 ram0
1 1 4096 ram1
1 2 4096 ram2
1 3 4096 ram3
1 4 4096 ram4
1 5 4096 ram5
1 6 4096 ram6
1 7 4096 ram7
1 8 4096 ram8
1 9 4096 ram9
1 10 4096 ram10
1 11 4096 ram11
1 12 4096 ram12
1 13 4096 ram13
1 14 4096 ram14
1 15 4096 ram15
252 0 262144 zram0
179 0 15267840 mmcblk0
179 1 4096 mmcblk0p1
179 2 65536 mmcblk0p2
179 3 1048576 mmcblk0p3
179 4 8192 mmcblk0p4
179 5 8192 mmcblk0p5
179 6 24576 mmcblk0p6
179 7 8192 mmcblk0p7
179 8 8192 mmcblk0p8
179 9 8192 mmcblk0p9
179 10 16384 mmcblk0p10
179 11 16384 mmcblk0p11
179 12 16384 mmcblk0p12
179 13 16384 mmcblk0p13
179 14 2048 mmcblk0p14
179 15 32768 mmcblk0p15
179 16 327680 mmcblk0p16
179 17 131072 mmcblk0p17
179 18 1310720 mmcblk0p18
179 19 131072 mmcblk0p19
179 20 1048576 mmcblk0p20
179 21 10846208 mmcblk0p21
179 96 4096 mmcblk0rpmb
179 64 4096 mmcblk0boot1
179 32 4096 mmcblk0boot0
cmcc_jiangsu:/ #
%%%%%
单独查看分区 被加载到哪个节点
这边发现 /system 是 /dev/block/
cmcc_jiangsu:/ # df -h /system
Filesystem Size Used Avail Use% Mounted on
/dev/block/system 1.2G 738M 501M 60% /system
cmcc_jiangsu:/ #
%%%%%
查看 /proc/mounts 文件
cmcc_jiangsu:/ # cat /proc/mounts
rootfs / rootfs ro,seclabel 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600,ptmxmode=000 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
tmpfs /mnt tmpfs rw,seclabel,nosuid,nodev,noexec,relatime,mode=755,gid=1000 0 0
/dev/block/odm /odm ext4 ro,seclabel,relatime,data=ordered,inode_readahead_blks=8 0 0
/dev/block/product /product ext4 ro,seclabel,relatime,block_validity,delalloc,barrier,user_xattr,acl,inode_readahead_blks=8 0 0
/dev/block/system /system ext4 ro,seclabel,relatime,data=ordered,inode_readahead_blks=8 0 0
/dev/block/vendor /vendor ext4 ro,seclabel,relatime,data=ordered,inode_readahead_blks=8 0 0
none /acct cgroup rw,nosuid,nodev,noexec,relatime,cpuacct 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,seclabel,relatime,mode=755 0 0
configfs /sys/kernel/config configfs rw,relatime 0 0
none /dev/stune cgroup rw,nosuid,nodev,noexec,relatime,schedtune 0 0
none /config configfs rw,nosuid,nodev,noexec,relatime 0 0
none /dev/cpuctl cgroup rw,nosuid,nodev,noexec,relatime,cpu 0 0
none /dev/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset,noprefix,release_
agent=/sbin/cpuset_release_agent 0 0
cg2_bpf /dev/cg2_bpf cgroup2 rw,nosuid,nodev,noexec,relatime 0 0
bpf /sys/fs/bpf bpf rw,nosuid,nodev,noexec,relatime 0 0
pstore /sys/fs/pstore pstore rw,seclabel,nosuid,nodev,noexec,relatime 0 0
tmpfs /tmp tmpfs rw,seclabel,relatime 0 0
tmpfs /tmp/capture tmpfs rw,seclabel,relatime 0 0
tracefs /sys/kernel/debug/tracing tracefs rw,seclabel,relatime 0 0
/dev/block/data /data ext4 rw,seclabel,nosuid,nodev,noatime,nodelalloc,resgid=1065,errors=panic,data=ordered 0 0
/dev/block/cache /cache ext4 rw,seclabel,nosuid,nodev,noatime,nodelalloc,errors=panic,data=ordered 0 0
/dev/block/metadata /metadata ext4 rw,seclabel,nosuid,nodev,noatime,nodelalloc,errors=panic,data=ordered 0 0
/dev/block/param /mnt/vendor/param ext4 rw,seclabel,nosuid,nodev,noatime,nodelalloc,errors=panic,data=ordered 0 0
/dev/block/tee /mnt/vendor/tee ext4 rw,seclabel,nosuid,nodev,noatime,nodelalloc,errors=panic,data=ordered 0 0
tmpfs /storage tmpfs rw,seclabel,nosuid,nodev,noexec,relatime,mode=755,gid=10000 0
adb /dev/usb-ffs/adb functionfs rw,relatime 0 0
/data/media /mnt/runtime/default/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid,default_normal 0 0
/data/media /storage/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid,default_normal 0 0
/data/media /mnt/runtime/read/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=23,derive_gid,default_normal 0 0
/data/media /mnt/runtime/write/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=7,derive_gid,default_normal 0 0
cmcc_jiangsu:/ #
或者查看 /sys/class/block 下的文件指向:
cmcc_jiangsu:/ # ls /sys/class/block -alh
total 0
drwxr-xr-x 2 root root 0 2015-01-01 08:00 .
drwxr-xr-x 119 root root 0 2015-01-01 08:00 ..
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 backup -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/backup
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 boot -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/boot
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 bootloader -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/bootloader
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 cache -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/cache
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 cri_data -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/cri_data
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 data -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/data
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 dtbo -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/dtbo
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 env -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/env
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 logo -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/logo
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 loop0 -> ../../devices/virtual/block/loop0
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 loop1 -> ../../devices/virtual/block/loop1
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 loop2 -> ../../devices/virtual/block/loop2
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 loop3 -> ../../devices/virtual/block/loop3
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 loop4 -> ../../devices/virtual/block/loop4
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 loop5 -> ../../devices/virtual/block/loop5
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 loop6 -> ../../devices/virtual/block/loop6
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 loop7 -> ../../devices/virtual/block/loop7
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 metadata -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/metadata
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 misc -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/misc
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 mmcblk0 -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 mmcblk0boot0 -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/mmcblk0boot0
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 mmcblk0boot1 -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/mmcblk0boot1
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 mmcblk0rpmb -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/mmcblk0rpmb
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 odm -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/odm
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 param -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/param
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 product -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/product
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram0 -> ../../devices/virtual/block/ram0
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram1 -> ../../devices/virtual/block/ram1
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram10 -> ../../devices/virtual/block/ram10
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram11 -> ../../devices/virtual/block/ram11
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram12 -> ../../devices/virtual/block/ram12
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram13 -> ../../devices/virtual/block/ram13
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram14 -> ../../devices/virtual/block/ram14
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram15 -> ../../devices/virtual/block/ram15
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram2 -> ../../devices/virtual/block/ram2
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram3 -> ../../devices/virtual/block/ram3
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram4 -> ../../devices/virtual/block/ram4
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram5 -> ../../devices/virtual/block/ram5
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram6 -> ../../devices/virtual/block/ram6
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram7 -> ../../devices/virtual/block/ram7
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram8 -> ../../devices/virtual/block/ram8
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram9 -> ../../devices/virtual/block/ram9
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 recovery -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/recovery
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 reserved -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/reserved
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 rsv -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/rsv
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 system -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/system
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 tee -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/tee
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 vbmeta -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/vbmeta
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 vendor -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/vendor
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 zram0 -> ../../devices/virtual/block/zram0
cmcc_jiangsu:/ #
mount 缺省输出就是挂载信息:
cmcc_jiangsu:/ # mount
rootfs on / type rootfs (ro,seclabel)
tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,mode=755)
devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600,ptmxmode=000)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,seclabel,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
tmpfs on /mnt type tmpfs (rw,seclabel,nosuid,nodev,noexec,relatime,mode=755,gid=1000)
/dev/block/odm on /odm type ext4 (ro,seclabel,relatime,data=ordered,inode_readahead_blks=8)
/dev/block/product on /product type ext4 (ro,seclabel,relatime,block_validity,delalloc,barrier,user_xattr,acl,inode_readahead_blks=8)
/dev/block/system on /system type ext4 (ro,seclabel,relatime,data=ordered,inode_readahead_blks=8)
/dev/block/vendor on /vendor type ext4 (ro,seclabel,relatime,data=ordered,inode_readahead_blks=8)
none on /acct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct)
/sys/kernel/debug on /sys/kernel/debug type debugfs (rw,seclabel,relatime,mode=755)
configfs on /sys/kernel/config type configfs (rw,relatime)
none on /dev/stune type cgroup (rw,nosuid,nodev,noexec,relatime,schedtune)
none on /config type configfs (rw,nosuid,nodev,noexec,relatime)
none on /dev/cpuctl type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
none on /dev/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset,noprefix,release_agent=/sbin/cpuset_release_agent)
cg2_bpf on /dev/cg2_bpf type cgroup2 (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime)
pstore on /sys/fs/pstore type pstore (rw,seclabel,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,seclabel,relatime)
tmpfs on /tmp/capture type tmpfs (rw,seclabel,relatime)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,seclabel,relatime)
/dev/block/data on /data type ext4 (rw,seclabel,nosuid,nodev,noatime,nodelalloc,resgid=1065,errors=panic,data=ordered)
/dev/block/cache on /cache type ext4 (rw,seclabel,nosuid,nodev,noatime,nodelalloc,errors=panic,data=ordered)
/dev/block/metadata on /metadata type ext4 (rw,seclabel,nosuid,nodev,noatime,nodelalloc,errors=panic,data=ordered)
/dev/block/param on /mnt/vendor/param type ext4 (rw,seclabel,nosuid,nodev,noatime,nodelalloc,errors=panic,data=ordered)
/dev/block/tee on /mnt/vendor/tee type ext4 (rw,seclabel,nosuid,nodev,noatime,nodelalloc,errors=panic,data=ordered)
tmpfs on /storage type tmpfs (rw,seclabel,nosuid,nodev,noexec,relatime,mode=755,gid=1000)
adb on /dev/usb-ffs/adb type functionfs (rw,relatime)
/data/media on /mnt/runtime/default/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid,default_normal)
/data/media on /storage/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid,default_normal)
/data/media on /mnt/runtime/read/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=23,derive_id,default_normal)
/data/media on /mnt/runtime/write/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=7,derive_gid,default_normal)
cmcc_jiangsu:/ #
%%%%%
显示单位是 records
1 records = 512 byte
示例查看 mmcblk0 的状况 约等于 15 G
cmcc_jiangsu:/ # cat /sys/class/block/mmcblk0/size
30535680
cmcc_jiangsu:/ #
size = 30535680 / 2 = 15267840 KB = 14910 MB = 14.560546875 GB
%%%%%
查看硬件信息和系统属性
硬件信息查看:
cat /system/build.prop
单独查看系统属性
getprop > /tmp/getprop.txt
%%%%%
cmcc_jiangsu:/ # cat /proc/devices
Character devices:
255 amstream
510 deinterlace
1 mem
511 display2
2 pty
257 dsp
3 ttyp
258 firmware_vdec
4 /dev/vc/0
4 tty
5 /dev/tty
5 /dev/console
5 /dev/ptmx
7 vcs
264 amvideo
10 misc
266 amaudio
13 input
269 vfm
270 ionvideo
271 vad
272 videosync
274 video_composer
276 v4lvideo
29 fb
81 video4linux
89 i2c
90 mtd
108 ppp
116 alsa
128 ptm
136 pts
153 spi
166 ttyACM
180 usb
188 ttyUSB
189 usb_device
212 DVB
216 rfcomm
235 amvideo_poll
236 tunnel_sync
237 ge2d
238 media-configs-dev
239 amremote
494 HevcEnc
240 ttyS
495 amvenc_avc
241 hidraw
496 amsubtitle
242 uio
497 dtb
243 bsg
498 audio_data_debug
244 wifi_power
499 unifykeys
245 watchdog
500 cec
246 display
501 smc
247 amhdmitx
502 vm
248 iio
503 amdolby_vision
249 ptp
504 amvecm
250 pps
505 picdec
251 rtc
506 ppmgr
252 cvbs
507 amvdec_csi
253 amvdac
508 hdmirx
254 gpiochip
509 vdin
Block devices:
1 ramdisk
259 blkext
7 loop
8 sd
9 md
11 sr
31 mtdblock
65 sd
66 sd
67 sd
68 sd
69 sd
70 sd
71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
179 mmc
251 device-mapper
252 zram
253 virtblk
254 mdp
cmcc_jiangsu:/ # ls /dev
HevcEnc fuse ptyq5 tty44 ttyqe
__properties__ ge2d ptyq6 tty45 ttyqf
amaudio gpiochip0 ptyq7 tty46 tun
amaudio_ctl gpiochip1 ptyq8 tty47 tunnel_sync
amaudio_utils graphics ptyq9 tty48 ubi_ctrl
amdolby_vision hw_random ptyqa tty49 uhid
amhdmitx0 hwbinder ptyqb tty5 uinput
amremote i2c-0 ptyqc tty50 uio0
amstream_abuf input ptyqd tty51 unifykeys
amstream_dves_avc ion ptyqe tty52 urandom
amstream_dves_hevc ionvideo ptyqf tty53 usb-ffs
amstream_hevc kmsg random tty54 usb_accessory
amstream_hevc_frame kmsg_debug rfkill tty55 uvm
amstream_hevc_sched loop-control rtc0 tty56 v4lvideo
amstream_mpps mali0 snd tty57 vad
amstream_mpts media socket tty58 vcs
amstream_mpts_sched media.amports stune tty59 vcs1
amstream_rm media.audio tty tty6 vcsa
amstream_sub media.codec_mm tty0 tty60 vcsa1
amstream_sub_read media.decoder tty1 tty61 vdin1
amstream_userdata media.parser tty10 tty62 vfm
amstream_vbuf media.tsync tty11 tty63 vga_arbiter
amstream_vbuf_sched media.vfm tty12 tty7 video10
amstream_vframe media.video tty13 tty8 video11
amsubtitle memcg tty14 tty9 video12
amvdac memory_bandwidth tty15 ttyS0 video13
amvecm mtp_usb tty16 ttyS1 video14
amvenc_avc network_latency tty17 ttyp0 video15
amvideo network_throughput tty18 ttyp1 video16
amvideo_poll null tty19 ttyp2 video17
ashmem picdec tty2 ttyp3 video18
audio_data_debug ppmgr tty20 ttyp4 video19
audiodsp0 ppp tty21 ttyp5 video20
autofs psaux tty22 ttyp6 video21
binder ptmx tty23 ttyp7 video23
bl40 pts tty24 ttyp8 video30
block ptyp0 tty25 ttyp9 video31
bus ptyp1 tty26 ttypa video32
cec ptyp2 tty27 ttypb video33
cg2_bpf ptyp3 tty28 ttypc video34
console ptyp4 tty29 ttypd video35
cpu_dma_latency ptyp5 tty3 ttype video36
cpuctl ptyp6 tty30 ttypf video37
cpuset ptyp7 tty31 ttyq0 video38
cvbs ptyp8 tty32 ttyq1 video_composer.0
device-mapper ptyp9 tty33 ttyq2 video_composer.1
di0 ptypa tty34 ttyq3 videosync
display ptypb tty35 ttyq4 videotunnel
display2 ptypc tty36 ttyq5 vndbinder
dtb ptypd tty37 ttyq6 watchdog
esm ptype tty38 ttyq7 watchdog0
esm_rx ptypf tty39 ttyq8 wifi_power
event-log-tags ptyq0 tty4 ttyq9 xt_qtaguid
fd ptyq1 tty40 ttyqa zero
firmware_vdec ptyq2 tty41 ttyqb
fscklogs ptyq3 tty42 ttyqc
full ptyq4 tty43 ttyqd
cmcc_jiangsu:/ #