LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-14-2018, 03:07 PM   #1
Refractor
Member
 
Registered: Oct 2008
Location: Rousse, Bulgaria
Distribution: Debian
Posts: 91

Rep: Reputation: 25
Question 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!
 
Old 07-16-2018, 12:57 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,008

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
Squashfs had some version issues as I recall as it relates to kernel and to it's own versions.

Take a few of the suspect folders out of the squash file maybe and re-test.
 
Old 07-21-2018, 03:59 PM   #3
Refractor
Member
 
Registered: Oct 2008
Location: Rousse, Bulgaria
Distribution: Debian
Posts: 91

Original Poster
Rep: Reputation: 25
Thank you,
I've managed to bypass the issue by forcing GZIP compression. Got a larger filesystem, but it'll do until I figure out what's wrong with XZ.

Thanks again for pointing me in the right correction.

Kind regards,
Iskren
 
Old 07-23-2018, 01:31 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,008

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
Thanks for the update and solution.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace a mounted squashfs image file funtoos Linux - Kernel 8 02-18-2015 06:32 PM
p7zip extracts files without directories beliya Linux - Software 2 10-06-2013 10:23 AM
Creating a .deb file that extracts files to pre-determined directories Jeff91 Linux - Software 1 11-17-2010 12:02 PM
Command to copy files/folders but skip bad/corrupt files?? leemoreau Linux - Newbie 2 04-02-2007 02:27 PM
ftp video files - cron job extracts video info & posts to web page? muskiediver Linux - General 6 11-23-2006 08:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration