Squashfs
Squashfs is read-only filesystem that features optional compression[3] 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.[4] It is also used in:
- Embedded devices like network routers[5][6][7], or in Android powered devices.[8]
- Modern AppImage,[9], or Snap[10] as a way portable software distribution on Linux.
- Storage of other data, such as disk images.[11]
Under Windows, SquashFS contents can be opened/extracted via 7-Zip.[12]
See also cramfs.
Contents |
Identification
SquashFS files created on little-endian machines begins with hexadecimal 68 73 71 73
, which translates to "hsqs" in ASCII. SquashFS files created on big-endian machines with hexadecimal 73 71 73 68
, which translates to "sqsh" 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
Links
References
- ↑ What are the commonly accepted file name extension for squashfs? #259 - GitHub
- ↑ (Squashfs-announce) Squashfs1.2 released - 2003-03-13 05:30:45 - SourceForge mailman
- ↑ [feature request]: mksquashfs: Add --no-compression flag to disable all compression #206 - squashfs-tools - GitHub
- ↑ EROFS For Live Media - Fedora Project
- ↑ The OpenWrt Flash Layout - Technical Reference - openwrt.org
- ↑ problems extracting squashfs-image #301 - binwalk - GitHub
- ↑ Reverse engineering my router's firmware with binwalk - embeddedbits.org
- ↑ SquashFS explanation for Android system - Android Enthusiasts - Stack Exchange
- ↑ History of AppImage - Wikipedia
- ↑ Snap - support section - Wikipedia
- ↑ Squashfs As a Forensic Container - foo.be
- ↑ python2.7 How to handle squashfs in Windows - StackOverflow