What units are the values in /proc/partitions and /sys/dev/block/<block>/size?
3
votes
1
answer
3818
views
I have a sample emmc block info from an android device
>From
/proc/partitions
major minor #blocks name
179 1 5120 mmcblk0p1
Using my little intelligence I am assuming /proc/partitions
uses blocks since it says partition 1 has 5120 blocks
>From /sys/dev/block/179:0/mmcblk0p1/size
10240
It is seeming the partition values in /sys/…/size are double the values of /proc/partitions. Hence why are they different hence what the units in both of them?
Asked by Bret Joseph
(491 rep)
Apr 17, 2019, 08:32 AM
Last activity: Apr 17, 2019, 02:24 PM
Last activity: Apr 17, 2019, 02:24 PM