FS#65997 - [binwalk] Binwalk extract doesn't work for squasfs parts even if squashfs-tools is installed

Attached to Project: Community Packages
Opened by Ádám Maróti (05storm26) - Friday, 27 March 2020, 15:39 GMT
Last edited by freswa (frederik) - Friday, 12 May 2023, 20:38 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Levente Polyak (anthraxx)
freswa (frederik)
Filipe Laíns (FFY00)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Trying to extract parts from a firmware which has a squashfs part with the '-e' option fails with the following message:


$ binwalk firmware.bin

DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
10264 0x2818 LZMA compressed data, properties: 0x5D, dictionary size: 8388608 bytes, uncompressed size: 4280280 bytes
147143 0x23EC7 StuffIt Deluxe Segment (data): fV
1211176 0x127B28 GIF image data
1291298 0x13B422 Squashfs filesystem, little endian, version 4.0, compression:lzma, size: 4348690 bytes, 1212 inodes, blocksize: 1048576 bytes, created: 2038-03-30 20:56:32

$ binwalk -e firmware.bin

DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
10264 0x2818 LZMA compressed data, properties: 0x5D, dictionary size: 8388608 bytes, uncompressed size: 4280280 bytes

WARNING: Extractor.execute failed to run external extractor 'unstuff '%e'': [Errno 2] No such file or directory: 'unstuff', 'unstuff '%e'' might not be installed correctly
147143 0x23EC7 StuffIt Deluxe Segment (data): fV
1211176 0x127B28 GIF image data

WARNING: Extractor.execute failed to run external extractor 'sasquatch -p 1 -le -d 'squashfs-root-0' '%e'': [Errno 2] No such file or directory: 'sasquatch', 'sasquatch -p 1 -le -d 'squashfs-root-0' '%e'' might not be installed correctly

WARNING: Extractor.execute failed to run external extractor 'sasquatch -p 1 -be -d 'squashfs-root-0' '%e'': [Errno 2] No such file or directory: 'sasquatch', 'sasquatch -p 1 -be -d 'squashfs-root-0' '%e'' might not be installed correctly
1291298 0x13B422 Squashfs filesystem, little endian, version 4.0, compression:lzma, size: 4348690 bytes, 1212 inodes, blocksize: 1048576 bytes, created: 2038-03-30 20:56:32


Installing aur/sasquatch fixes the issue.
This task depends upon

Closed by  freswa (frederik)
Friday, 12 May 2023, 20:38 GMT
Reason for closing:  Won't fix
Additional comments about closing:  sasquatch upstream doesn't seem to be too responsive these days. Please use the AUR pkg.
Comment by Toolybird (Toolybird) - Monday, 01 May 2023, 23:40 GMT
sasquatch is needed "to extract non-standard SquashFS images". Unless sasquatch is promoted to the main repos, this is a "Won't fix". According to upstream docs [1] "All dependencies are optional run-time dependencies". If you need it, I'd recommend just installing sasquatch from the AUR and move on..

[1] https://github.com/ReFirmLabs/binwalk/blob/master/INSTALL.md#dependencies

Loading...