Squashfs
From Just Solve the File Format Problem
(Difference between revisions)
(Flesh out on description and add references.) |
(Provide examples, add reference link to .sfs extension, add link to Squashfuse under Software section.) |
||
Line 2: | Line 2: | ||
|formattype=electronic | |formattype=electronic | ||
|subcat=Filesystem | |subcat=Filesystem | ||
− | |extensions={{ext|sfs}} | + | |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> |
|released=2002 | |released=2002 | ||
}} | }} | ||
Line 8: | Line 8: | ||
See also [[cramfs]]. | See also [[cramfs]]. | ||
+ | |||
+ | == 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 <code>/mnt</code>: | ||
+ | # mount example.squashfs /mnt | ||
+ | |||
+ | Open a Squashfs image (as user) from present directory and have its contents visible in <code>/mnt/temp</code>: | ||
+ | $ squashfuse example.squashfs /mnt/temp | ||
== Software == | == Software == | ||
* [[7-Zip]] | * [[7-Zip]] | ||
+ | * [https://github.com/vasi/squashfuse Squashfuse] (Unix-like only) | ||
== Sample files == | == Sample files == |
Revision as of 20:10, 31 July 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 can also be used to store other data, such as disk images.[3] Under Windows, Squashfs contents can be opened/extracted via 7-Zip.[4]
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
- 7-Zip
- Squashfuse (Unix-like only)