Squashfs
m (Add Snap link.) |
(Updated FormatInfo, added Identification section, added discmaster.textfiles.com search results to Sample files section.) |
||
Line 3: | Line 3: | ||
|subcat=Filesystem | |subcat=Filesystem | ||
|extensions={{ext|sfs}}<ref>[https://github.com/plougher/squashfs-tools/issues/259 What are the commonly accepted file name extension for squashfs? #259 - GitHub]</ref> | |extensions={{ext|sfs}}<ref>[https://github.com/plougher/squashfs-tools/issues/259 What are the commonly accepted file name extension for squashfs? #259 - GitHub]</ref> | ||
+ | |wikidata={{wikidata|Q389314}} | ||
+ | |compression=lossless, mandatory | ||
+ | |magic=68 73 71 | ||
|released=2002 | |released=2002 | ||
}} | }} | ||
Line 8: | Line 11: | ||
See also [[cramfs]]. | See also [[cramfs]]. | ||
+ | |||
+ | == Identification == | ||
+ | SquashFS files begins with hexadecimal {{magic|68 73 71}}, which translates to "hsqs" in ASCII. | ||
== Examples == | == Examples == | ||
Line 25: | Line 31: | ||
== Sample files == | == Sample files == | ||
* {{DexvertSamples|archive/squashFS}} | * {{DexvertSamples|archive/squashFS}} | ||
+ | * [https://discmaster.textfiles.com/search?mode=deep&extension=.sfs&format=squashFS Search results for .sfs extension and is squashFS format - Discmaster.textfiles.com] | ||
== Links == | == Links == | ||
* [[Wikipedia: SquashFS]] | * [[Wikipedia: SquashFS]] | ||
− | * [ | + | * [https://squashfs.sourceforge.net/ Squashfs website] |
* [https://sourceforge.net/projects/squashfs/ SourceForge project page] | * [https://sourceforge.net/projects/squashfs/ SourceForge project page] | ||
* [https://github.com/plougher/squashfs-tools GitHub project page] | * [https://github.com/plougher/squashfs-tools GitHub project page] |
Revision as of 08:49, 16 August 2025
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 AppImage,[3], or Snap[4] as a way portable software distribution on Linux. 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 |
Identification
SquashFS files begins with hexadecimal 68 73 71
, which translates to "hsqs" in ASCII.
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
- 7-Zip
- Squashfuse (Unix-like only)
Sample files
- dexvert samples — archive/squashFS
- Search results for .sfs extension and is squashFS format - Discmaster.textfiles.com