lun文件路径
参考:
如何在adb shell下mount Android下的分区
http://blog.chinaunix.net/uid-22731254-id-3222708.html
使Recovery支持USB大容量存储
http://disene-blog.com.nu/Android/10.html连接手机,终端输入:
sudo adb kill-server && sudo adb start-server
adb shell
一, df 命令查看
df
Filesystem Size Used Free Blksize
/dev 490M 32K 490M 4096
/mnt/asec 490M 0K 490M 4096
/mnt/obb 490M 0K 490M 4096
/system 503M 208M 295M 4096
/cache 125M 4M 121M 4096
/data 1007M 138M 869M 4096
/storage/sdcard0 1G 114M 1G 4096
/mnt/secure/asec: Permission denied
/storage/sdcard0/SD_CARD 6G 2G 4G 4096
二,查看/proc下的partitions
cat /proc/partitions
1
major minor #blocks name
179 0 3866624 mmcblk0
179 1 10240 mmcblk0p1
179 2 8192 mmcblk0p2
179 3 524288 mmcblk0p3
179 4 131072 mmcblk0p4
179 5 2048 mmcblk0p5
179 6 286720 mmcblk0p6
179 7 1048576 mmcblk0p7
179 8 2048 mmcblk0p8
179 9 1712128 mmcblk0p9
179 32 1024 mmcblk0boot1
179 16 1024 mmcblk0boot0
179 48 7745536 mmcblk1
179 49 7174272 mmcblk1p
三,查看 lun的位置
find /sys -name "lun*"
/sys/devices/platform/tegra-udc.0/gadget/lun0
/sys/devices/platform/tegra-udc.0/gadget/lun1
/sys/devices/virtual/android_usb/android0/f_mass_storage/lun0
/sys/devices/virtual/android_usb/android0/f_mass_storage/lun1
四,查看手机开启USB存储时,lun文件上的内容 ,联系上文分析
cat /sys/devices/platform/tegra-udc.0/gadget/lun0/file
/dev/block/vold/179:9
#手机内存
cat /sys/devices/platform/tegra-udc.0/gadget/lun1/file
/dev/block/vold/179:48
#外置内存卡
/////
QCOM部分机型可以 ls -l /dev/block/platform/msm_sdcc.1/by-name
MTK部分机型可以 ls -l 手机系统根目录的emmc@android(system) / emmc@usrdata(data)等等还可以
cat /proc/emmc
cat proc/partitions
cat proc/mounts