Some 7zip users are getting a “Cannot Open File as Archive” error when attempting to open an archive file. Some users are getting this only when they try to open the file by double-clicking on it. However, an incomplete or corrupt archive file can also cause this specific error for users. In this article, we will show you methods through which you can identify and solve the issue.
As it turns out, this specific issue can be caused by a number of reasons depending on the archive and program. Here are some of the most common scenarios that might trigger this issue:
- Default Opening Issue: As it turns out, one of the reasons the issue might appear is when the 7zip is trying to open the file with 7zG (GUI) rather than opening it with 7zFM (File Manager). If this case is applicable, you can change the default opener for 7zip.
- Corrupt Zip File: Another reason the issue may occur is when the archive file is not completed or corrupted. In such a scenario, you can try to re-download or use the repair tool to fix the issue.
Before you proceed with the below methods, make sure that the file you are trying to open is complete. Sometimes when the file is not downloaded correctly or completely, it may be unable to open. You can also try downloading through the download manager rather than downloading directly through the browser.
Changing the Default Opening for Archive
Most of the time this issue is caused when you are opening this through the wrong 7zip executable. The double-clicking or open option will use the default opening program for the archive. If the default program is set to 7zG (GUI), it will be unable to open a file as an archive. You need to set it to 7zFM.exe to open the archive file by double-clicking or open the option as shown below:
- Open your browser and download the DefaultProgramEditor software. Open the application by double-clicking the executable.
Downloading the Default Programs Editor - Click on the File Type Settings option to edit.
Changing File Type Settings - Now choose the Context Menu option in which you can set the default program and context menu.
Selecting Context Menu option - After that, search for extension .7z or .zip in the list. Select the extension and click on the Next button.
Note: If you have any other extension for your archive, you can select that one.Choosing the extension from the list - Now you can add multiple programs to the context menu. You can also set the default program with an Open command. Select the Open command and click the Edit Selected Command option.
Editing the default open command - Here you can change the 7zG (GUI) to 7zFM (File Manager). Then it will be able to open files through double-clicking.
Changing the 7zip executable - Once you are done with the settings, click on the Save Context Menu button to save the changes.
Using Another App to Open Archive File
Sometimes the issue can be with the 7zip program that is opening the archive file. You can try using some other program to solve the issue or at least confirm the issue further. We are trying the WinRAR to demonstrate this method, you can try using any other well-known software that you want to.
- Open your browser and go to the WinRAR official site to download it. You can install it by following the installation instructions.
- Now right-click on the archive file you will see the WinRAR options. You can directly open it or extract it by using WinRAR.
Opening archive through WinRAR - If it still doesn’t open then you can try the repair feature of the WinRAR mentioned in the below method.
Repairing the Zip Archive
There are several repairing tools out there that can help in repairing archives. Sometimes the issue can be small and a repairing tool can fix it right away. In this method, we are going to use WinRAR repairing feature to demonstrate the idea of repairing archives. You can use any other best-known repairing tool if you want to.
- Open the WinRAR application by double-clicking the shortcut or search it through the Windows search feature.
Note: If you don’t have WinRAR installed, simply download, and install it from the official site. - Navigate to the location where the archive file is located. Select the file and click on the Repair icon in the WinRAR toolbar.
Note: You can also find the Repair Archive option in the Tools menu.Repairing archive through WinRAR repair tool - It will ask if you want to treat the corrupt file as a Zip or Rar. You can also provide the path where it should save the repaired archive. Select the options and click on the Ok button.
Repairing corrupt archive - It will repair the archive and save it in that provided location. Now try opening the repaired archive on your system.
Kevin Arrows
Kevin is a dynamic and self-motivated information technology professional, with a Thorough knowledge of all facets pertaining to network infrastructure design, implementation and administration. Superior record of delivering simultaneous large-scale mission critical projects on time and under budget.
Back to top button
Как исправить 7-Zip не удается открыть файл как ошибка архива? Когда вы имеете дело с большими файлами для проекта, инструменты архивации, такие как 7Zip пригодиться. Они сжимают большие файлы в контейнер сжатия, называемый архивом. Таким образом, вместо отправки и совместного использования этих файлов один за другим, вы можете хранить их в одном месте. Однако иногда вы можете столкнуться с тем, что 7Zip не может открыть файл как архив, что может вызвать головную боль.
Эти ошибки происходят из-за нескольких факторов. В этом руководстве мы покажем вам, как исправить эту ошибку несколькими способами. Но прежде чем мы это сделаем, мы приглашаем вас проверить другие руководства и исправления 7Zip 7Zip Помогите.
содержание
- 1 Источники 7Zip не могут открыть файл как ошибки файла архива
- 2 Исправление ошибок в архиве
- 3 Использование программы восстановления для исправления ошибок в архиве
- 4 Использование Yodot
-
- 4.0.1 Как исправить 7Zip не может открыть файл как архив
-
- 5 Другие источники ошибок 7Zip файла
- 5.1 Часто задаваемые вопросы
- 5.1.1 7Zip не может открыть файл как архив: Заключение
- 5.1 Часто задаваемые вопросы
Источники 7Zip не могут открыть файл как ошибки файла архива
Прежде чем обсуждать, как исправить эту ошибку, убедитесь, что формат файла совместим с 7Zip. Есть и другие программы для архивирования, такие как WinRAR и WinZip это может работать для вашего формата файла. Эти инструменты архивирования являются законным программным обеспечением, которое будет защитить ваши данные.
Чтобы определить подходящий метод исправления ошибки, мы должны сначала определить причину ошибки. Давайте сначала посмотрим на структуру файла архива.
Как мы уже упоминали в других статьях, 7Zip — это инструмент для архивирования с открытым исходным кодом который производит контейнеры сжатия, называемые архивами. Программное обеспечение может создавать архивы в различных операционных системах, таких как Windows, макинтош, и Linux, Архивы состоят из четырех видов блоков, которые переносят данные. Эти блоки следующие:
- Начальный заголовок имеет размер 32 байта. Этот заголовок содержит подпись и ссылку на конечный заголовок
- Сжатые данные ваших файлов
- Блок сжатых метаданных для сжатых файлов. Этот блок содержит ссылки на сжатые данные, информацию о методах сжатия, CRC, именах файлов, размерах этих файлов и временных отметках.
- Конечный заголовок, имеющий ссылку на блок сжатых метаданных
При возникновении проблемы в любом или нескольких из этих блоков вы столкнетесь с ошибкой. Наиболее распространенная проблема, с которой сталкиваются пользователи, — 7Zip не может открыть файл как архив. Вот несколько причин, почему вы сталкиваетесь с этой ошибкой:
- В архиве есть неверный или неправильный заголовок
- Программное обеспечение не может открыть некоторые заголовки с начала или конца архива
- Архив поврежден и не имеет определенной ссылки на конечный заголовок
- Общий размер архива создает проблему
- Конечный архив поврежден или отсутствует
Исправление ошибок в архиве
Теперь, когда мы определили, откуда происходят эти ошибки, теперь мы можем обсудить, как их исправить. Чтобы исправить эти ошибки, вы можете попробовать использовать шестнадцатеричный редактор или стороннее программное обеспечение, чтобы позаботиться об этом.
Для более опытных пользователей, которые знакомы со структурой архивных файлов, лучше всего использовать шестнадцатеричный редактор. Если у вас есть последняя версия 7Zip и редактор шестнадцатеричных кодов, такой как FAR Manager, тогда все готово. Официальный интернет сайт из 7Zip предоставил руководство по устранению этих ошибок.
Помимо исправления ошибок, вы также можете узнать, как запустить 7Zip через командная строка и поставить пароли на ваши архивы в других наших статьях.
Использование программы восстановления для исправления ошибок в архиве
Другой вариант, который вы можете использовать для исправления ошибок, — это использовать программное обеспечение для ремонта за вас. Выучить шестнадцатеричные редакторы довольно сложно, если у вас ограниченный опыт. По этой причине такое программное обеспечение, как Yodot, является популярным вариантом для восстановления поврежденных архивных файлов.
Использование Yodot
Йодот восстанавливает испорченные архивы. Программное обеспечение сканирует все, чтобы исключить источник коррупции. Это программное обеспечение извлекает все данные, которые недоступны, используя другие методы восстановления.
Помимо исправления ошибки «7Zip не удается открыть файл как архив», Yodot также может помочь вам решить другие проблемы с архивом. К ним относятся «не файл RAR», «архив RAR не может быть полностью распакован» и другие ошибки, которые появляются при извлечении файлов RAR.
Yodot совместим с Windows 2003, Server 2008, XP и Vista, 7, 8, 8.1 и 10 ОС. Чтобы устранить ошибку, выполните следующие действия:
- Загрузите и установите Yodot ZIP Repair на свое устройство
- После этого запустите приложение
- Выберите архив 7z, нажав на кнопку Обзор
- Нажмите на кнопку Ремонт
- Проверьте восстановленные архивные файлы и папки 7Zip, посмотрев в окно «Восстановленное содержимое файла».
- Нажмите «Выбрать папку», чтобы указать место, где можно сохранить исправленный архив 7Zip.
- Восстановленный архив теперь можно извлечь без проблем
Как исправить 7Zip не может открыть файл как архив
Есть несколько способов исправить 7Zip, который не может открыть файл как архив. Один из самых простых способов — попробовать переустановить и заново создать сжатый файл.
Если у вас есть архив 7Zip и вы получаете сообщение об ошибке, что он не может открыть файл как архив, вам может потребоваться узнать, как решить эту проблему. Эта ошибка возникает, когда часть заархивированного файла повреждена, и пользователь не может открыть файл. К счастью, вы можете легко решить эту проблему. Есть несколько способов решить проблему, включая повторную загрузку файла, использование сторонней программы или средства восстановления.
Если у вас есть файл на вашем компьютере, вы можете открыть его с помощью проводника Windows. Щелкните правой кнопкой мыши ZIP-файл и выберите «Открыть». Как только он откроется, вы сможете просмотреть файлы внутри zip-файла. Кроме того, вы также можете использовать стороннюю утилиту для открытия файла.
Первое, что вы должны сделать, если вы столкнулись с ошибкой, это проверить файлы в архиве на наличие ошибок. Сначала вы должны найти начальный заголовок и конечный заголовок. Каждый файл имеет значение CRC, которое является своего рода циклической проверкой избыточности. Эти значения используются для определения целостности данных в файле. Если начальный заголовок или конечный заголовок неверны, zip-файл не откроется.
Если вы сможете найти начальный и конечный заголовки, вы сможете решить проблему самостоятельно. Однако вам может потребоваться обратиться к стороннему инструменту, если вы опытный пользователь. Шестнадцатеричный редактор — один из лучших инструментов для этой цели.
Еще один способ избавиться от проблемы — заново скачать весь архив. Сделав это, вы можете убедиться, что файл не поврежден. Нередко файл повреждается во время загрузки или во время перерывов в копировании или перемещении. Повторная загрузка zip-файла может помочь вам решить проблему.
Вы также можете использовать шестнадцатеричный редактор для просмотра содержимого архива. Это может помочь вам определить области ZIP-файла, которые повреждены. Кроме того, шестнадцатеричные редакторы могут помочь вам восстановить поврежденные блоки данных. Для этого вам нужно найти начальный и конечный заголовки и удалить из каждого биты информации.
После удаления ошибок из файлов вы можете повторно скачать файлы. В зависимости от вашей версии Windows вам может потребоваться изменить место извлечения по умолчанию на ту же папку, что и zip-файл.
Для пользователей, у которых поврежден блок данных, вы можете попробовать повторно загрузить весь архив или использовать инструмент восстановления. Это может решить проблему и позволить вам продолжать делиться файлами. Однако, если проблема не решена, вам может потребоваться переустановить программное обеспечение 7Zip. Вы также можете попробовать команду «Проверить и извлечь», чтобы узнать, устраняет ли она проблему.
Если вам трудно восстановить архив с помощью шестнадцатеричного редактора, вы всегда можете рассмотреть возможность загрузки инструмента для восстановления. Вы можете выбрать один из множества бесплатных и платных вариантов. Использование инструмента гарантирует, что файлы будут восстановлены, и вы также можете сохранить восстановленные файлы в новом месте на жестком диске.
Другие источники ошибок 7Zip файла
Другая ошибка, с которой вы можете столкнуться — это ошибка CRC. Значение Cycical Redundancy Check (CRC) используется для проверки целостности данных файла. Каждый файл имеет значение CRC, связанное с ним. При извлечении архива инструменты сопоставляют эти значения CRC с существующим значением файла.
Ошибки возникают, когда эти два значения не совпадают. Всякий раз, когда вы сталкиваетесь с этим типом ошибки, это означает, что значение CRC изменено или повреждено. Есть много причин, по которым происходят ошибки CRC, например:
- Ошибки переноса. Ошибки могут возникнуть при перемещении файла 7Zip в другое место
- Незавершенные загрузки. Ошибки или прерывания при загрузке архивных файлов могут привести к ошибкам CRC в процессе извлечения
- Другие причины, такие как неисправность инструмента архивации или повреждение физического диска
Другие ошибки также могут возникнуть из-за самого файла. Это то, что вы называете ошибками архива не-7Zip. Вот общие причины, по которым вы можете с ними столкнуться:
- Неполная загрузка
- 7Zip ошибки при установке
- Обновления драйверов
Часто задаваемые вопросы
Почему 7Zip говорит, что я не могу открыть файл RAR как архив?
Когда вы видите это сообщение об ошибке, это означает, что файл RAR поврежден или обнаружена ошибка. Всякий раз, когда вы сталкиваетесь с этой ошибкой, для этого есть несколько причин:
u003e Ошибки в блоках данных архива
u003e Неполные загрузки
u003e Ошибки передачи
u003e Повреждения физического диска
u003e 7Zip ошибки установки
u003e Обновления драйверов
Windows 10, как исправить, не может открыть файл в виде архива 7Zip?
Когда вы идентифицируете источник ошибки, вы можете применить к ней различные методы. Если вы обнаружите, что один или несколько блоков данных архива повреждены, вы можете попробовать исправить это с помощью шестнадцатеричного редактора. Но если вы не знакомы с hex-редактором, вы также можете попробовать использовать стороннее программное обеспечение, такое как Yodot или Stellar Phoenix Zip Recovery.
Что делать, если 7Zip говорит, что не может открыть файл как архив?
Это означает, что ваш файл архива только что обнаружил ошибку. Вы можете попробовать исправить это с помощью шестнадцатеричного редактора или стороннего программного обеспечения. Если это не работает, вы можете попробовать повторно загрузить файл архива из его источника или изменить флэш-диск, который вы используете для его сохранения.
7Zip не может открыть файл как архив: Заключение
Существует множество причин, по которым вы можете столкнуться с ошибками при извлечении архивных файлов. Пока вы можете определить источники этих ошибок, было бы легче определить, какой метод будет полезен при их решении.
В этом руководстве мы показали вам источники ошибок и способы их устранения. Если вы столкнулись с той же ошибкой, сообщите нам, эффективны ли представленные выше решения. Если у вас есть вопросы или предложения по поводу нашего гида, оставьте нам сообщение в разделе комментариев ниже.
7zip не может открыть файл как архив
Download PC Repair Tool to quickly find & fix Windows errors automatically
A compressed version of files, popularly known as zipped files are convenient but also prone to errors. So, when you attempt to open such files using freeware utilities like 7-Zip, you may encounter an error, saying Cannot open file as archive. Let us see what you can do about it.
7-Zip is an excellent open-source file archiver. It can compress files within archives and read and write many other archive formats like ZIP, WIM, and GZIP. Sometimes, due to internet interruptions during file download or other problems, it may fail to open the file as an archive. Try these suggestions to fix the problem.
- Re-download or re-create the compressed archive file
- Use a ZIP Repair freeware
- Repair ZIP archive using WinRAR utility
- Use Command Prompt tool
- Check the Headers in Hex Editor.
The zip file format is one of the most popular forms of data storage. It is widely used for backup and transfer of information over the Internet. If you can’t open the file as an archive, do the following.
1] Re-download or re-create the compressed archive file
If you download the file, download it again to a different location and see. If you created it, re-create it again to a different location and see if it helps.
2] Use a ZIP Repair freeware
You can use one of these free software to repair corrupted and damaged compressed and zip files.
3] Repair ZIP archive using WinRAR utility
If it appears your ZIP file is corrupted then try to repair the corrupted ZIP archive using the WinRAR utility. The tool is equipped with a built-in repair feature that can repair corrupted RAR as well as the ZIP archive.
Launch the WinRAR tool, click on the File tab and select the Open option.
Then, under the Find Archive window, locate the corrupted ZIP file and select it.
Hit the Tools tab. Later, choose the Repair archive option.
Now, in the Repairing File name.ZIP window, click on the Browse button to select a location for the newly repaired ZIP archive.
Check the Treat the corrupt archive as ZIP box.
When done, hit the OK button to start the repairing process.
Upon completion, click Close to exit.
4] Run Command Prompt
If there’s an incorrect header at the start or end of the file, you will see this 7-Zip cannot open the file as an archive error message. You can try to repair the incorrect end header through Command Prompt. Here’s how!
Launch Command Prompt with Administrator privileges.
Type the following command and hit Enter –
“C:Program FilesWinZipwzzip” –yf zipfile.zip
(Make sure, you replace “zipfile.zip” with the name of your Zip file). The double quotes in the example above are necessary due to the space between “Program” and “Files”.
This will repair the file.
5] Check the Headers in Hex Editor
If you try to open or extract an archive and you see the message “Can not open file as archive“, it means that 7-Zip can’t open some header from the start or from the end of the archive. In that case, you must open the archive in a Hex Editor and look for the Start Header and End Header.
- If the start of the archive is corrupted, then there is no link to the End Header. But if the End Header is OK, and the size of the archive is also correct, you can replace data in Start Header in a hex editor with the following values:
0000000000: 37 7A BC AF 27 1C 00 04 00 00 00 00 00 00 00 00
0000000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Then try to open the archive, if you can open it and you see the list of files, try the Test or Extract command. - Start Header and End Header are OK, but the total size of the archive is not OK. You can calculate the correct size of the archive from values in the Start Header. Then you must recover the correct size. You can insert some data or remove some data somewhere in the archive.
What does Not a valid archive mean?
In simple language, not a valid archive means there’s some problem with the archive. It can happen either during copy or move operation or when part of the zip file becomes corrupt due to an interruption in download. This can be solved by discarding the damaged file and downloading a new copy.
A post-graduate in Biotechnology, Hemant switched gears to writing about Microsoft technologies and has been a contributor to TheWindowsClub since then. When he is not working, you can usually find him out traveling to different places or indulging himself in binge-watching.
A free file archiver for extremely high compression
-
Summary
-
Files
-
Reviews
-
Support
-
Wiki
-
Tickets ▾
- Support Requests
- Patches
- Bugs
- Feature Requests
-
News
-
Discussion
Menu
▾
▴
Error: Can not open file as archive
Created:
2011-11-04
Updated:
2013-09-24
-
On a Mac with Fink, I’ve :
7-Zip 4.44 beta Copyright (c) 1999-2007 Igor Pavlov 2007-01-20 p7zip Version 4.44 (locale=C,Utf16=off,HugeFiles=on,8 CPUs)
I’ve done a multipart archive with:
/sw/bin/7z -v4290m -mx9 a ./TheBackup.7z /FolderToBackup
That give me some TheBackup.7z.001, TheBackup.7z.002…TheBackup.7z.031
And when I try to deflate:
/sw/bin/7z e TheBackup.7z.001
It create a file «TheBackup.7z», that return:
/sw/bin/7z e TheBackup.7z 7-Zip 4.44 beta Copyright (c) 1999-2007 Igor Pavlov 2007-01-20 p7zip Version 4.44 (locale=C,Utf16=off,HugeFiles=on,8 CPUs) Processing archive: TheBackup.7z Error: Can not open file as archive
What I’m doing wrong? This is a bug?
Maelvon
-
1) try to get new version of p7zip
2) copy all volumes to one folder.
3) check that you have all volumes, and all volumes (except of last volume) have same size.
-
1) Tested on an other machine with «7-Zip 9.04 beta» & «7-Zip (A) 9.20»
2) Copied in a specific folder.
3) Each volume seems to have the correct size, except the last one, as expected:# ls -la TheBackup* 136741167256 Aug 8 13:16 TheBackup.7z 4498391040 Aug 8 13:16 TheBackup.7z.001 4498391040 Aug 7 04:00 TheBackup.7z.002 4498391040 Aug 7 04:00 TheBackup.7z.003 4498391040 Aug 7 04:00 TheBackup.7z.004 4498391040 Aug 7 04:00 TheBackup.7z.005 4498391040 Aug 7 04:00 TheBackup.7z.006 4498391040 Aug 7 04:00 TheBackup.7z.007 4498391040 Aug 7 04:00 TheBackup.7z.008 4498391040 Aug 7 04:00 TheBackup.7z.009 4498391040 Aug 7 04:00 TheBackup.7z.010 4498391040 Aug 7 04:00 TheBackup.7z.011 4498391040 Aug 7 04:00 TheBackup.7z.012 4498391040 Aug 7 04:00 TheBackup.7z.013 4498391040 Aug 7 04:00 TheBackup.7z.014 4498391040 Aug 7 04:00 TheBackup.7z.015 4498391040 Aug 7 04:00 TheBackup.7z.016 4498391040 Aug 7 04:00 TheBackup.7z.017 4498391040 Aug 7 04:00 TheBackup.7z.018 4498391040 Aug 7 04:00 TheBackup.7z.019 4498391040 Aug 7 04:00 TheBackup.7z.020 4498391040 Aug 7 04:00 TheBackup.7z.021 4498391040 Aug 7 04:00 TheBackup.7z.022 4498391040 Aug 7 04:00 TheBackup.7z.023 4498391040 Aug 7 04:00 TheBackup.7z.024 4498391040 Aug 7 04:00 TheBackup.7z.025 4498391040 Aug 7 04:00 TheBackup.7z.026 4498391040 Aug 7 04:00 TheBackup.7z.027 4498391040 Aug 7 04:00 TheBackup.7z.028 4498391040 Aug 8 13:16 TheBackup.7z.029 4498391040 Aug 8 13:16 TheBackup.7z.030 1789436056 Aug 8 13:16 TheBackup.7z.031
Then:
# 7za e TheBackup.7z.001 7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18 p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,4 CPUs) Processing archive: TheBackup.7z.001 Extracting TheBackup.7z Everything is Ok Size: 136741167256 Compressed: 4498391040 # 7z e TheBackup.7z 7-Zip 9.04 beta Copyright (c) 1999-2009 Igor Pavlov 2009-05-30 p7zip Version 9.04 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,4 CPUs) Can't load './7z.dll' (./7z.so: cannot open shared object file: No such file or directory) Error: 7-Zip cannot find the code that works with archives. # 7za e TheBackup.7z 7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18 p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,4 CPUs) Processing archive: TheBackup.7z Error: Can not open file as archive
Same error! Did you see anything strange here? How can I deflate this .7z file?
Maelvon
-
1) Show first 48 bytes of TheBackup.7z.001 in hex.
2) Show last 128 bytes of TheBackup.7z.031 in hex.
-
Done, but I don’t known if I’ve used the correct «dd» command.
# dd if=theBackup.7z.001 of=1.txt bs=1 count=48 48+0 records in 48+0 records out # hexdump 1.txt 0000000 7a37 afbc 1c27 0200 57a2 6493 5ca4 d63e 0000010 001f 0000 002a 0000 0000 0000 eb1e ac0f 0000020 1e00 cb0f 1187 ced8 9166 830f ca1e 7bfd 0000030 # dd if=theBackup.7z.031 of=31.txt bs=1 count=128 128+0 records in 128+0 records out hexdump 31.txt 0000000 0164 94d6 e2e8 ee13 ebae cc5d 0def 696b 0000010 d25c 074d c818 31cd fea3 225d 61d5 9a51 0000020 302f 607f 3647 fb95 6ca7 f87b 29df 2257 0000030 2586 ac90 46d0 b063 a789 da5c f1a6 921c 0000040 622e df1d 9d24 6f73 c640 732b 5719 bf3b 0000050 ccd4 3f51 8efb e670 3683 34ae 6353 dcb9 0000060 d496 d8cd 6bcb 5da2 55eb bbf9 582c ffc8 0000070 ca67 32bb 38ed 78d7 618c 4668 28f4 338e 0000080
-
It looks like your .7z file is about 2 MB longer than size referenced in header (I don’t know why).
Try to find «footer» at the end of archive (probably in theBackup.7z.031).
Try to find «lzma» signature in hex:
03 01 01 05 5D 00
-
Also you can try to reproduce error with smaller files (or smaller volumes).
It will be simpler to work with them.
Maybe It was bug of old version of p7zip. Maybe it was bug with 64-bit file offsets or something else.
-
Thanks for the help ipavlov!
At the end of in theBackup.7z.031, I’ve found the 03 01 01 05 5D 00
6AA8A080 01 23 03 01 01 05 5D 00 00 10 00 0C E1 5D F5 1F 6AA8A080 0A 01 ED AB 92 B4 00 00
-
so in your previous posts you didn’t show last bytes of last volume.
So again:
1) show last 128 bytes of theBackup.7z.031
2) last 128 bytes of theBackup.7z
They must be the same.
Show with offset (in hex) like that «6AA8A080 ….. )».
-
But I don’t understand if «03 01 01 05 5D 00» is «lzma» or «footer»? And the next step is?
As I’ve deleted the backuped files, I hope I can retrieve the data :.)
-
1) The end of Backup.7z.031
6AA8A010 BD 03 A0 F4 68 EF 23 F7 72 FE F3 BB 2E 35 BE 08 6AA8A020 7D 67 77 F5 D6 82 4C A6 08 91 C1 A4 B0 D8 A7 A7 6AA8A030 96 AA 01 88 50 69 FC 39 6D AD C7 4F 85 D1 CA CC 6AA8A040 38 6A 39 2D 11 FC 4C BF D6 EC B0 F0 ED 1A 17 39 6AA8A050 FD 28 A7 E4 2E 7E 5A 4C B8 B0 F0 B5 CE 66 65 03 6AA8A060 F3 DD 10 A3 77 90 70 25 A7 BA 69 00 00 00 17 06 6AA8A070 F8 07 A2 35 D6 1F 01 09 C8 9D BA 00 07 0B 01 00 6AA8A080 01 23 03 01 01 05 5D 00 00 10 00 0C E1 5D F5 1F 6AA8A090 0A 01 ED AB 92 B4 00 00
2) The end of Backup.7z
1FD668A010 BD 03 A0 F4 68 EF 23 F7 72 FE F3 BB 2E 35 BE 08 1FD668A020 7D 67 77 F5 D6 82 4C A6 08 91 C1 A4 B0 D8 A7 A7 1FD668A030 96 AA 01 88 50 69 FC 39 6D AD C7 4F 85 D1 CA CC 1FD668A040 38 6A 39 2D 11 FC 4C BF D6 EC B0 F0 ED 1A 17 39 1FD668A050 FD 28 A7 E4 2E 7E 5A 4C B8 B0 F0 B5 CE 66 65 03 1FD668A060 F3 DD 10 A3 77 90 70 25 A7 BA 69 00 00 00 17 06 1FD668A070 F8 07 A2 35 D6 1F 01 09 C8 9D BA 00 07 0B 01 00 1FD668A080 01 23 03 01 01 05 5D 00 00 10 00 0C E1 5D F5 1F 1FD668A090 0A 01 ED AB 92 B4 00 00
They seems identical!
-
And the first lines of Backup.7z.00 are :
000000000 37 7A BC AF 27 1C 00 02 A2 57 93 64 A4 5C 3E D6 000000010 1F 00 00 00 2A 00 00 00 00 00 00 00 1E EB 0F AC 000000020 00 1E 0F CB 87 11 D8 CE 66 91 0F 83 1E CA FD 7B 000000030 33 D4 7F E9 B7 DA 28 31 76 25 66 20 4D 2A 09 6D
It seems the dd+hexdump does not return the same as the Hxd Editor I’m using now, sorry.
-
/Backup.7z.00/Backup.7z.001/
-
1FD668A06E — start of footer in curruptred
1fd63e5ca4 — offset of footer in header.
1FD63E5CC4 — real offset (1fd63e5ca4 + 0x20) of footer in correct archive1FD668A06E — 1FD63E5CC4 = 2A43AA (2769834 in decimal)
So you must remove 2769834 bytes from theBackup.7z.031.
Copy theBackup.7z.031 volume for recovery purposes.
Split theBackup.7z.031 into two parts:
first 2769834 bytes — first.bin
other bytes — to tail.binrename tail.bin to theBackup.7z.031.
And try to open theBackup.7z.001 again.
If you see theBackup.7z — something is wrong (check my calculations).
If you see files — header and footer are correct now.
-
Done:
dd bs=2769834 skip=1 if=theBackup.7z.031 of=tail.bin 645+1 records in 645+1 records out
Wahhou! And the files are extracting, I see them!
Thanks a lot ipavlov!
I need to understand you’re process to find the 2769834 bytes to remove from the last part. As I have other backups done with this probably buggy version of 7z (7-Zip 4.44 beta). You tell me, what an idea to do backup with an so old version. But I’ve discovered that when I wrote here.
-
1) note that probably you will heve error at some file.
If error at the end of archive, maybe you must remove 2769834 bytes from the end of .031 (but you must keep some MBytes at the end before footer, where .7z contains headers with filenames).
2) If it’s possible try to reproduce error case but with smaller files.
We must check that new version doesn’t produce bad files. And I want to know exact reason about these bad archives.
So you can use old and new version with different file sizes and similar modes (multivolume). If you can’t open archive, reduce file size and so on.
Maybe it’s OK to use fast mode (-mx1).
-
The problem does not depend on splitted volumes.
I have compressed a single file with the command «7za a archive.7z -v50m afile» and without splitting «7za a archive.7z afile». Both are equal (if joined with cat).
-
I my case the error occure, while compressing file on an ssh gvfs mount.
I am using 7-Zip (A) 9.04 beta Copyright (C) 1999-2009 Igor Pavlov 2009-05-30
-
highjack:
Please describe your error with more details.
-
It’s the same error as described before.
> Error: Can not open file as archive
I my case it’s caused by saving the files directly to a gvfs mount point. Compressing to a local file system does not cause this error. My testcase is just one 1MiB file.
Here the complete corrupted file compressed on a gvfs mount point.
00000000 37 7a bc af 27 1c 00 03 3a 9d 86 75 da 00 00 00 |7z..’…:..u….|
00000010 00 00 00 00 55 00 00 00 00 00 00 00 f2 08 94 00 |….U………..|
00000020 f9 ee e4 1e 82 d3 2f c5 3a 3c 01 4b b1 7e c9 8a |……/.:<.K.~..|
00000030 8a 4d 2f a3 0d d9 7f a6 e3 8c 23 11 53 e0 59 18 |.M/…….#.S.Y.|
00000040 c5 75 8a e2 77 f8 b6 94 7f 0c 6a c0 de 74 49 64 |.u..w…..j..tId|
00000050 e2 e9 5c 53 b2 04 d8 f7 44 0c ab 5f 0d 6d 46 e9 |..S….D.._.mF.|
00000060 e5 c3 76 88 b7 96 57 ac b6 4d e1 69 1d 6f fb 4b |..v…W..M.i.o.K|
00000070 88 10 6c 42 cb 88 3f 5c 00 8f d0 4e af 26 28 94 |..lB..?…N.&(.|
00000080 71 1f 3d 8f 24 e1 70 9e a7 23 5f ec 28 cb 85 d1 |q.=.$.p..#_.(…|
00000090 95 98 8a 7e 2a 91 f2 27 75 f7 19 c0 06 98 4d 98 |…~*..’u…..M.|
000000a0 fd d8 af d5 90 0f c4 25 53 f8 f5 91 36 31 05 a5 |…….%S…61..|
000000b0 b0 ee 6f c1 70 4d 47 0c d1 91 11 aa ad 60 1d ba |..o.pMG……`..|
000000c0 ce b1 27 18 5c 59 86 e9 66 52 58 be e9 76 ac 59 |..’.Y..fRX..v.Y|
000000d0 e4 e5 5b 05 08 f9 c7 da ad fc fb 52 2a f7 e4 95 |..[……..R*…|
000000e0 25 00 01 04 06 00 01 09 80 da 00 07 0b 01 00 01 |%……………|
000000f0 23 03 01 01 05 5d 00 00 10 00 0c d0 00 00 00 08 |#….]……….|
00000100 0a 01 1c ea 38 a7 00 00 05 01 11 15 00 74 00 65 |….8……..t.e|
00000110 00 73 00 74 00 2d 00 66 00 69 00 6c 00 65 00 00 |.s.t.-.f.i.l.e..|
00000120 00 14 0a 01 00 00 33 79 88 83 91 cd 01 15 06 01 |……3y……..|
00000130 00 20 80 80 81 00 00 |. …..|And the correct file compressed on a local filesystem.
00000000 37 7a bc af 27 1c 00 03 3a 9d 86 75 da 00 00 00 |7z..’…:..u….|
00000010 00 00 00 00 55 00 00 00 00 00 00 00 f2 08 94 00 |….U………..|
00000020 00 00 6f fd ff ff a3 b7 ff 47 3e 48 15 72 39 61 |..o……G>H.r9a|
00000030 51 b8 92 28 e6 a3 86 07 f9 ee e4 1e 82 d3 2f c5 |Q..(………./.|
00000040 3a 3c 01 4b b1 7e c9 8a 8a 4d 2f a3 0d d9 7f a6 |:<.K.~…M/…..|
00000050 e3 8c 23 11 53 e0 59 18 c5 75 8a e2 77 f8 b6 94 |..#.S.Y..u..w…|
00000060 7f 0c 6a c0 de 74 49 64 e2 e9 5c 53 b2 04 d8 f7 |..j..tId..S….|
00000070 44 0c ab 5f 0d 6d 46 e9 e5 c3 76 88 b7 96 57 ac |D.._.mF…v…W.|
00000080 b6 4d e1 69 1d 6f fb 4b 88 10 6c 42 cb 88 3f 5c |.M.i.o.K..lB..?|
00000090 00 8f d0 4e af 26 28 94 71 1f 3d 8f 24 e1 70 9e |…N.&(.q.=.$.p.|
000000a0 a7 23 5f ec 28 cb 85 d1 95 98 8a 7e 2a 91 f2 27 |.#_.(……~*..’|
000000b0 75 f7 19 c0 06 98 4d 98 fd d8 af d5 90 0f c4 25 |u…..M……..%|
000000c0 53 f8 f5 91 36 31 05 a5 b0 ee 6f c1 70 4d 47 0c |S…61….o.pMG.|
000000d0 d1 91 11 aa ad 60 1d ba ce b1 27 18 5c 59 86 e9 |…..`….’.Y..|
000000e0 66 52 58 be e9 76 ac 59 e4 e5 5b 05 08 f9 c7 da |fRX..v.Y..[…..|
000000f0 ad fc fb 52 2a f7 e4 95 25 00 01 04 06 00 01 09 |…R*…%…….|
00000100 80 da 00 07 0b 01 00 01 23 03 01 01 05 5d 00 00 |……..#….]..|
00000110 10 00 0c d0 00 00 00 08 0a 01 1c ea 38 a7 00 00 |…………8…|
00000120 05 01 11 15 00 74 00 65 00 73 00 74 00 2d 00 66 |…..t.e.s.t.-.f|
00000130 00 69 00 6c 00 65 00 00 00 14 0a 01 00 00 33 79 |.i.l.e……..3y|
00000140 88 83 91 cd 01 15 06 01 00 20 80 80 81 00 00 |……… …..|
-
highjack:
Yes, now I see some problem.7-Zip creates 7z archives so:
1) writes 8 bytes (signature)
2) moves file pointer to position 32.
3) writes compressed data
4) moves file pointer to position 8
5) writes strart header (24 bytes).And you have problem with step 2 (it moves file pointer to position 32, when file size is just 8 bytes only).
In Windows for SetFilePointer function (MSDN):
It is not an error to set a file pointer to a position beyond the end of the file.Or IStream::Seek method:
It is not, however, an error to seek past the end of the stream. Seeking past the end of the stream is useful for subsequent write operations, as the stream byte range will be extended to the new seek position immediately before the write is complete.Or for lseek function in posix:
The lseek() function allows the file offset to be set beyond the end of the file (but this does not change the size of the file). If data is later written at this point, subsequent reads of the data in the gap (a «hole») return null bytes (aqaq) until data is actually written into the gap.Maybe there is some problem with that feature for gvfs driver.
In any case I’ll fix my 7-Zip’s code
I’ll write 24 zero bytes, instead of Change_File_Pointer operation.Maybe I must fix it in other places too.
Thanks!!!
-
Thanks for the detailed answer. It’s a «nice» pitfall and it’s good to know. I have checked it with cifs mounts and gvfs samba mounts. I get different files as on my local file systems, but they are not corrupt. The corruption only happens on gvfs ssh mounts. I will file a bug report in the gvfs project.
-
I have a similar problem here with a Backup in 7z Format. Unfortunaly I encrypted the whole archive using ‘-p -mhe=on’.
And now am not able to extract the Data. I get this when I try to extract:
7z x 1.7z
7-Zip 9.04 beta Copyright (C) 1999-2009 Igor Pavlov 2009-05-30
p7zip Version 9.04 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,4 CPUs)Processing archive: 1.7z
Error: Can not open file as archive
Here are the first 48 byte of this single file:
hexdump head
0000000 7a37 afbc 1c27 0300 83e2 87d3 1a60 1b29
0000010 0000 0000 003d 0000 0000 0000 99de e297
0000020 fc18 3ffe 696b 18f6 0b74 7214 b618 3648
0000030The End of the file looks like this:
1b4ca6f0 8b0e 2de8 8aa3 c714 37eb d945 950a d4ca
1b4ca700 e459 9a1b b8bc df51 6a6c 1a3a a251 1d3c
1b4ca710 5497 9b8b fda3 82a7 09fa b8cd 7770 1868
1b4ca720 7f3b 344b 1852 4554 b302 d64f 7fc8 aa9d
1b4ca730 1454 c39f 78c5 cf59 100b 68c7 3b09 bfd9
1b4ca740 8311 65e1 287e 5d24 0ea0 f015 1483 859a
1b4ca750 cffa 3b92 3184 2b4e 50f1 34c9 ba01 ac3b
1b4ca760 80eb e8a6 f27b 423c bcc1 1fa9 01bd 7ca1
1b4ca770 59e3 32f8 00c1
1b4ca775Because of the fact that the Error occures before the password promt my first guess was, that there must be some Problem in the Header / Length information. But im not sure about this and to be honest I have no Idea how to fix it. Does someone here does see what the problem is maybe ipavlov?
Thanks for
-
Sorry for bad Formating here a bit better to read:
Here are the first 48 byte of this single file:
hexdump head 0000000 7a37 afbc 1c27 0300 83e2 87d3 1a60 1b29 0000010 0000 0000 003d 0000 0000 0000 99de e297 0000020 fc18 3ffe 696b 18f6 0b74 7214 b618 3648 0000030
The End of the file looks like this:
1b4ca6f0 8b0e 2de8 8aa3 c714 37eb d945 950a d4ca 1b4ca700 e459 9a1b b8bc df51 6a6c 1a3a a251 1d3c 1b4ca710 5497 9b8b fda3 82a7 09fa b8cd 7770 1868 1b4ca720 7f3b 344b 1852 4554 b302 d64f 7fc8 aa9d 1b4ca730 1454 c39f 78c5 cf59 100b 68c7 3b09 bfd9 1b4ca740 8311 65e1 287e 5d24 0ea0 f015 1483 859a 1b4ca750 cffa 3b92 3184 2b4e 50f1 34c9 ba01 ac3b 1b4ca760 80eb e8a6 f27b 423c bcc1 1fa9 01bd 7ca1 1b4ca770 59e3 32f8 00c1 1b4ca775
-
1) use byte (8-bit) representation instead of 16-bit representation.
2) length of archive is incorrect.
3) try to find 7zAES signnature in your file:
06 F1 07 01
It must be at the end of archive.
You can create some new 7z archive with some password and search that signature to check that you search correctly.You can use FAR Manager to search in hex.
Log in to post a comment.
Содержание
- Вариант 1: Повторное скачивание архива
- Вариант 2: Исправление ассоциаций файлов
- Вариант 3: Ручное изменение расширения файла
- Вопросы и ответы
Вариант 1: Повторное скачивание архива
В подавляющем большинстве случаев рассматриваемая ошибка появляется именно из-за того, что сам архив был скачан не до конца. При этом формально браузер может вам сообщить, что интересующий файл был загружен, но по факту либо небольшие проблемы с соединением возникли в процессе скачивания, либо на сервере изначально находится поврежденный файл. Соответственно, у пользователя есть два выхода:
- Скачать файл заново, по возможности оптимизировав интернет-соединение.
- Найти файл на другом сайте.
Перед попыткой повторного скачивания рекомендуется приостановить любую другую интернет-активность, которая так или иначе может повлиять на закачку. Это обновление ОС, раздача через торрент-клиент, потоковое воспроизведение видео в высоком качестве, скачивание/обновление игр через игровые клиенты и др. Если интернет сам по себе слабый, остановите и другой вид онлайн-активности, не считая мессенджеров и сервисов, практически не перетягивающих на себя ресурсы. Не забудьте выключить VPN в веб-обозревателе или на компьютере, так как особенно бесплатные их версии часто предлагают минимальную скорость обмена данными и становятся виновниками не до конца произведенных закачек.
Возможно, что в нестабильном скачивании файла виноват хостинг, где хранится архив. Попробовать свести к минимуму вероятные разрывы связи можно, используя сторонние менеджеры загрузок типа Download Master.
Читайте также: Использование менеджера загрузок Download Master
Рекомендуется также проверить, не виноваты ли другие ваши действия в том, что через браузер все загрузки происходят медленно.
Подробнее: Причины низкой скорости скачивания в браузере
Если же после выполнения всех рекомендаций ситуация не изменилась, вполне вероятно, что вы загружаете изначально «битый» файл — то есть архив с ошибками, которые произошли в результате сжатия или при загрузке на сервер. Подобное может исправить только автор архива, пересоздав его или закачав повторно. Вам же остается либо связаться с ним, либо поискать этот же файл на другом сайте.
При условии, что загрузка происходит не в браузере, а через клиент-программу, например для установки драйвера, осуществите все рекомендации по приостановке параллельного выполнения других задач, требующих интернет-соединения. По возможности смените подключение с Wi-Fi на LAN (если вы, конечно, используете беспроводное соединение) и проверьте, насколько быстро интернет работает в целом.
Иногда неполадки со скачиванием с конкретного сайта/сервера носят временный характер, поэтому есть смысл подождать некоторое время и повторить операцию.
Вариант 2: Исправление ассоциаций файлов
Реже причиной становится слетевшие ассоциации файлов в операционной системе, из-за чего Windows не может распознать EXE-файл и выдает ошибку «Файл не является 7z архивом». При этом могут перестать запускаться и другие EXE, а не только тот, который вы пытаетесь открыть. В связи с этим следует попробовать восстановить ассоциации файлов, чтобы система снова «поняла», как ей нужно обрабатывать формат EXE. Сделать это можно по инструкции из Способа 1 статьи, ссылка на которую расположена чуть ниже. При этом можете повторить и другие советы оттуда же, если первый оказался бесполезным.
Подробнее: Что делать, если EXE-файлы не запускаются
Вариант 3: Ручное изменение расширения файла
Есть вероятность, что трудность заключается в расширении файла, а точнее его отсутствии или ручном изменении. Обычно помогает самостоятельное переименование расширения, но сразу же стоит отметить, что если вы уже получили файл без расширения, данный метод не гарантирует стопроцентное исправление ошибки.
- Первое, что вам нужно узнать — видны ли в названиях файлов их расширения («.exe», «.rar», «.mp3» и др.). Если нет, включите их отображение: откройте «Проводник», нажмите на вкладку «Вид» и вызовите окно «Параметры».
- Переключитесь на вкладку «Вид» и найдите пункт «Скрывать расширения для зарегистрированных типов файлов» и снимите галочку, после чего нажмите кнопку «ОК».
- Теперь вернитесь к файлу, который не удается открыть, нажмите по нему правой кнопкой мыши и перейдите к переименованию.
- Если вы скачивали предположительно архив, допишите ему расширение «.rar», если это был установочный файл, допишите «.exe». После успешного переименования попытайтесь запустить файл.
В редких случаях может помочь отключение антивируса (преимущественно при установке драйвера, который защитное приложение хочет заблокировать) или файервола.
Читайте также:
Отключение антивируса
Настройка файервола в Windows 10 / Windows 7
-
Partition Wizard
-
Partition Magic
- Solve 7Zip Cannot Open File as Archive with These Methods
By Amy | Follow |
Last Updated January 12, 2021
If you use 7Zip to compress your files, you may encounter the 7Zip cannot open file as archive error. What causes this annoying issue? How to troubleshoot it effectively? In this post of MiniTool, these questions will be talked about and replied.
As you know, 7Zip is a free file archiver and a great compression program. It owns a large number of users since its release date. It has many excellent features such as multi-core CPU threading, 256-bit AES Cipher, graphical user interface, command-line interface, launching exe files as archives, and single volume archives, etc.
It works properly in most time. However, it sometimes will throw you errors like 7 Zip cannot open file as archive. What can I do to fix this error? Many people are seeking for answers on the Internet. To help you work out it, we will analyze the possible causes and provide some solutions for you.
Causes for 7Zip Cannot Open File as Archive
If you want to resolve 7Zip cannot open file as archive error, it is vital to learn the possible causes for it. You can take corresponding actions after finding out the potential reasons. After investigation, we find the following elements that cause 7 Zip can not open file as archive.
- There is a wrong or incorrect header on the archive.
- There are errors in the data blocks of the archive.
- The archive is corrupted and has no definite link to the end header.
- The software fails to open some headers from the beginning or the end of an archive.
- The end archive is corrupted or missing.
- The error occurs because of the overall size of the archive.
Now, it’s time to fix the 7Zip cannot open file as archive error with the methods below.
One of the best and most direct method to fix the 7Zip cannot open file as archive error is to open your file via another extract program. When you cannot open file as archive with 7 Zip, try using Yodot to do that.
Step 1: Click here to move to the official website of Yodot Zip repair program, and then click the Download button.
Step 2: Then follow the prompted instruction to install it on your computer. When you receive the following window, click Finish to complete the installation.
-image from yodot.com
Step 3: Then launch the program to enter its main interface.
Step 4: Click on the Browse button and then choose files to open. Then click the Next button to continue the operation.
Step 5: After scanning, click Next button to save the operation. You just need to wait until the finish of the process.
Solution 2: Fix Corrupted Data Blocks
As mentioned earlier, errors in the data blocks of the archive can trigger the 7Zip cannot open file as archive issue. And one of the most frequently encountered errors in data blocks is corruption.
If you find corrupted data blocks on your archive, try repairing them with hex editor. If you don’t know how to use it, you can use third-party programs like Yodot.
Solution 3: Re-download the Archive File
You can find that errors with the archive file often cause the issue discussed in this post. So, try re-downloading the archive file when you receive this error. According to user reports, re-downloading the archive file from it source or change the saving flash drive may solve the error.
Still cannot open file as archive? Here are three methods for you. Pick one to fix it now!
About The Author
Position: Columnist
Having writing articles about computer tech for a long time, I am rather experienced especially on the aspect of computer optimization, PC enhancement, as well as tech terms explanation. The habit of looking through tech forums makes me a great computer issues collector. And then, many articles related to these issues are released, which benefit plenty of users. Professional, effective, and innovative are always the pursuit of an editing worker.
Files are usually archived to squeeze within a single stack. Such stacks of highly compressed files are called archives. They become handy when it comes to transferring and storing files.
After files are parsed as archives, they must be unparsed to reuse. But, while unparsing the archive, you may receive an error: “cannot open file as archive.” In such a case, you may wonder if the files can be unzipped without any data loss or not.
Read through this article to know the causes of the issue and methods to retrieve data from your archive successfully.
What Causes the “Cannot Open File as Archive” Error?
Generally, the error occurs because of problems in the archiving process. If the files aren’t zipped properly, they also won’t unzip back. Besides, some other reasons provoking this error are:
- Broken files
- Unknown zip extensions
- Difference in parsing tool
- Corrupt file header
- Changed CRC value
- Split files located in different directories
- Damaged physical drive
Before proceeding to the fixes, check whether you have a supported zip file format or not. Applications won’t be able to unpack the unrecognized zip formats. We would also recommend using the same tool to parse and unparse the archive. And another way to prevent loss from the problem is to backup your files before packing.
Now try the below-listed solutions to the error:
Rezip/redownload Files and Extract
We have already mentioned the problem being a result of packing problems. So, you can try to rezip and then extract the files if possible. Try to use different compression tools for the process, but remember to compress and decompress with the same tool.
If you have fetched an archive from an online source, downloading errors can also cause such problems. The downloading errors may be network problems, missing files, or mid-way changed destination. Make sure to properly redownload the archive and extract it to check if the issue is resolved.
Certain drive issues also cause this error. You can run the Check Disk command on CMD to fix it.
Here’re the steps:
- Click on Search box
- Type
cmd
and Run it as an Administrator. - Type
CHKDSK C: /F /R /X
and hit Enter.
Note: CHKDSK command only fixes issues within the file system and disk but not damaged archives. You will have to rezip and redownload to fix the corrupt data in archives.
Use Tools to Repair Archive
Archive files consist of recovery data in one of its parts. Various utility tools can utilize such data to retrieve the actual file information. Parsing tools like WinRAR and 7-zip also come with their in-built recovery service. Or, tools like Yodot and MultiPar can help you do the job.
Here are the steps you can follow to repair the archive with WinRAR:
- Open WinRAR and locate the archive from the address bar.
- Select the file that you want to fix.
- Click on Tools from the horizontal menu on top.
- Choose the Repair archive option.
- Within the dialog box, relocate the file to the folder you want.
- Click on the OK button.
- Extract and open the new archive from the location you saved.
Use Hex Editors to Edit Start Header
Another possibility of error is the changed start header of the archive. The start header contains important pieces of information and links to the end header part. The information can be edited in hex editors to fix. Use any hex editors available online, and replace the start header hex values with:
0000000000: 37 7A BC AF 27 1C 00 04 00 00 00 00 00 00 00 00
0000000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Then, try to extract and open it.
Fix CRC Errors
While compressing, CRC(Cyclic Redundancy Check) values are assigned to the archive files. When an archive file is extracted to detect errors, these values are compared with the original values. If CRC values don’t match, the archive cannot be opened. These types of errors are pretty difficult to solve as CRC errors mean having bad portions within archives.
But certain tools like DataNumen Archive Repair, Remo ZIP repair, etc also let you bypass the redundancy check and let you extract the viable amount of uncorrupted data. Usually, the installation file archives under this error can be fixed. But if your file has unique data, you must manually replace its bad parts.
Keep Archive Parts in the Same Directory or Use File Merger
Files are zipped into multiple archives sometimes. If those parts are located in different directories, this problem can appear. To solve, try to figure out where the archives are located and put them in the same directory. Creating a different folder to store such archives would be even better.
You can also use file merger apps or the mentioned packing tools to associate various archives as one file. Just be sure to use the same compression format for all. And simply extract the archive after merging.
Follow the steps to merge archives using winRAR:
- Open winRAR and navigate to the archives you want to merge from the explorer bar.
- Hold the Ctrl key and click the archives.
- Right-click and select Extract to a specified folder.
- Then, create a new folder and Click Ok.
- Now open the folder and select all the files.
- Right-click and select Add to archive…
- Specify the name and location, then click Ok.
Dedicated archive mergers will let you skip these manual steps.