Squashfs

From Just Solve the File Format Problem
Revision as of 22:18, 6 August 2025 by Anonymoususer852 (Talk | contribs)

Jump to: navigation, search
File Format
Name Squashfs
Ontology
Extension(s) .sfs[1]
Released 2002

Squashfs is a compressed read-only filesystem for Linux. Typically used as a "live image" for booting Linux off a removable storage (e.g. USB, CD/DVD), minus components like the bootloader, kernel and initramfs.[2] It is also used in modern AppImages, as a way of distributing portable software on Linux,[3] or Snap[4] Squashfs can also be used to store other data, such as disk images.[5] Under Windows, Squashfs contents can be opened/extracted via 7-Zip.[6]

See also cramfs.

Contents

Examples

Create a Squashfs (file system) image from current/present directory and output it into its parent directory:

 $ mksquashfs . ../example.squashfs -b 1048576 -comp xz -Xdict-size 100%

Open a Squashfs image (as root) from present directory and have its contents visible in /mnt:

 # mount example.squashfs /mnt

Open a Squashfs image (as user) from present directory and have its contents visible in /mnt/temp:

 $ squashfuse example.squashfs /mnt/temp

Software

Sample files

Links

References

  1. What are the commonly accepted file name extension for squashfs? #259 - GitHub
  2. EROFS For Live Media - Fedora Project
  3. History of AppImage - Wikipedia
  4. Snap - support section - Wikipedia
  5. Squashfs As a Forensic Container - foo.be
  6. python2.7 How to handle squashfs in Windows - StackOverflow
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox