.SFS

SFS File

Squashfs Compressed Filesystem Image
Ask a question
QUICK ANSWER

An SFS file is a Squashfs compressed filesystem image used in Linux Live distributions, Android system partitions, and embedded device firmware. On Linux, mount it with "sudo mount -t squashfs file.sfs /mnt -o loop" or extract with unsquashfs. On Windows, open it with 7-Zip 21.03 or later.

Developer: Phillip Lougher (original); maintained as part of Linux kernel since 2009 Category: Compressed Files Open standard MIME: application/octet-stream
OPENS ON Windows macOS Linux
Related: .RAR · .ZIP · .Z01 · .7Z

On this page

19k+ extensions indexed
Last reviewed Jul 9, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the SFS file format?

An .sfs file is a Squashfs read-only compressed filesystem image, most commonly found as the live root filesystem inside Linux Live CD and USB distributions. The Linux kernel can mount .sfs images directly with mount -t squashfs, and the unsquashfs command (from the squashfs-tools package) extracts all files without mounting.

Squashfs packs an entire directory tree into a single compressed binary image. A 96-byte superblock at the start identifies the format - magic bytes hsqs (little-endian) or sqsh (big-endian) - and records the compression algorithm, block size, and table offsets for inodes, directories, and fragment data. Files are stored in independently compressed blocks, enabling random access without decompressing the entire image.

Multiple compression algorithms are supported and selected at creation time: gzip (original), lzma, lzo, xz, lz4, and zstd. Modern mksquashfs defaults to xz for best ratio; embedded firmware images often use lzo for faster decompression on low-power hardware.

Linux Live ISOs (Ubuntu, Fedora, Kali Linux) embed the root filesystem as filesystem.squashfs or filesystem.sfs inside an .iso container. Android uses Squashfs for /system partitions. OpenWrt routers and IP cameras store firmware in Squashfs. The .squashfs extension is also widely used for the same format.

  • Squashfs was created by Phillip Lougher in 2002 and merged into the Linux kernel in version 2.6.29 (March 2009).
  • EROFS (merged in Linux 5.4, 2019) is the modern successor for Android and embedded deployments.
  • mksquashfs creates images; unsquashfs extracts them; both are in the squashfs-tools package.

Security & safety

RISK: LOW

Squashfs images are filesystem containers - the same security considerations apply as mounting any disk image: the extracted files could contain malicious executables or symlink attacks. When mounting with 'mount -o loop', use a read-only mount (already default for Squashfs). Extract with unsquashfs and inspect before running any binaries. Firmware images from unofficial sources could be backdoored.

Format details

in a nutshell
FULL NAMESquashfs Compressed Filesystem Imageaka SquashFS image, squashed filesystem
DEVELOPERPhillip Lougher (original); maintained as part of Linux kernel since 2009since 2002 (Squashfs 1.0 by Phillip Lougher)
MIME TYPEapplication/octet-stream
TYPERead-only compressed Linux filesystem image (binary)
STANDARDOpen · royalty-free
This extension is also used by…
  • Puppy Linux SFS module - Puppy Linux uses .sfs specifically for modular add-on packages layered on top of the base system.
  • StarCraft/Blizzard archive (unofficial) - Some Blizzard game data files were historically named with .sfs but are a completely different proprietary format.
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
68737173
ASCII
hsqs
Little-endian hosts write 68 73 71 73 ('hsqs'); big-endian hosts write 73 71 73 68 ('sqsh'). Both are valid Squashfs 4.0 signatures. The superblock is always 96 bytes.

Programs that open SFS files

Windows1 app
7-Zip Open-source Right-click → Open archive (or 7z x file.sfs). 7-Zip supports Squashfs since version 21.03 (2021).
macOS1 app
squashfs-tools (Homebrew) Open-source brew install squashfs, then unsquashfs file.sfs to extract contents.
Linux3 apps
mount (built-in Linux kernel) Open-source sudo mount -t squashfs file.sfs /mnt/point -o loop - mounts the filesystem; browse contents normally.
unsquashfs (squashfs-tools) Open-source unsquashfs file.sfs - extracts all contents to ./squashfs-root/ directory.
7-Zip (p7zip on Linux) Open-source 7z l file.sfs to list; 7z x file.sfs to extract. Supports Squashfs since 7-Zip 21.03+.

Technical details

deep spec
File signature68 73 71 73 ("hsqs", little-endian) at offset 0; big-endian variant: 73 71 73 68 ("sqsh")
Superblock size96 bytes - fixed; contains magic, version, inode count, block size, compression type, and table offsets
Filesystem typeRead-only compressed - no write support once created; remount as overlay for live systems
Compression optionsgzip, lzma, lzo, xz/lzma2, lz4, zstd - selectable at mksquashfs creation time
Default compressionxz in modern mksquashfs; gzip in older versions; lzo common in embedded firmware
Block size4 KB - 1 MB (configurable at creation; default 128 KB)
On-disk versionSquashfs 4.0 (2009); version field at superblock byte offset 28
IntegrityNo per-file checksum; CRC on inode and directory metadata blocks in v4.0
Typical image size4-64 MB (embedded firmware); 400-900 MB (Linux Live ISO root filesystem)
Maximum files~4 billion (32-bit inode number limit)
Byte orderLittle-endian (host-native); big-endian variant exists for older embedded systems
Creation toolmksquashfs (squashfs-tools package)
Extraction toolunsquashfs (squashfs-tools); 7-Zip on Windows
Common use casesLinux Live ISO root filesystem, Android /system partitions, OpenWrt router and IP camera firmware
Released2002 (Squashfs 1.0 by Phillip Lougher)
Latest versionSquashfs 4.0 (2009, merged into Linux kernel 2.6.29)
Open standardYes · royalty-free
Specificationdocs.kernel.org

SFS conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with SFS files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about SFS files.

Frequently asked questions

How do I open a .sfs file on Linux?
Mount it: 'sudo mount -t squashfs file.sfs /mnt -o loop'. Or extract: 'unsquashfs file.sfs' (requires squashfs-tools package: apt install squashfs-tools).
How do I open a .sfs file on Windows?
Use 7-Zip (version 21.03 or later) - right-click → Open archive.
What is inside a .sfs file?
A complete read-only Linux filesystem - files, directories, symlinks, permissions, all compressed. Commonly the root filesystem of a Linux Live distribution.
How do I create a .sfs file?
mksquashfs /path/to/directory output.sfs [-comp xz] - part of the squashfs-tools package on any Linux distro.
Why can't I write to a mounted .sfs filesystem?
Squashfs is a read-only format by design. To modify content, extract with unsquashfs, make changes, then repack with mksquashfs.
What is the difference between .sfs and .squashfs?
Same format, different extension conventions. Ubuntu uses filesystem.squashfs; Puppy Linux and some distributions use .sfs. The binary format is identical.

References

1Linux Kernel Documentation - Squashfsdocs.kernel.org
2Squashfs Binary Format specificationdr-emann.github.io

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.BINCD/DVD Disc Image (BIN/CUE)
7.NOMEDIAAndroid No-Media Marker File
8.RPMSGRestricted Permission Message
9.MDMarkdown Document
10.TMPTemporary File

Related extensions

.RARRAR Archive (Roshal ARchive)
.ZIPZIP Archive
.Z01Split ZIP Archive - First Part
.7Z7-Zip Archive
.001Split / multi-volume archive - first part (.001)
.ZIRenamed / Truncated ZIP Archive

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z