Create a Full System Partition Backup on Android with ADB and Fastboot

10 min read Step‑by‑step guide to back up your Android device’s system partition with ADB and fastboot without rooting, ensuring you can restore a clean state later. October 02, 2026 08:00 How to Create a Full System Partition Backup on Android Using ADB and Fastboot (No Root)

When you experiment with custom ROMs, beta builds, or risky tweaks, a full system partition backup is the safety net that lets you roll back to a known‑good state. Unlike a regular app‑data backup, this captures the entire /system image – the core OS files, pre‑installed apps, and system‑level settings.

Before you start

  • Charge your device to at least 70 % – a failed fastboot write can brick the phone.
  • Back up personal data (photos, messages, etc.) separately. This tutorial does not touch user data partitions (/data).
  • Enable USB debugging: Settings > About phone > tap Build number seven times, then Settings > System > Developer options > USB debugging.
  • Install the latest Android platform‑tools on your PC (contains adb and fastboot).
  • Make sure you have a USB‑C or micro‑USB cable that supports data transfer, not just charging.

Why fastboot can back up the system partition without root

Fastboot operates at the bootloader level, which has direct access to flash partitions. As long as the bootloader is unlocked, fastboot can read and write any partition, including /system. Unlocking the bootloader does not require root, but it does wipe user data on most devices – that’s why we stress a separate personal backup first.

Step‑by‑step procedure

1. Verify ADB connection

  1. Connect the phone to the PC via USB.
  2. Open a terminal (Windows Command Prompt, macOS Terminal, or Linux shell) and run:
    adb devices
    You should see a line like 0123456789ABCDEF device. If it shows unauthorized, unlock the phone and tap “Allow USB debugging”.
  3. If no device appears, reinstall the USB drivers (Windows) or ensure adb is in your PATH.

2. Unlock the bootloader (if not already unlocked)

Most manufacturers require an explicit unlock command. The process varies:

  • Pixel / Nexus: adb reboot bootloader then fastboot flashing unlock. Confirm on the device with the volume keys.
  • Samsung: Samsung devices typically do not expose fastboot; you’ll need to flash a custom recovery (e.g., TWRP) to obtain fastboot‑like access. This tutorial assumes a fastboot‑compatible device.
  • Other OEMs (OnePlus, Xiaomi, Motorola): The command is usually fastboot oem unlock or fastboot flashing unlock. Check the manufacturer’s developer site for the exact phrase.

Warning: Unlocking erases /data on most phones. Ensure your personal backup is complete before proceeding.

3. Reboot into fastboot mode

From the ADB shell, issue:

adb reboot bootloader

The screen will show a fastboot prompt (e.g., “Fastboot mode”). If your device uses a different key combo (Power + Volume‑Down), you can also power off and hold those keys manually.

4. Identify the system partition name

Run the following command while in fastboot mode:

fastboot getvar all

Look for a line like system: /dev/block/bootdevice/by-name/system. The exact name (usually system) is what you’ll use in the next step.

5. Pull the system image to your PC

Use the fastboot flash command with the --download flag (available in newer fastboot versions) or the fastboot oem variant. The most universal method is to use fastboot pull:

fastboot pull /dev/block/bootdevice/by-name/system system.img

If your fastboot version does not support pull, you can use the following workaround:

  1. Boot the phone into a temporary recovery that supports adb sideload (e.g., TWRP). This does not require flashing the recovery permanently.
  2. From the recovery, run adb shell dd if=/dev/block/bootdevice/by-name/system of=/sdcard/system.img.
  3. Then pull the file: adb pull /sdcard/system.img ./system.img.

Both methods create a system.img file (typically 300‑600 MB) on your computer.

6. Verify the backup integrity

After the transfer finishes, run a quick checksum comparison:

sha256sum system.img

Note the hash value. Later, after a restore, you can recompute the hash to ensure the image wasn’t corrupted.

7. (Optional) Compress the image for storage

System images compress well with xz or zip:

xz -9 system.img   # results in system.img.xz

Store the compressed file on an external drive or cloud storage. Keep the original hash in a text file for future checks.

Restoring the system partition

Should you need to revert to the saved state, the process is the reverse of the backup. Only attempt a restore if the device still boots into fastboot mode.

1. Re‑enter fastboot mode

adb reboot bootloader

2. Push the image back to the device

If you kept the image compressed, decompress first:

xz -d system.img.xz

Then flash:

fastboot flash system system.img

Some devices require the fastboot flash command to be prefixed with fastboot --disable-verity --disable-verification flash system system.img to bypass Android Verified Boot (AVB). Use this only if the device refuses to flash otherwise.

3. Re‑lock the bootloader (optional but recommended)

fastboot flashing lock

Locking restores the device’s security posture. After locking, the device will reboot and may perform a factory‑reset – be prepared.

4. Reboot the phone

fastboot reboot

The phone should boot into the exact system state captured in system.img. If you see boot loops, you likely flashed an image that doesn’t match the device’s firmware version. In that case, repeat the backup on a matching firmware.

Troubleshooting common issues

  • Fastboot not recognized: Ensure the fastboot binary is in your system PATH. On Windows, install the Google USB Driver via the SDK Manager.
  • Device says "locked" when trying to flash: The bootloader is still locked. Run the unlock command again, confirm on the device, and repeat.
  • Command "fastboot pull" fails: Older fastboot versions lack pull. Use the TWRP sideload workaround described in step 5.
  • Checksum mismatch after restore: The flash may have been incomplete. Re‑run the flash command and verify the device reports OKAY for each packet.
  • Device won’t enter fastboot mode: Some OEMs hide fastboot behind a special key combo (e.g., Power + Volume‑Up). Consult the device’s developer forum for the exact sequence.

Safety notes and best practices

  • Never flash a system image from a different model or Android version. Partition layouts differ, and flashing the wrong image can brick the device.
  • Keep at least two backups: the most recent one and a “golden” image taken from a clean factory‑flashed state.
  • Store backups on a read‑only medium (e.g., external SSD) to protect against accidental modification.
  • If you plan to flash custom ROMs regularly, consider using a custom recovery (TWRP) for Nandroid backups – they capture all partitions in one click.

With a verified system.img in hand, you now have a reliable rollback point for any system‑level experiment. The workflow uses only ADB and fastboot, tools that are part of the official Android SDK, and it works on the majority of fastboot‑compatible devices without requiring root access.

User Comments (0)

Add Comment
We'll never share your email with anyone else.