I download firmware
https://software.cisco.com/download/home/284973404/type/284971397/release/1.1.4.1
I extract with binwalk
sudo apt-get install -y binwalk'
binwalk -eM Sx220-R1.1.4.1.bin
cd _Sx220-R1.1.4.1.bin-0.extracted/_vmlinux_org.bin.extracted/_28A000.extracted/cpio-root
I work with sqfs.img, want mount or extract
See file command
$ file sqfs.img
sqfs.img: data
I try mount
$ sudo mount -o loop sqfs.img sqfs
mount: cpio-root/sqfs: wrong fs type, bad option, bad superblock on
/dev/loop2, missing codepage or helper program, or other error.
See fdisk -l
$ fdisk -l sqfs.img
Disk sqfs.img: 5 MiB, 5193728 bytes, 10144 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
See parted
$ sudo parted sqfs.img
GNU Parted 3.2
Using cpio-root/sqfs.img
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Error: cpio-root/sqfs.img: unrecognised disk
label
Model: (file)
Disk cpio-root/sqfs.img: 5194kB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:
I read
How to extract N150R firmware from .img file
I try dd
$ dd if=sqfs.img of=file.squashfs bs=192 skip=1
27049+1 records in
27049+1 records out
5193536 bytes (5.2 MB, 5.0 MiB) copied, 0.0968263 s, 53.6 MB/s
I try mount again
$ sudo mount file.squashfs sqfs/
mount: _Sx220-R1.1.4.1.bin-0.extracted/_vmlinux_org.bin.extracted/_28A000.extracted/cpio-root/sqfs: wrong fs type, bad option, bad superblock on /dev/loop2, missing codepage or helper program, or other error.
I try sasquatch
$ sasquatch file.squashfs
SquashFS version [40316.27519] / inode count [-143619237] suggests a SquashFS image of a different endianess
Non-standard SquashFS Magic: ▒<W▒
Reading a different endian SQUASHFS filesystem on file.squashfs
Filesystem on file.squashfs is (31901:32619), which is a later filesystem version than I support!
What can try next?
-eM
, to extract everything at once – julian Aug 25 '19 at 06:59