Home Forum Blog Private Support Courses
Our courses are now on YouTube! Start Watching
Hovatek Forum OPERATING SYSTEMS Android [Tutorial] How to unpack contents of super.img which are in EROFS format

[Tutorial] How to unpack contents of super.img which are in EROFS format

[Tutorial] How to unpack contents of super.img which are in EROFS format

hovatek
hovatek
hovatek
Administrator
51,002
11-03-2024, 04:21 AM
#1



EROFS stands for Enhanced Read-Only File System. It is a read-only filesystem introduced in Linux 4.19. It supports compression and deduplication, and is optimized for read performance.

This guide will explain how to unpack super.img to get system, vendor, product and odm etc. We'll also show how to extract these if they're in EROFS format e.g system

Requirements


How to unpack images in EROFS format


  1. Extract the binaries and super.img into the same folder.  Your folder should contain lpunpack, erofsUnpackRust, simg2img and super.img
  2. Run this command to unsparse the super.img

    Code:

    ./simg2img super.img super.raw

  3. Unpack super.raw using the command below

    Code:

    ./lpunpack super.raw

  4. Extract system (mine is system_a.img) using the command below

    Code:

    ./erofsUnpackRust_x64linux system_a.img
This post was last modified: 12-02-2026, 04:28 PM by hovatek.

Learn MediaTek, Unisoc / Spreadtrum (SPD) and Qualcomm Software Repairs @ https://www.hovatek.com/training
Note!
We have a reply schedule for Forum Support. Please try Private Support if you can't wait.
Users browsing this thread:
 2 Guest(s)
Users browsing this thread:
 2 Guest(s)
WhTlYt