How to Extract PIT File from Samsung Galaxy Devices Using ADB Commands

Android devices use the EXT4 storage structure which defines the allocation of available storage space to system partitions. PIT (Partition Information Table) is an integral element of all Samsung firmware that contains the map of storage allocations for different system partitions. Since Samsung releases different variants of the same device depending on storage capacity, carrier, and region/country, the PIT structure on them differs from each other.

If you happen to be a Samsung user and have ever flashed the official firmware, CF-Root or a recovery .tar file, you must be acquainted with the very light-weight but a handy tool called Odin. All Samsung devices have a Download or Odin mode for installing a firmware, firmware components, kernels, or custom recoveries using Odin.

If you make the required preparations before flashing the firmware with Odin, things go successfully most of the time. However, there are some cases where the procedure ends up with error and you get FAIL! message in Odin. One of the commonest forms of the errors encountered in Odin while flashing stock firmware is the “Invalid Ext4 image and “Get PIT for mapping” issue.

<ID:0/003> Added!!
<ID:0/003> Odin v.3 engine (ID:3)..
<ID:0/003> File analysis..
<ID:0/003> Set PIT file..
<ID:0/003> DO NOT TURN OFF TARGET!!
<ID:0/003> Get PIT for mapping..

How to Extract PIT File from Samsung Galaxy Devices Using ADB Commands on Computer
  1. To use ADB commands, you will have to install Android SDK on your computer. If you don’t know how to setup the Android SDK or ADB, read our tutorial.
  2. Go to Settings> Developer options and enable USB Debugging on your device.
  3. Now launch a command prompt on your computer. You can do so by placing the mouse pointer on an empty space on the desktop and then pressing Shift key+Right mouse-click. Select Open command window here option.
  4. Connect your Samsung device to the PC using the stock USB cable.
  5. In the command window, issue the following command and press the Enter key on the keyboard:
    adb devices
    adb shell
    su
  6. When SU is called, grant root permission on your device and type the following command:
    dd if=/dev/block/mmcblk0 of=/sdcard/out.pit bs=8 count=580 skip=2176
  7. Your device’s PIT should be backed up to the internal storage of the device. Save it on your computer.

Congrats! You can successfully extract the PIT file from your Samsung device. if you got a query or encounter any problem using the tutorial, please leave us a comment. Cheers!

 



No Responses

Write a response