User:Finxx/Squashfs
Jump to navigation
Jump to search
| Filesystems |
|---|
| Virtual Filesystems |
| Disk Filesystems |
| CD/DVD Filesystems |
| Network Filesystems |
| Flash Filesystems |
Squashfs is a read-only compressed file system originally implemented for Linux. It is commonly used in the Live CD versions of various Linux distributions, and in embedded devices for storage.
Basic Details
Compression
Squashfs supports various compression algorithms:
- zlib
- lzo
- lzma 1 (deprecated)
- lzma 2
- lz4
- zstd
A file system can only use one compression algorithm throughout the partition.
On-disk overview
On-disk, Squashfs consists of up to nine parts:
| Superblock | Basic information about the partition |
| Compression Options | Various flags regarding the compression algorithm |
| Data Blocks and Fragments | The blocks that make up file data |
| Inode Table | A table that holds every inode in the partition |
| Directory Table | A table that holds file listings and file names for directories |
| Fragment Table | Description of fragments within the data blocks and fragments section |
| Export Table | Mapping of inodes to disk locations for NFS |
| UID/GID Table | List of user IDs and group IDs indexed by the inodes |
| Xattr Table | Extended attribute table for inodes |