Important Note: /dev/block/mmcblk1 is device specific and might not be the same on other devices.
And if it somehow refers to the bootloader partition, you’ll brick your android device. dd command is dangerous for those who don’t know what they are doing.
No, mmcblk1 is the standard partition table for the external sdcard, as well as mmcblk0 for the internal one. This rule is suitable for all android devices from version 1.6 and up to 8.0
They are on hex, convert to decimal and create a loop device
For instance, mounting the data partition of the android, wich is the bigest one, of my system on /tmp/mnt
#finding the offset of the data partition
printf “%d\n” $(dmesg | grep mmcblk | grep ’ data’ | awk ‘{ print $7}’| sed “s/.$//g” | head -n 1)
4385144832 #creating de mount point
mkdir /tmp/mnt #creating de loop device
losetup -f -o 4385144832 /dev/mmcblk0 #mounting the loop device
mount /dev/loop1 /tmp/mnt
Thats it!
After using …
#unmounting
umount /tmp/mnt #erase the mount point
rm -r /tmp/mnt #and finaly delete loop device
losetup -D