1RDSQUASHFS(1) User Commands RDSQUASHFS(1)
2
3
4
6 rdsquashfs - tool to examine or uncompress SquashFS filesystems
7
9 rdsquashfs [OPTIONS] <squashfs-file>
10
12 View or extract the contents of a squashfs image.
13
14 The following options can be used to specify what operation to perform.
15 One of those has to be present:
16
17 --list, -l <path>
18 Produce a directory listing similar to ls -l for a given path in
19 the SquashFS image.
20
21 --cat, -c <path>
22 If the specified path is a regular file in the image, extract it
23 and dump its contents to stdout.
24
25 --xattr, -x <path>
26 If the inode that the specified path resolves to has extended
27 attributes, dump them as key value pairs to stdout.
28
29 --unpack-path, -u <path>
30 Unpack the specified sub directory from the image. To unpack ev‐
31 erything, simply specify /.
32
33 --describe, -d
34 Produce a file listing from the image compatible with the format
35 consumed by gensquashfs.
36
37 --stat, -s <path>
38 Dump all available information about the inode that the path
39 refers to, including SquashFS specific internals such as the on-
40 disk layout of a file or the fast lookup index stored in an ex‐
41 tended directory inode.
42
43 The following options can be used to control the behaviour of the spec‐
44 ified operation:
45
46 --unpack-root, -p <path>
47 If used with --unpack-path, this is where the data is unpacked
48 to. If used with --describe, this is used as a prefix for the
49 input path of regular files.
50
51 --no-dev, -D
52 Skip device special files when parsing the filesystem tree.
53
54 --no-sock, -S
55 Skip socket files when parsing the filesystem tree.
56
57 --no-fifo, -F
58 Skip named pipes when parsing the filesystem tree.
59
60 --no-slink, -L
61 Skip symbolic links when parsing the filesystem tree.
62
63 --no-empty-dir, -E
64 Skip empty directories, including ones that are empty after ap‐
65 plying the above rules.
66
67 The following options are specific to unpacking files from a SquashFS
68 image to disk:
69
70 --no-sparse, -Z
71 Do not create sparse files. Always unpack sparse files by writ‐
72 ing blocks of zeros to disk.
73
74 --set-xattr, -X
75 Set the extended attributes from the SquashFS image.
76
77 --set-times, -T
78 Set the create and modify timestamps of the file to the mtime
79 from the SquashFS image.
80
81 --chmod, -C
82 Change permission flags of unpacked files to those stored in the
83 SquashFS image.
84
85 --chown, -O
86 Change ownership of unpacked files to the UID/GID set in the
87 SquashFS image.
88
89 --quiet, -q
90 Do not print out progress while unpacking.
91
92 Other options:
93
94 --help, -h
95 Print help text and exit.
96
97 --version, -V
98 Print version information and exit.
99
101 gensquashfs(1), sqfs2tar(1), sqfsdiff(1)
102
104 Written by David Oberhollenzer.
105
107 Copyright © 2019 David Oberhollenzer License GPLv3+: GNU GPL version 3
108 or later <https://gnu.org/licenses/gpl.html>.
109 This is free software: you are free to change and redistribute it.
110 There is NO WARRANTY, to the extent permitted by law.
111
112
113
114inspect SquashFS filesystems May 2019 RDSQUASHFS(1)