Last active
August 29, 2015 14:21
-
-
Save bmaupin/a9d29f5fdc831d1d0164 to your computer and use it in GitHub Desktop.
Get the start offset of an ext4 partition in a raw image file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LANG=C grep -aobP -m1 '\x53\xEF' system.raw.img.tmp | head -1 | awk '{print $1 - 1080}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment