Android Tutorials - Herong's Tutorial Examples - v3.05, by Herong Yang
"mount" - Display Mounted File Systems
This section provides a tutorial example on how to use the 'mount' command on the 'adb shell' interface to display all file systems with their types and mount options.
The "df -H" command only displays mounted file systems as shown in the last tutorial. To list all file systems, mounted and not mounted, you can use the "mount" command on the "adb shell" interface. It displays all file systems configured on storage devices with their types and mount options.
Here is an example on my Motorola phone, which runs on the Android 12 system with a total storage of 128GB. I am not sure why it needs so many file systems.
herong$ adb shell getprop ro.build.version.release 12 herong$ adb shell mount /dev/block/dm-8 on / type ext4 (ro,seclabel,relatime) tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,mode=755) devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600,...) proc on /proc type proc (rw,relatime,gid=3009,hidepid=2) 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,...) /dev/block/mmcblk0p19 on /metadata type ext4 (rw,seclabel,nosuid,...) /dev/block/dm-9 on /system_ext type ext4 (ro,seclabel,relatime) /dev/block/dm-10 on /vendor type ext4 (ro,seclabel,relatime) /dev/block/dm-11 on /product type ext4 (ro,seclabel,relatime) tmpfs on /apex type tmpfs (rw,seclabel,nosuid,nodev,noexec,...) tmpfs on /linkerconfig type tmpfs (rw,seclabel,nosuid,nodev,...) none on /dev/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio) none on /sys/fs/cgroup type cgroup2 (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,...) none on /dev/memcg type cgroup (rw,nosuid,nodev,noexec,relatime,...) none on /dev/stune type cgroup (rw,nosuid,nodev,noexec,relatime,...) tracefs on /sys/kernel/tracing type tracefs (rw,seclabel,relatime) none on /config type configfs (rw,nosuid,nodev,noexec,relatime) binder on /dev/binderfs type binder (rw,relatime,max=1048576,...) none on /sys/fs/fuse/connections type fusectl (rw,relatime) bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime) pstore on /sys/fs/pstore type pstore (rw,seclabel,nosuid,nodev,...) /dev/block/mmcblk0p21 on /mnt/vendor/protect_f type ext4 (rw,...) /dev/block/mmcblk0p22 on /mnt/vendor/protect_s type ext4 (rw,...) tmpfs on /storage type tmpfs (rw,seclabel,nosuid,nodev,noexec,...) adb on /dev/usb-ffs/adb type functionfs (rw,relatime) /dev/block/dm-12 on /data type f2fs (rw,lazytime,seclabel,nosuid,...) tmpfs on /linkerconfig type tmpfs (rw,seclabel,nosuid,nodev,...) /dev/block/dm-12 on /data/user/0 type f2fs (rw,lazytime,seclabel,...) tmpfs on /data_mirror type tmpfs (rw,seclabel,nosuid,nodev,noexec,...) /dev/block/dm-12 on /data_mirror/data_ce/null type f2fs (rw,...) /dev/block/dm-12 on /data_mirror/data_ce/null/0 type f2fs (rw,...) /dev/block/dm-12 on /data_mirror/data_de/null type f2fs (rw,...) /dev/block/loop4 on /apex/com.android.vndk.v30@1 type ext4 (ro,...) /dev/block/loop4 on /apex/com.android.vndk.v30 type ext4 (ro,...) /dev/block/loop5 on /apex/com.android.runtime@1 type ext4 (ro,...) /dev/block/dm-13 on /apex/com.android.mediaprovider@331011070 ...) /dev/block/dm-13 on /apex/com.android.mediaprovider type ext4 (ro,...) ... (total of 59 lines)
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 mount rootfs on / type rootfs (ro,seclabel,size=1627932k,nr_inodes=406983) tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,size=...) devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600) proc on /proc type proc (rw,relatime,gid=3009,hidepid=2) sysfs on /sys type sysfs (rw,seclabel,relatime) selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime) /dev/block/dm-0 on /system type ext4 (ro,seclabel,relatime) debugfs on /sys/kernel/debug type debugfs (rw,seclabel,relatime) none on /acct type cgroup (rw,relatime,cpuacct) none on /dev/stune type cgroup (rw,relatime,schedtune) tmpfs on /mnt type tmpfs (rw,seclabel,relatime,size=1698148k,...) none on /config type configfs (rw,relatime) tmpfs on /mnt/secure type tmpfs (rw,seclabel,relatime,size=...) none on /dev/cpuctl type cgroup (rw,relatime,cpu) none on /dev/cpuset type cgroup (rw,relatime,cpuset,noprefix,...) pstore on /sys/fs/pstore type pstore (rw,seclabel,relatime) /dev/block/sda16 on /firmware type vfat (ro,context=u:object_r:...) /dev/block/sdd7 on /dsp type ext4 (ro,seclabel,nosuid,nodev,...) /dev/block/sda5 on /persist type ext4 (rw,seclabel,nosuid,nodev,...) ... (total of 37 lines)
Here is what I got on an Android 5.1.1 emulator.
herong> adb shell mount rootfs / rootfs ro,seclabel,relatime 0 0 tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0 devpts /dev/pts devpts rw,seclabel,relatime,mode=600 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 debugfs /sys/kernel/debug debugfs rw,relatime 0 0 none /acct cgroup rw,relatime,cpuacct 0 0 none /sys/fs/cgroup tmpfs rw,seclabel,relatime,mode=750,gid=1000 0 0 tmpfs /mnt/asec tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0 tmpfs /mnt/obb tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0 none /dev/cpuctl cgroup rw,relatime,cpu 0 0 /dev/block/mtdblock0 /system ext4 ro,seclabel,relatime,data=ordered ... /dev/block/mtdblock1 /data ext4 rw,seclabel,nosuid,nodev,noatime,nom... /dev/block/mtdblock2 /cache ext4 rw,seclabel,nosuid,nodev,noatime,da... /dev/block/vold/179:0 /mnt/media_rw/sdcard vfat rw,dirsync,nosuid,no... /dev/fuse /storage/sdcard fuse rw,nosuid,nodev,noexec,relatime,user_...
Here is what I got on an Android 4.0.3 emulator.
herong> adb shell mount rootfs / rootfs ro 0 0 tmpfs /dev tmpfs rw,nosuid,mode=755 0 0 devpts /dev/pts devpts rw,mode=600 0 0 proc /proc proc rw 0 0 sysfs /sys sysfs rw 0 0 none /acct cgroup rw,cpuacct 0 0 tmpfs /mnt/asec tmpfs rw,mode=755,gid=1000 0 0 tmpfs /mnt/obb tmpfs rw,mode=755,gid=1000 0 0 none /dev/cpuctl cgroup rw,cpu 0 0 /dev/block/mtdblock0 /system yaffs2 ro 0 0 /dev/block/mtdblock1 /data yaffs2 rw,nosuid,nodev 0 0 /dev/block/mtdblock2 /cache yaffs2 rw,nosuid,nodev 0 0 /dev/block/vold/179:0 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noe... /dev/block/vold/179:0 /mnt/secure/asec vfat rw,dirsync,nosuid,node... tmpfs /mnt/sdcard/.android_secure tmpfs ro,size=0k,mode=000 0 0
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