Search code examples
androidlinuximagepartitiondd

how to make an image of android partition to your pc


I am trying to make a backup (a direct dd image of the partitions of my built-in memory card of my phone to my PC. I am using Linux and my phone is a Nexus 4.


Solution

  • Here another better answer:

    Requirements: adb must be already installed

    1. Download insecure boot.img to your PC from https://www.androidfilehost.com/?fid=9390169635556426389
    2. Reboot your phone into fastboot mode by powering it off and then pressing and holding volume-down and power buttons.
    3. From your Linux PC in the folder where boot.img is located type:

      $ fastboot boot boot.img
      
    4. To copy the image of the mmcblk0 partition type:

      $ adb pull /dev/block/mmcblk0 mmcblk0.img