RDSQUASHFS(1)
π RDSQUASHFS(1) π
okay bestie, gather round, because today we're talking about rdsquashfs β it's a User Commands girlie and she lives in section 1 of your manual. she's the tool to examine or uncompress SquashFS filesystems, and honestly? she ate. π
β¨ SYNOPSIS β¨
rdsquashfs [OPTIONS] <squashfs-file>
πΈ DESCRIPTION πΈ
View or extract the contents of a squashfs image. that's the whole vibe, no cap. π
so here's the tea: you gotta pick one of the operation options below β like, at least one, it's not optional bestie, one of those has to be present or she's just gonna sit there. π
π the "what are we even doing" options
--list,-l<path>β gives you a directory listing, basically anls -lmoment, for whatever path you point at inside the SquashFS image. π--cat,-c<path>β if that path is a regular file in the image, she extracts it and dumps the contents straight to stdout. likecatbut for squashfs. iconic.--xattr,-x<path>β if the inode that your path resolves to has extended attributes, she dumps them to stdout as key value pairs. β¨--unpack-path,-u<path>β unpacks that sub directory out of the image. want everything? just hit her with/and she'll unpack the whole thing. π«Ά--describe,-dβ spits out a file listing from the image that's compatible with the formatgensquashfsconsumes. very "handoff to my other bestie" energy.--stat,-s<path>β dumps all the available info about the inode that the path refers to. and I mean all β including SquashFS specific internals like the on-disk layout of a file, or the fast lookup index stored in an extended directory inode. she's nosy and we love that for her. π
π OPTIONS π
π controlling how the operation behaves
--unpack-root,-p<path>β used with--unpack-path, this is where the data gets unpacked to. used with--describe, it becomes a prefix for the input path of regular files. multipurpose queen.--no-dev,-Dβ skips device special files while parsing the filesystem tree.--no-sock,-Sβ skips socket files while parsing the filesystem tree.--no-fifo,-Fβ skips named pipes while parsing the filesystem tree.--no-slink,-Lβ skips symbolic links while parsing the filesystem tree.--no-empty-dir,-Eβ skips empty directories. and yes, that includes the ones that only became empty after you applied all the rules above. sneaky little things. π¦
π§ options that are specifically for unpacking files to disk
--no-sparse,-Zβ do not create sparse files. always unpacks sparse files by writing blocks of zeros to disk. so she's out here writing zeros like it's her job (it is).--set-xattr,-Xβ sets the extended attributes from the SquashFS image.--set-times,-Tβ sets the create and modify timestamps of the file to the mtime from the SquashFS image.--chmod,-Cβ changes the permission flags of unpacked files to whatever's stored in the SquashFS image.--chown,-Oβ changes ownership of unpacked files to the UID/GID set in the SquashFS image.--quiet,-qβ do not print out progress while unpacking. for when you want her to just work in silence. π€«
β other options, the lil extras
--help,-hβ prints the help text and exits. classic.--version,-Vβ prints version information and exits.
π SEE ALSO π
gensquashfs(1), sqfs2tar(1), sqfsdiff(1) β go read these too, they're all in the friend group. π«Ά
βοΈ AUTHOR βοΈ
Written by David Oberhollenzer. π
π COPYRIGHT π
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. bestie she's free but she's not making any promises, okay? π
and that's the whole page!! mwah π β this one's from the inspect SquashFS filesystems era, dated May 2019, and it signs off as RDSQUASHFS(1). periodt. π β¨
π¦ where this page comes from
- alpine 3.24: squashfs-tools-ng-doc 1.3.2-r1 Β· GPL-3.0-or-later
- debian bookworm: squashfs-tools-ng 1.2.0-1 Β· GPL-3.0-or-later
- debian trixie: squashfs-tools-ng 1.3.2-1 Β· GPL-3.0-or-later
- epel 10: squashfs-tools-ng 1.3.2-1.el10_0 Β· LGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT
- epel 9: squashfs-tools-ng 1.3.1-1.el9 Β· LGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT
- fedora 43: squashfs-tools-ng 1.3.2-3.fc43 Β· LGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT
- fedora 44: squashfs-tools-ng 1.3.2-4.fc44 Β· LGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT
- nixos 26.05: squashfs-tools-ng 1.3.2
- nixpkgs unstable: squashfs-tools-ng 1.3.2
- ubuntu jammy: squashfs-tools-ng 1.1.3-2 Β· GPL-3.0-or-later
- ubuntu noble: squashfs-tools-ng 1.2.0-1 Β· GPL-3.0-or-later
- ubuntu questing: squashfs-tools-ng 1.3.2-1
- ubuntu resolute: squashfs-tools-ng 1.3.2-1build1 Β· GPL-3.0-or-later
- ubuntu stonking: squashfs-tools-ng 1.3.2-1build1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms