Menu

getting "Data error : Wrong password?" while extracting a 7zip file

Help
Amine
2019-01-17
2024-01-07
  • Amine

    Amine - 2019-01-17

    HELLO
    I used 7z to compress with encryption some files but when extracting them some was extracted fine, but for the others i'm getting in the log "Data error : Wrong password?".
    I'm very upset because those were personal files, memories stored years along

     
  • Igor Pavlov

    Igor Pavlov - 2019-01-18

    If you update archive, it's possible, that some files were added with another password. So archive can have two different passwords.
    You can create the list of files:

    7z l c:\a.7z -slt -pYourPassword > c:\a.txt 
    7z t c:\a.7z -bb3 -pYourPassword > c:\test.txt 
    

    then find lines in a.txt whereBlock value changes from 0 to 1, from 1 to 2, and so on.
    And check results in test.txt for first file of each block.

     
    ❤️
    1

    Last edit: Igor Pavlov 2019-01-18
  • Igor Pavlov

    Igor Pavlov - 2019-01-19

    Find first lines with error in test.txt
    And look lines for that error file and previous file in list file a.txt.
    Look Block field for these files.

     
  • Amine

    Amine - 2019-01-19

    i am not an expert...
    I can't find where are those errors in test.txt
    °_°

     

    Last edit: Amine 2019-01-19
  • Shell

    Shell - 2019-01-19

    According to Memories 1 in text, you have 4 blocks in the archive. This means it is possible to have up to 4 different passwords: one for each block of files. When you specify a password, files from each block that has the same password are extracted, other blocks fail. Since there are no errors in Capture, you have entered a correct password for the first (number 0) block, but the passwords for blocks 1, 2 and/or 3 may differ from it. If you want to extract all of your files, you should try different passwords until each block is extracted successfully. There are software that try different passwords for you in the case you have many of them. However, if you don't remember what that password is like at all, then the chances to get the files back are very low.

     
    ❤️
    1

    Last edit: Shell 2019-01-19
    • Amine

      Amine - 2019-01-19

      tnx shell...
      which software is the best in your opinion

       
      • Shell

        Shell - 2019-01-19

        I know only one such program - cRARk for 7-Zip purpose. You can try to find more by searching for something like "7-Zip password recovery".

         
  • Igor Pavlov

    Igor Pavlov - 2019-01-20

    you need also file with errors:

    7z t c:\a.7z -bb3 -pYourPassword 1> c:\1.txt  2> c:\error.txt 
    

    also find all Block value changes in list.txt
    and look these files in 1.txt and error.txt

     

    Last edit: Igor Pavlov 2019-01-20
  • Igor Pavlov

    Igor Pavlov - 2019-01-20

    Correction.
    Use another command:

    7z t c:\a.7z -bb3 -bse1 -pYourPassword 1> c:\2.txt
    

    it must be simpler to find files with Block changes and errors in that 2.txt

     
    ❤️
    1

    Last edit: Igor Pavlov 2019-01-20
  • Igor Pavlov

    Igor Pavlov - 2019-01-20

    So the password is OK.
    And there is curruption in Block=0.
    It can be difficult to recover the data.
    But if data is uncompressible, lzma2 could store that data without compression. So you can skip bad part in block and try to recover uncompressed chunks after errors.
    It's only some probability to recover something, but it's not 100% chance.

    It requires some programming. You must change source code of 7-zip and use debugger.
    It's difficult, if you are not programmer.
    If your data are important, you can hire some programmer (not me) for that task.

     
    ❤️
    1
    • Amine

      Amine - 2019-01-20

      ok many thanks to you...

       
      • Amine

        Amine - 2019-01-20

        I will try to learn how to fix it...

         
  • Rupesh Joshi

    Rupesh Joshi - 2021-05-29

    I had the same problem with 7z, I tried winrar with the same password and it worked just fine.

     
    • Igor Pavlov

      Igor Pavlov - 2021-05-29

      What archive type and what version of 7-zip did you get error?

       
    • Amine

      Amine - 2021-05-31

      Unfortunately it didn't work for me,
      the same error messages still appearing.

       
  • vijay

    vijay - 2024-01-06

    I have problem while extracting my file. please help me to solve the problem.

     
    • Igor Pavlov

      Igor Pavlov - 2024-01-06

      Try GUI version of 7-zip instead of console version.
      Try also winrar.
      And think about password.
      Maybe password was not correct?

       
      • vijay

        vijay - 2024-01-07

        I entered correct password and also showing the same error. Please give any solution to solve this problem

         
  • Igor Pavlov

    Igor Pavlov - 2024-01-07

    maybe archive is not full.
    redownload it.

     

Log in to post a comment.