ubi_reader icon indicating copy to clipboard operation
ubi_reader copied to clipboard

Node size smaller than expected error

Open thriftguy1 opened this issue 1 year ago • 0 comments

Is it possible to correct this Node size error? This 5 volume ubi cant seem to be extracted correctly with this tool I only need the rfs extracted and need to be able to recompile it. If I use the extract images cmd it breaks the 5 volumes down to ubifs just fine and I can pack them back to a ubi from there and load back to the device and it works and boots fine, but if I break the rfs down with extract files cmd and then pack it back up to ubifs then ubi and load it the device will not boot so something in the extract files process is not working.

sudo -E env "PATH=$PATH" ubireader_extract_files -w system.ubi Extracting files to: ubifs-root/1542002826/rootfs index Error: LEB: 693 at 190972160, Node size smaller than expected. index Error: LEB: 693 at 190988640, Node size smaller than expected. extract_files Error: 'ino' Extracting files to: ubifs-root/1542002826/usrfs index Error: LEB: 17 at 8331288, Node size smaller than expected. index Error: LEB: 17 at 8343576, Node size smaller than expected. index Error: LEB: 17 at 8331448, Node size smaller than expected. index Error: LEB: 17 at 8376744, Node size smaller than expected. index Error: LEB: 17 at 8356400, Node size smaller than expected. index Error: LEB: 17 at 8332184, Node size smaller than expected. index Error: LEB: 17 at 8331656, Node size smaller than expected. index Error: LEB: 17 at 8331816, Node size smaller than expected. index Error: LEB: 17 at 8360360, Node size smaller than expected. extract_files Error: 'ino' Extracting files to: ubifs-root/1542002826/cachefs extract_files Error: No inodes found Extracting files to: ubifs-root/1542002826/systemrw Extracting files to: ubifs-root/1542002826/persist index Error: LEB: 10 at 204218392, Node size smaller than expected. extract_files Error: No inodes found

and when I break it down to ubifs then try to extract files I get

sudo -E env "PATH=$PATH" ubireader_extract_files -w rootfs.ubifs [sudo] password for xxxx: Extracting files to: ubifs-root index Error: LEB: 693 at 176111872, Node size smaller than expected. index Error: LEB: 693 at 176128352, Node size smaller than expected. extract_files Error: 'ino'

my python version is 3.10.14 on ubuntu os Ill attach my file (known good file) in case needed nvm its to big lol link below https://www.mediafire.com/file/r0brpagqwbok0pl/system.ubi/file

Thanks for any help!

thriftguy1 avatar May 31 '24 19:05 thriftguy1