Because the LZMA file format does not provide any information on how large the compressed data is, binwalk grabs everything from offset 0x20810 to the end of the firmware file and saves it to a file called 20810.7z. This means that the 20810.7z file also contains a copy the SquashFS file system which comes after the LZMA compressed data. Repacking of the squashfs file. 4. How to access my saved files on a persistent LiveUSB? 0 `squashfs-tools` creates incorrectly compressed file. 1. mksquashfs not Container is at: ./centos.simg # singularity exec -w centos.simg ls ERROR : Unable to open squashfs image in read-write mode: Read-only file system ABORT : Retval = 255 # singularity shell -w centos.simg ERROR : Unable to open squashfs image in read-write mode: Read-only file system ABORT : Retval = 255 # singularity shell centos.simg In majority of cases following instruction in step 1 and 2 should be enough to open files with SQUASHFS extension. Before attempting the next steps, test all the programs listed below. Before attempting the next steps, test all the programs listed below. 4. 14. I tend to use squashfs for creating large archives, seeing they're mountable on Linux, and you can open them in 7-zip on Windows. Every once in a…. Afterwards, open the folder bin inside the Image Builder folder, then open the target folder, then the folder you find in it (it has a device-type-specific name), and then inside a folder called generic and you should reach the flashable images. Choose the right image (factory or sysupgrade) and install it. To explain: I use packer and a kickstart file to install CentOS 7. I use a packer provision script to compile some binary stuff that I need on the image. I followed the instructions from here to create a squashed filesystem image after everything I need is in the OS: mkdir -p /mnt/squashfs /squashfs mount -o bind / /mnt/squashfs mksquashfs /mnt The source you link to tells you what you need to do: The tool does not extract a squashed file system on already exsisting directory unless the -f option is specified. So this should work. sudo unsquashfs -f -d /media/location1 /media/location2/file.squashfs. Share. Basically, you override the init process/script with your own via a command line to the kernel. Let's say you create the script into the root filesystem at /sbin/init-overlay, then you need to add the init=/sbin/init-overlay to the kernel boot parameters of your bootloader's config. by vgaetera. Expanding root partition and filesystem This article relies on the following: * Accessing web interface / command-line interface * Managing configs / packages / services / logs Introduction * This instruction expands OpenWrt root partition and filesystem on x86 target. * Follow the automated section for quick setup. jHks.