From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:SquashFS" |
|---|
| claim | "squashfs_fs.h defines four magic words: 0x73717368 (hsqs, little-endian image), 0x68737173 (sqsh, byte-swapped), and for streamed images 0x53515348 and 0x48535153; the header gives version 4.0 (major 4, minor 0). The compression ids are 1 ZLIB, 2 LZMA, 3 LZO, 4 XZ, 5 LZ4, 6 ZSTD." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:SquashFS" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "68 73 71 73" |
|---|
| offset | "0" |
|---|
| meaning | "SQUASHFS_MAGIC 0x73717368 (hsqs); swapped 0x68737173 (sqsh); streamed 0x53515348 and 0x48535153" |
|---|
| alternatives | | "73 71 73 68" |
| "48 53 51 53" |
| "53 51 53 48" |
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "magic defines and compression id defines" |
|---|
| repo | "https://github.com/plougher/squashfs-tools" |
|---|
| commit | "db038ef265ed00bb17aaf695a72f9b0c3489eb20" |
|---|
| path | "squashfs-tools/squashfs_fs.h" |
|---|
| lines | "28-33, 287-292" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Streamed superblock magics" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T02:05:20.970Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:25:13.110Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read squashfs_fs.h lines 28-33 and 287-292 at the commit: SQUASHFS_MAGIC 0x73717368, MAGIC_SWAP 0x68737173, STREAMED 0x53515348, STREAMED_SWAPPED 0x48535153; MAJOR 4, MINOR 0; compression ids 1 ZLIB, 2 LZMA, 3 LZO, 4 XZ, 5 LZ4, 6 ZSTD. As little-endian words they appear on disk as 'hsqs', 'sqsh', 'HSQS', 'SQSH', matching the bytes and alternatives." |
|---|
|
|
|---|