SquashFS corrupt when mounted but using unsquashfs extracts all files without issues
Hello everyone!
I have a particular system running kernel 3.18.67 (exact version is required for a specific vendor kernel module) and I need to make it work with SquashFS.
I also have the root file system in two images - an ext4 and a squashfs one.
When I boot the ext4 image everything works like a charm. Booting the SquashFS however shows a lot of corrupt blocks and inability to run /sbin/init or /bin/sh.
When attaching both filesystems to the machine and booting from ext4, I can mount the squashfs image and can browse some files and access some folders with success - others are returning an I/O error.
However, from the same machine, I can run unsquashfs on the squashfs filesystem and all files and folders are accessible and work as intended.
At this point I've tried changing the block size of the squashfs filesystem which results in less accessible file/folders the bigger the block size gets. So I tried going with the minimum block size (which screwed up compression rates) and still produced a minimal amount of inaccessible files/folders.
I read that BCJ filters can cause issues with SQFS but I cannot understand the issue this causes well enough to make sure whether this is the cause or not.
Any hints of what I can do next are greatly appreciated!
Thank you!
|