From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:Ext2, ext3 and ext4" |
|---|
| claim | "The ext superblock lies at byte 1024 and its s_magic 0xEF53 is at superblock offset 0x38, so bytes 53 EF appear at file offset 0x438. Only 2 bytes, and the same value for ext2, ext3 and ext4: tell them apart with the feature flags (HAS_JOURNAL marks ext3 and later, EXTENTS and friends mark ext4)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Ext2, ext3 and ext4" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "53 EF" |
|---|
| offset | "0x438" |
|---|
| meaning | "ext2/ext3/ext4 superblock s_magic (little-endian 0xEF53); superblock at 1024, s_magic at +0x38" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct ext4_super_block with offset markers /*00*/ /*10*/ /*20*/ /*30*/; s_magic follows s_wtime, s_mnt_count, s_max_mnt_count" |
|---|
| repo | "torvalds/linux" |
|---|
| commit | "c03c1a14507dfaf8b856c2608f9ac216021fc222" |
|---|
| path | "fs/ext4/ext4.h" |
|---|
| lines | "1369-1388" |
|---|
|
| type | "source" |
|---|
| detail | "EXT4_SUPER_MAGIC 0xEF53" |
|---|
| repo | "torvalds/linux" |
|---|
| commit | "c03c1a14507dfaf8b856c2608f9ac216021fc222" |
|---|
| path | "include/uapi/linux/magic.h" |
|---|
| lines | "28" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Superblock magic 0xEF53" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T06:23:32.256Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T12:51:44.021Z" |
|---|
| result | "confirmed" |
|---|
| method | "Fetched fs/ext4/ext4.h at c03c1a14: struct ext4_super_block offset markers /*30*/ s_wtime(4) s_mnt_count(2) s_max_mnt_count(2) then s_magic __le16, so +0x34... recount: s_wtime at 0x30, s_mnt_count 0x34, s_max_mnt_count 0x36, s_magic 0x38; superblock at 1024 gives 0x438, little-endian 53 EF." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T08:21:22.332Z" |
|---|
| summary | "Read ext4.h 1369-1392: s_wtime at 0x30, s_mnt_count 0x34, s_max_mnt_count 0x36, s_magic at 0x38 (so 0x438 in the volume) confirmed. The magic is only 2 bytes and identical for ext2, ext3 and ext4…" |
|---|
| changed | |
|---|
|
|
|---|