How to Nand Erase and Re-Partition Samsung via Odin

In this guide, we will show you the steps to NAND Erase and Re-Partition any Samsung device via Odin. All of you might have come across the term Nandroid Backup. In simpler terms, it is a backup of all the data on your device. Well it even backup the recent app screen, call logs, and your last stop point in any game. But if we understand this in more technical terms, then a Nandroid backup creates a backup of all the partitions on your device.

These include the likes of boot partition (where we flash stock boot.img or boot the twrp via fastboot boot twrp.img), the recovery partition (where we flash the TWRP via fastboot flash recovery twrp.img), the data partition (that stores all the data on your device), the EFS Partition (that stores your all-important IMEI number), the system partition (that holds the Android OS, in system.img format), the cache partition (for storing temporary data) among others. [Recovery and Cache Partition no longer exists in A/B Partition devices].

So if anything happens to your device, you could easily restore this backup and your device shall be up and running in no time. With that said, in some instances, you would have to wipe off all the partitions on your device. In other words, you will have to NAND Erase your device. When you do so, all the data in the aforementioned partitions will be wiped off. To re-setup your device, you will have to flash the stock firmware onto your device. But the regular flashing of firmware wouldn’t do any good.

You will have to flash the Partition Information Table or PIT file alongside the firmware.  For the unaware, a PIT file holds all the important information relating to the partitions present on your device, how much block size does each partition needs to have, among others. So you will have to load this file to Odin so that the Tool is able to read and identify all the partition files accordingly. Once that is done, it will then be able to flash the BL, CP, AP, CSC files without any issue. So without further ado, let’s check out the detailed instructions to NAND Erase and Re-Partition your Samsung device via Odin.



How to Nand Erase and Re-Partition Samsung via Odin

The below instructions are listed in separate sections for ease of understanding. Make sure to follow in the exact same sequence as mentioned below. Furthermore, the process will wipe off all the data from your device. So take a backup beforehand. Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device and data by performing the below steps.

STEP 1: Download Samsung Stock Firmware via Frija

nand-erase-odin-download-samsung-firmware-frija

First and foremost, you will have to download your device’s stock firmware. For that, there are a variety of options including the SamMobile website and a couple of other tools. Here at Droidwin, we use the Frija Tool. So if you also echo this thought, then please refer to our detailed guide on How to Download Samsung Stock Firmware/ROM via Frija Tool.

STEP 2: Get Samsung PIT File

samsung-pit-file-re-partition-odin

Now that you have downloaded the firmware file, you will need to get a hold of the PIT file. For that, you may refer to our comprehensive guide on How to Extract PIT Files from Samsung Firmware. Shorter Instructions: Extract the CSC file from the stock firmware and you shall get the PIT file. When that is done, move to the next step to NAND Erase and Re-Partition your Samsung device via Odin.

STEP 3: Boot Samsung Device to Recovery

You will now have to boot your device to the Recovery Mode. You may use your device-specific hardware key combinations or the adb reboot recovery command for that. All of this is mentioned below, follow along.

Samsung Devices Key Combinations
Having Home ButtonHome + Volume Up + Power buttons
Having Bixby KeyBixby + Volume Up + Power keys
No Bixby keyVolume Up + Volume Down +Power buttons. Then press the Volume Down key when you see the Samsung Logo
ADB Commands
  1. Download and install Android SDK Platform Tools on your PC.
  2. Enable USB Debugging on your device.
  3. Connect the device to the PC via USB cable.
  4. Launch CMD inside platform-tools folder.
  5. Execute the adb reboot recovery command.

Now that your device is booted to Recovery Mode proceed to the next step of this guide to NAND Erase and Re-Partition your Samsung device via Odin.

STEP 4: Wipe Data on Samsung via Stock Recovery

samsung-stock-recovery-wipe-data-factory-reset

  1. From the Recovery, use the Volume keys to highlight the Wipe Data/Factory Reset option
  2. Then hit the Power key to confirm it.
  3. Once done, select the Reboot system now option to boot the device to the OS.

STEP 5: Boot Samsung Device to Download Mode

You will now have to boot your device to Download Mode so that Odin is able to identify it and is able to carry out the NAND Erase and Re-Partition process on your Samsung device. So refer to our guide on How to Boot any Samsung Device to Download Mode. If you don’t wish to check out that detailed guide, then here are the shorter instructions in a tabular form.

download-mode-samsung-nand-erase-re-partition

Samsung Devices Key Combinations
Having Home ButtonHome + Volume Down + Power buttons
Having Bixby KeyBixby + Volume Down + Power keys
No Bixby keyVolume Down + Volume Up + Power buttons
ADB Commands
  1. Download and install Android SDK Platform Tools on your PC.
  2. Enable USB Debugging on your device.
  3. Connect the device to the PC via USB cable.
  4. Launch CMD inside platform-tools folder.
  5. Execute the adb reboot bootloader command.

Once your device is booted to Download Mode, connect it to the PC via USB cable and proceed to the below instructions to perform a NAND Erase and Re-partition on your Samsung device via Odin.



STEP 6: Perform NAND Erase and Re-Partition Samsung via Odin

To begin with, make sure that you have extracted the Samsung firmware files. Doing so shall give you the BL, CP, AP, CSC, and Home CSC files. So you will now have to load these files (except Home CSC) to Odin. Along the same lines, you should have also extracted the CSC file and got the PIT file (as explained in STEP 2). Likewise, your device shall be booted to Download Mode and connected to PC via USB as well. If that’s all well and good, then proceed with the below instructions

  1. Download the Odin Tool on your PC. Then extract it to any convenient location on your PC and double-click the Odin3_v3.14.4.exe file to launch it.
    launch odin
  2. Now load the BL, AP, CP, CSC (the normal CSC, not the Home CSC) files to their respective slots in Odin.
  3. Once that is done, go to the Options tab in Odin and enable Nand Erase and Re-Partition.
    enable nand erase re partition odin
  4. After this, go to the PIT section (click OK on the warning screen). Then click on the PIT button and load the PIT file.
    load-samsung-pit-file-re-partition-odin
  5. Finally, click Start and wait for the process to complete. Once done, you shall be greeted with the Pass message.
    flash-success-odin-pass-message

That’s it. With this, we conclude the guide on how to NAND Erase and Re-Partition any Samsung device via Odin. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.


Share: