[Noobs Guide] Partition Searching | Backup Partition | Delete Partition


Note: It requires Root Access.

Before start the basic you have to Know.

cd ====> For Select path example "cd /dev/block/"

ls ====> For to see the files and folder inside of path

Example:

adb shell
su
cd /dev/block/ [path]
ls [To see all the files]


If you get permission denied Notification set permission By below given command.

chmod 777 /dev/block [to mount a folder]
chmod 777 /dev/block/mmcblk0p1 [to mount a particular file]

For export partition to sdcard :

dd if=/dev/block/mmcblk0p1 of=/sdcard/modem.img

For Write partition :

dd if=/sdcard/modem.img of=/dev/block/mmcblk0p1

For Delete partition :

dd if=/dev/block/zero of=/dev/block/mmcblk0p1

With out Setting permission After knowing partition path:

For Write partition :

adb shell su -c dd if=/sdcard/modem.img of=/dev/block/mmcblk0p1

For Delete partition :

adb shell su -c dd if=/dev/block/zero of=/dev/block/mmcblk0p1

For Export partition to sdcard :

adb shell su -c dd if=/dev/block/mmcblk0p1 of=/sdcard/modem.img

To Copy files to desktop

adb pull /sdcard/modem.img \Users\james\Desktop

Some example cpu partition paths by name

ls -al /dev/block/platform/msm_sdcc.1/by-name/ [Qualcomm path]

ls -al /dev/block/pci/pci0000:00/0000:00:01.0/by-name/ [Asus Intel Atom]

ls -al /dev/block/platform/15570000.ufs/by-name/ [Samsung Exynos]

If you check above givn partition paths they are not the same for al cpu's it will be different as per the cpu's
so you need to search from here "/dev/block/" to find this folder "/by-name/" to get partition by name.