unable to mount squashfs image (lzma returned

Help
2006-02-22
2013-05-29
  • I just created a squashfs image on a x86 2.6 Linux.

    It mount there just fine.

    Then I copied it to a mipsel 2.4.30 Linux.

    I'm unable to mount the image there:

    # mount -o loop -t squashfs unattended.sqfs unattended
    mount: Mounting /home/samba/unattended.sqfs on /home/samba/unattended failed: Invalid argument

    dmesg gives this output:

    SQUASHFS error: lzma returned unexpected result 0x1
    SQUASHFS error: Unable to read cache block [312fe49a:b76]
    SQUASHFS error: Unable to read inode [312fe49a:b76]
    SQUASHFS error: Root inode create failed

    Any ideas what's wrong?

     
    • I noticed that the image is mounted properly only if I disable the compression completly:

      mksquashfs samba/ smb.sqfs -noI -noD -noF

      However, id rather have compression enabled.

      Any ideas?

       
    • It seems that the mipsel device was using a patched (with lzma) squashfs, so I need to create an image with a lzma-patched mksquashfs.