SQFS2TAR(1) | User Commands | SQFS2TAR(1) |
sqfs2tar - turn a SquashFS image into a tar archive
sqfs2tar [OPTIONS...] <sqfsfile>
Quickly and painlessly turn a SquashFS filesystem image into a tar archive that can then be examined and processed by any tool that can work on tar archives. The resulting archive is written to stdout.
Possible options:
Run sqfs2tar --help to get a list of all available compressors.
The special value . can be used since many tar archivers themselves pack the attributes of the root directory that way and naturally support this.
If this option is not used, all meta data from the root inode IS LOST!
The output format is pre-POSIX ustar using GNU extensions where necessary. Experimentation determined that this is most widely supported by activeley used tar implementations (besides GNU tar), even more than the newer POSIX format with PAX extensions.
If any file or directory is encountered that cannot be converted, it is skipped and a warning is written to stderr. Unless the --no-skip option is set, which aborts processing if a file cannot be converted.
This mainly affects socket files which are supported by SquashFS but not by POSIX tar, GNU tar or PAX.
Since the tar format contains a sequence of files with absolute names, it has no direct concept of a tree or an unnamed root node. Consequently, meta data from the SquashFS root inode is lost, unless the --root-becomes option is used.
The output archive can optionally be compressed. Default settings are used for the supported compressors and there is currently no intention to expose finer grained control over them. To set custom compressor flags, create an uncompressed archive and pipe it into a dedicated compressor process.
Turn a SquashFS image into a tar archive:
Written by David Oberhollenzer.
Copyright © 2019 David Oberhollenzer License GPLv3+: GNU
GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO
WARRANTY, to the extent permitted by law.
June 2019 | sqfs2tar |