Menu

#8 Unsquash: reverse of mksquashfs on i386&other Little endian

open
nobody
None
5
2006-06-06
2006-06-06
cris77
No

Attached is Unsquash, a Python script that does the
inverse of mksquashfs.
It handles V1 and V2.

Limitations:
o Little endian only - This is the patch to the
previous script! Work on i386 machines
o No uid/gid handling

Discussion

  • cris77

    cris77 - 2006-06-06

    Script for little endian machines (i386)

     
  • Thomas Capricelli

    Logged In: YES
    user_id=109474

    fails here. Maybe because i'm on amd64 ? the big-endian one
    doesn't work neither.

    % python unsquash_lit.py hda3 mnt/hda3
    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

     
  • Nobody/Anonymous

    -1'

     
  • Nobody/Anonymous

    1

     

Log in to post a comment.