Unsquash a version 1.0 squashfs

Help
Anonymous
2007-01-17
2013-05-29
  • Anonymous - 2007-01-17

    I need to unsquash a version 1.0 little-endian squashfs file system. The latest official unsquash only supports version 2.X and 3.0. There is a python script in the patches folder that is supposed to work on little endian version 1.0 filesystems, but it gives me the following error.

    Processing <__main__.Sqfs_block instance at 0x2afc1062ab48>
    len with data=  (0)
    Bad Squashfs. Does not support little endian
    Traceback (most recent call last):
      File "unsquash_lit.py", line 786, in ?
        main()
      File "unsquash_lit.py", line 775, in main
        sqfs.load_meta()
      File "unsquash_lit.py", line 654, in load_meta
        d = self.uncompress(frag_block)
      File "unsquash_lit.py", line 555, in uncompress
        block.getall(header)
      File "unsquash_lit.py", line 88, in getall
        val = self.get(data,r)
      File "unsquash_lit.py", line 71, in get
        num = ord(data[byte])
    IndexError: string index out of range

    Are there any tools that can unsquash a little endian version 1.0 squashfs? When will the official unsquash work for version 1.0 filesystems?
    My only hope is to build a patched kernel with mount support and run it under a VM. Not a fun prospect. Any help would be appreciated.

     
    • Phillip Lougher

      Phillip Lougher - 2007-04-30

      The CVS version of Unsquashfs now supports 1.0 filesystems.  This will be in a new release soon, until then please use the version in CVS.

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks