Thursday, December 12, 2024

Squashfs File System

 Squashfs File System
 
Squashfs is a compressed read-only file system for Linux.

Squashfs compresses files, inodes and directories, and supports block sizes from 4 KiB up to 1 MiB for greater compression. Several compression algorithms are supported. Squashfs is also the name of free software, licensed under the GPL, for accessing Squashfs filesystems.

Squashfs is intended for general read-only file-system use and in constrained block-device memory systems (e.g. embedded systems) where low overhead is needed.

Uses

Squashfs is used by the Live CD versions of Arch Linux, Debian, Fedora, Gentoo Linux, Linux Mint, openSUSE, Salix, Ubuntu, NixOS, Clonezilla, Kali Linux, KDE neon and on embedded distributions such as the OpenWrt and DD-WRT router firmware. It is also used in Chromecast, in Tiny Core Linux for packaging extensions, and for the system partitions of some Android releases (Android Nougat). It is often combined with a union mount filesystem, such as UnionFS, OverlayFS, or aufs, to provide a read-write environment for live Linux distributions. This takes advantage of both Squashfs's high-speed compression abilities and the ability to alter the distribution while running it from a live CD. Distributions such as Debian Live, Mandriva One, Puppy Linux, Salix Live and Slax use this combination. The AppImage project, which aims to create portable linux applications, uses squashfs for creating appimages. The Snappy package manager also uses squashfs for its ".snap file format".

Squashfs is also used by Linux Terminal Server Project and Splashtop. The tools unsquashfs and mksquashfs have been ported to Windows NT – Windows 8.1. 7-Zip also supports Squashfs.

 History

Squashfs was initially maintained as an out-of-tree Linux patch. The initial version 1.0 was released on 23 October 2002.In 2009 Squashfs was merged into Linux mainline as part of Linux 2.6.29.In that process, the backward-compatibility code for older formats was removed. Since then the Squashfs kernel-space code has been maintained in the Linux mainline tree, while the user-space tools remain on the project's GitHub page.

The original version of Squashfs used gzip compression, although Linux kernel 2.6.34 added support for LZMA and LZO compression, Linux kernel 2.6.38 added support for LZMA2 compression (which is used by xz), Linux kernel 3.19 added support for LZ4 compression, and Linux kernel 4.14 added support for Zstandard compression.

    

    


    

    

Squashfs is intended for general read-only file-system use and in constrained block-device memory systems (e.g. embedded systems) where low overhead is needed.
Uses

Squashfs is used by the Live CD versions of Arch Linux, Debian, Fedora, Gentoo Linux, Linux Mint, openSUSE, Salix, Ubuntu, NixOS, Clonezilla, Kali Linux, KDE neon and on embedded distributions such as the OpenWrt[1] and DD-WRT router firmware. It is also used in Chromecast,[2] in Tiny Core Linux for packaging extensions, and for the system partitions of some Android releases (Android Nougat).[3] It is often combined with a union mount filesystem, such as UnionFS, OverlayFS, or aufs, to provide a read-write environment for live Linux distributions. This takes advantage of both Squashfs's high-speed compression abilities and the ability to alter the distribution while running it from a live CD. Distributions such as Debian Live, Mandriva One, Puppy Linux, Salix Live and Slax use this combination. The AppImage project, which aims to create portable linux applications, uses squashfs for creating appimages. The Snappy package manager also uses squashfs for its ".snap file format".

Squashfs is also used by Linux Terminal Server Project and Splashtop. The tools unsquashfs and mksquashfs have been ported to Windows NT[4] – Windows 8.1.[5] 7-Zip also supports Squashfs.[6]
History

Squashfs was initially maintained as an out-of-tree Linux patch. The initial version 1.0 was released on 23 October 2002.[7] In 2009 Squashfs was merged into Linux mainline as part of Linux 2.6.29.[8][9] In that process, the backward-compatibility code for older formats was removed. Since then the Squashfs kernel-space code has been maintained in the Linux mainline tree, while the user-space tools remain on the project's GitHub page.[10]

The original version of Squashfs used gzip compression, although Linux kernel 2.6.34 added support for LZMA[11] and LZO compression,[12] Linux kernel 2.6.38 added support for LZMA2 compression (which is used by xz),[13] Linux kernel 3.19 added support for LZ4 compression,[14] and Linux kernel 4.14 added support for Zstandard compression.[15]

Linux kernel 2.6.35 added support for extended file attributes.

No comments:

Post a Comment