Skip to content

Instantly share code, notes, and snippets.

@craftslab
Last active April 18, 2023 02:51
Show Gist options
  • Save craftslab/b692bc140ebd5bb389628332e2487562 to your computer and use it in GitHub Desktop.
Save craftslab/b692bc140ebd5bb389628332e2487562 to your computer and use it in GitHub Desktop.
fs explorer

Fs Explorer

Build

dd if=/dev/zero of=ext4.img bs=4k count=2048
mkfs.ext4 ext4.img
tune2fs -c0 -i0 ext4.img
mkdir ext4
sudo mount ext4.img ext4
sudo umount ext4

Sparse/Unsparse

Ubuntu

sudo apt update
sudo apt install -y simg2img img2simg

img2simg ext4.img ext4.img.sparse
simg2img ext4.img.sparse ext4.img.unsparse

Windows

simg2img.exe

simg2img.exe super.img super.img.raw

Unpack

lpunpack.py

lpunpack.py -p system_a super.img.raw system_a

Explorer

https://github.com/craftslab/fsexplorer

Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment