← 返回命令列表

Linux command

sqfstar 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Example

sqfstar < [archive.tar] [filesystem.squashfs]

Example

zcat [archive.tar.gz] | sqfstar -comp [gzip|lzo|lz4|xz|zstd] [filesystem.squashfs]

Example

xzcat [archive.tar.xz] | sqfstar [filesystem.squashfs] [file1] [file2]

Example

zstdcat [archive.tar.zst] | sqfstar [filesystem.squashfs] "*.gz"

Example

lz4cat [archive.tar.lz4] | sqfstar [filesystem.squashfs] -regex "[pattern]"

Example

cat [archive.tar] | sqfstar -b [131072] [filesystem.squashfs]

说明

sqfstar creates a squashfs filesystem directly from a tar archive read from stdin. Squashfs is a highly compressed read-only filesystem supporting multiple compression algorithms with block sizes from 4K to 1MB. The tool is useful for converting tar archives to squashfs without intermediate extraction. Compressed tar archives should be decompressed before piping (using zcat, xzcat, etc.). Files can be excluded by name, wildcard pattern, or regex.

参数

-comp _compressor_
Compression algorithm: gzip, lzo, lz4, xz, zstd, lzma
-b _block_size_
Block size in bytes (4K-1MB, default: 128K)
-noI
Do not compress inode table
-noD
Do not compress data blocks
-noF
Do not compress fragment blocks
-no-duplicates
Do not detect duplicate files
-all-root
Make all files owned by root
-force-uid _uid_
Set all file UIDs
-force-gid _gid_
Set all file GIDs
-regex
Treat exclude patterns as POSIX regex
-ignore-zeros
Allow concatenated tar archives
-mkfs-time _time_
Set filesystem creation time
-all-time _time_
Set all inode timestamps
-processors _num_
Number of processors to use
-mem _size_
Set memory limit
-progress
Show progress bar
-info
Print files as they are added

FAQ

What is the sqfstar command used for?

sqfstar creates a squashfs filesystem directly from a tar archive read from stdin. Squashfs is a highly compressed read-only filesystem supporting multiple compression algorithms with block sizes from 4K to 1MB. The tool is useful for converting tar archives to squashfs without intermediate extraction. Compressed tar archives should be decompressed before piping (using zcat, xzcat, etc.). Files can be excluded by name, wildcard pattern, or regex.

How do I run a basic sqfstar example?

Run `sqfstar < [archive.tar] [filesystem.squashfs]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -comp _compressor_ do in sqfstar?

Compression algorithm: gzip, lzo, lz4, xz, zstd, lzma