0

Why is mmcblk0 at /dev/block/mmcblk0 in Android and /dev/mmcblk0 on desktop Linux distributions?

Other block devices (listed using lsblkcommand) are also under /dev/.

Why is it under /dev/block/ on Android and not in the same directory as on desktop Linux?

  • 1
    It's Android's choice, how init populates /dev from /sys. You can create any block device wherever you want: mkdir /data/neverMind9; mknod /data/neverMind9/test_mmcblk0 b 179 0. Use the major and minor number of whichever device you want. The apparent reason is there are usually a large number of block devices on Android phone (even 50+). So they didn't want to clutter /dev directory. – Irfan Latif Apr 15 at 0:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.