Difference between reading from /dev/block/mmcblk0 and /dev/block/mmcblk0p1
39,814
The mmc sub-system in the Linux kernel registers device nodes of the format mmcblkXpY
.
- Each mmc device registered within the Linux kernel receives it own mmc device number X.
- Each partition on a particular device receives it own number Y
Normal file I/O can be performed after mounting a device node pointing to a partition.
Also note that unless a valid partition table is present on the /dev/mmcblkX
device, there will be no subsequent /dev/mmcblkXpY
nodes on the system.
Comments
-
spitfire88 almost 2 years
Reading from /dev/block/mmcblk0 returned old data while reading from /dev/block/mmcblk0p1 gave latest data. My question is does linux maintain a back up if data is written to /dev/block/mmcblk0? This is because i was able to read old contents of the SD card by reading through that node.