Non-root part is over here. Next to explore the /data
partition you need root access. First to make it clear, throughout the whole life of a device, a common user interacts only with one partition labeled userdata
. But it's not very uncommon to have 50+ partitions on Android devices (details can be seen in this thread). So here we are talking about the space usage on userdata
partition which is mounted at /data
. One of its sub-directory /data/media/0
is the one we see in file explorers or at /sdcard
or at /storage/emulated/0
. See What is /storage/emulated/0? for details.
Note: Don't confuse the units. 61071360 sectors equal 31268536320 bytes, which equal 31.27 Gigabytes (GB) or 29.12 Gibibyte (GiB).
Total available size of eMMC is 31.27 GB (ignoring e.g. RPMB and provisioned space etc.) and size of /data
filesystem is 25.76 GB (See! I thought it would be 32.00 GiB). It means that 5.5 GB space was occupied when the device was shipped from the factory. It's mainly taken by the system
, vendor
and cache
partitions, and a small part by other partitions. Partition table takes a few KBs but there are possibly a few MBs left free in between partitions, some space is wasted due to encryption, and so on. Following screenshot shows the complete partition table:
(Click image for enlarged view)
Now coming to the used space:
So total used space on device is 15.9 GB (5.5 and 10.4) out of 31.27 GB. Note the difference with the values in screenshot. The difference in total size could be because of rounding-off the sum of /data
and /system
to the nearest power of 2.
5.3 GB out of 9.25 GB is used by the public files in /sdcard
as explained in the start. Rest of the 3.95 GB space is mainly taken by three categories of files. Keeping things simple, following are the major directories which sum up to total app size (1, 2, 3, 4):
It's 3.7 GB, leaving only 250 MB behind, some of which is taken by the /sdcard
of other two user profiles (/data/media/<user_id>
). The rest is used by system logs and configuration files, particularly in /data/system*
and /data/misc*
directories.