Menu

#340 7z file error using LZMA2 Ultra

open
None
1
2019-11-25
2019-11-17
Navia Ang
No

I create an autobackup app to zip my mysqldump files using
7z a -t7z -m0=lzma2 -mx=9 -aoa -mfb=64 -md=32m -ms=on -mhe -p"pass" "dest" "src" -isdel

Unfortunely, my app got error and zip keep running on Local Drive (D:)
and almost my important files is missing.

Open the zip file got error "Cannot open file xxxx as archive.

file size : 18.657.825.264 bytes

( HexEditor using Ultraedit )
0000000000000000h: 37 7A BC AF 27 1C 00 04 00 00 00 00 00 00 00 00 ; 7z¼¯'...........
0000000000000010h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................
0000000000000020h: FD 6C 03 38 52 5E 66 4A 16 4F 2D C7 85 16 CD 52 ; ýl.8R^fJ.O-Ç….ÍR

How to recover this archive.
Please..... need your advice. Thanks.

Discussion

  • Igor Pavlov

    Igor Pavlov - 2019-11-18

    https://www.7-zip.org/recover.html
    There is no correct End Header at the end of archive

     
  • Navia Ang

    Navia Ang - 2019-11-19

    how to determine values for split files in my case.
    Can i used the same values ?

    We call "Split file..." function for bad.7z and type "32 100G" in "Split to volumes, bytes:" field.
    We call "Split file..." function for raw.7z and type "32 2968 100G" in "Split to volumes, bytes:"

     
  • Igor Pavlov

    Igor Pavlov - 2019-11-19

    you can split to

    1G 200G
    

    And try to recover from small 1G at first.
    It will be faster.

     
    • Navia Ang

      Navia Ang - 2019-11-19

      can you assist me actually i don't really understand
      now i have
      bad.7z : 17,3 GB (18.657.825.264 bytes)
      raw.7z : 18,8 GB (20.265.075.126 bytes)

      bad.7z split to "1G 200G" ?
      raw.7z split to "32 2968 100G" ?

      Thanks.

       
  • Igor Pavlov

    Igor Pavlov - 2019-11-19

    get first 1G or 100 MB from bad,
    and try to recover from that small part with same instructions.
    It will be faster to get some result that can show that recovering is
    possible.

     
  • Navia Ang

    Navia Ang - 2019-11-19

    are bad and raw split with same value "1G 200G" ?

     
  • Navia Ang

    Navia Ang - 2019-11-19

    can i use "32 100G" for raw.7zip ?

     
  • Igor Pavlov

    Igor Pavlov - 2019-11-19

    18g can be slow for your.
    So try to work with smallest file at first (first 1 GB from 18g).
    So you need only first 1 GB for first.
    Then do all things as described in instruction.

    raw.7z can be 1.1 GB.

     
  • Navia Ang

    Navia Ang - 2019-11-19

    I splited
    bad.7z : 17,3 GB (18.657.825.264 bytes), split to "1G 200G"
    raw.7z : 18,8 GB (20.265.075.126 bytes) split to "32 2968 100G"

    after solit done, bad.7z.001 renamed to raw.7z.002/raw.7z.003.
    Extract error : Unexptected end of data

     
  • Igor Pavlov

    Igor Pavlov - 2019-11-20

    Read
    https://www.7-zip.org/recover.html
    and try same actions as described there with same small files archives.
    That way you can practice for whole recovering procedure.
    If it works for small files, then do similar actions for your real data.

    Create readme.txt.bz2, readme.zip, readme.txt.gzip and readme.txt.xz archives from readme.txt.
    ...
    
     Create a.7z with LZMA2 method that contains all files:
    
      readme.txt.bz2
      readme.txt.gz
      readme.zip
      readme.txt
      readme.txt.xz
    
      ...
    
    Corrupt archive
    Now we currupt a.7z archive. We want to split archive into two parts: 
    
     
  • Navia Ang

    Navia Ang - 2019-11-25

    after i created a.7z with LZMA2
    and tried to recover bad.7z ( 1GB) its error
    Cannot Open the files as archive
    Headers Error
    There is some data after the end of the payload data

     
  • Igor Pavlov

    Igor Pavlov - 2019-11-25

    Read
    https://www.7-zip.org/recover.html
    and try same actions as described there with same small files archives (less than 1 MB).

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.