Android Tutorials - Herong's Tutorial Examples - v3.05, by Herong Yang
"df -H" - Display Mounted File Systems
This section provides a tutorial example on how to use the 'df -H' command on the 'adb shell' interface to display mounted file systems and their space usages.
To list file systems on your Android device, you can use the "df -H" command on the "adb shell" interface. It displays mounted file systems and their space usages.
Here is an example on my Motorola phone, which runs on the Android 12 system with a total storage of 128GB.
herong$ adb shell getprop ro.build.version.release 12 herong$ adb shell df -H Filesystem Size Used Avail Use% Mounted on /dev/block/dm-8 1.0G 1.0G 0 100% / tmpfs 2.9G 2.8M 2.9G 1% /dev tmpfs 2.9G 0 2.9G 0% /mnt /dev/block/dm-9 884M 881M 0 100% /system_ext /dev/block/dm-10 591M 590M 0 100% /vendor /dev/block/dm-11 3.8G 3.8G 0 100% /product tmpfs 2.9G 29k 2.9G 1% /apex /dev/block/mmcblk0p14 3.9M 98k 3.5M 3% /mnt/product/persist /dev/block/dm-12 110G 8.7G 101G 8% /data /dev/block/loop5 8.6M 8.6M 0 100% /apex/com.android.runtime@1 /dev/block/loop10 37M 37M 0 100% /apex/com.android.i18n@1 /dev/block/dm-15 770k 741k 16k 98% /apex/com.android.ipsec@... /dev/block/dm-18 5.9M 5.9M 0 100% /apex/com.android.media@... /dev/fuse 110G 8.7G 101G 8% /storage/emulated ...
It seems that the same partition of 110GB is represented as 2 file systems: /dev/block/dm-12 and /dev/fuse, which are mounted as 2 directories: /data and /storage/emulated.
As a comparison, here is what I got on my Samsung phone running Android 8.
herong$ adb shell getprop ro.build.version.release 8.0.0 herong$ adb shell df -H Filesystem Size Used Avail Use% Mounted on rootfs 1.6G 11M 1.6G 1% / tmpfs 1.7G 766k 1.7G 1% /dev /dev/block/dm-0 4.6G 4.1G 584M 88% /system tmpfs 1.7G 0 1.7G 0% /mnt tmpfs 1.7G 0 1.7G 0% /mnt/secure /dev/block/sda16 100M 49M 51M 50% /firmware /dev/block/sdd7 12M 4.6M 7.6M 38% /dsp /dev/block/sda5 29M 188k 29M 1% /persist /dev/block/sda20 609M 5.7M 604M 1% /cache /dev/block/sda6 16M 922k 16M 6% /efs /dev/block/sda15 100M 49M 51M 50% /firmware /dev/block/sda16 115M 77M 39M 67% /firmware-modem /dev/block/sda21 42M 12k 42M 1% /carrier tmpfs 1.7G 0 1.7G 0% /storage /dev/block/dm-1 57G 36G 21G 63% /data /data/knox/secure_fs/enc_user 57G 36G 21G 63% /data/enc_user /data/knox/secure_fs/enc_media 57G 36G 21G 63% /data/knox/secure_fs/enc_media /data/knox/secure_fs/enc_media 57G 36G 21G 63% /mnt/shell/enc_emulated /data/media 57G 36G 21G 64% /storage/emulated
Here is what I got on an Android 5.1.1 emulator.
herong> adb shell df Filesystem Size Used Free Blksize /dev 242.9M 24.0K 242.8M 4096 /sys/fs/cgroup 242.9M 12.0K 242.9M 4096 /mnt/asec 242.9M 0.0K 242.9M 4096 /mnt/obb 242.9M 0.0K 242.9M 4096 /system 541.3M 363.9M 177.5M 4096 /data 541.3M 158.0M 383.3M 4096 /cache 65.0M 4.3M 60.7M 4096 /mnt/media_rw/sdcard 31.5M 3.2M 28.3M 512 /storage/sdcard 31.5M 3.2M 28.3M 512
Here is what I got on an Android 4.0.3 emulator.
herong> adb shell df Filesystem Size Used Free Blksize /dev 252M 32K 252M 4096 /mnt/asec 252M 0K 252M 4096 /mnt/obb 252M 0K 252M 4096 /system 161M 161M 0K 4096 /data 124M 13M 110M 4096 /cache 64M 1M 62M 4096 /mnt/sdcard 126M 1016K 125M 512 /mnt/secure/asec 126M 1016K 125M 512
Table of Contents
Installing JDK 1.8 on Windows System
Installation of Android SDK R24 and Emulator
Installing Apache Ant 1.9 on Windows System
Developing First Android Application - HelloAndroid
Android Application Package (APK) Files
Android Debug Bridge (adb) Tool
File System Hierarchy and Common Directories
►"df -H" - Display Mounted File Systems
"mount" - Display Mounted File Systems
"find -L . -name" - Search Files on Android System
AboutAndroid - Application to Retrieve System Information
android.app.Activity Class and Activity Lifecycle
View Objects and Layout Resource Files
Using "adb logcat" Command for Debugging
Build Process and Package File Content
Samsung Galaxy Tab 3 Mini Tablet
USB Debugging Applications on Samsung Tablet
USB Debugging Applications on LG-V905R Tablet