Error » Operating systems Error!! » OS tutorials » Fixing Corrupted Download Files

OS tutorials All Knowledge Info and links to posted here

Post New Thread Reply
  Fixing Corrupted Download Files
LinkBack Thread Tools Display Modes
Old 03-Jan-2006, 09:43 AM   #1 (permalink)
Learning to Fix Error!
 
tejus's Avatar

Posts: 48
Join Date: Jan 2006
Rep Power: 0 tejus is on a distinguished road

IM:
Default Fixing Corrupted Download Files

Large downloads often seem to become corrupted due to one or more of the following reasons:

* Bug in the download manager.
* Bad proxy server.
* Bad web server.
* Problems with your own computer.

Re-downloading corrupted files, specially those sized over 500 MB are really painful for most of us. And there is no guarantee that the re-downloaded file will be free of corruption as far as you are using the same configuration.

In such cases, its best to fix them manually instead of downloading again. The whole process is very simple, but requries enough concentration. Once you have mastered it, you will never have to worry about corrupted files.



Tools Required:

* WinHex http://www.winhex.com/winhex.zip
* CURL http://curl.haxx.se/latest.cgi?curl=win32-nossl-sspi

Steps required in brief:

* Make a backup copy of the corrupted file and open it with WinHex.
* Identify corrupted segments. Large sequences of zeros are all we have to search for in most cases.
* Re-download the corrupted segments with CURL.
* Write the retrieved data on appropiate offsets.

Now, Let Us Look at a step By step Example:

Let us assume that we have a corrupted file named corrupted.rar. We open it WinHex, and do the following things:


* Switch the offset representation from hex to decimal by clicking once on the offset area.




* Now we search for corrupted segments. Most of the time they will be sequences of zeros. As we can see from the first bytes of the opened file, it's a rar file. Files we download over the Internet are mostly compressed formats. By design, a fresh file should not contain sequences of zeros or other repeating bytes after the header part. So, we scroll a few pages down.




# Now we start searching for such sequences with CTRL+ALT+F.




# The search takes us to a place where we can see some zeros and repeating bytes. Surely this is one of the corrupted segments.






So, now we have to download the missing data using CURL. It's always a good idea to retrieve the data with some margin. In our case, we get the bytes from 01094304 to 01094512 in order to cover the screenshot size. In real case it should be even higher. So, we start command prompt and issue the command "curl -r 1094304-1094512 http://badserver.com/mygoodfile.rar" target="_blank">http://badserver.com/mygoodfile.rar -o 01094304.bin" to download the mentioned segment of the original file, and save it to a file named 01094304.bin. For details, curl manual can help. After it's done, curl will terminate and we will have our file 01094304.bin right inside CURL's folder.]

Continued in the Next Post..
tejus is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
   


   
Old 03-Jan-2006, 09:45 AM   #2 (permalink)
Learning to Fix Error!
 
tejus's Avatar

Posts: 48
Join Date: Jan 2006
Rep Power: 0 tejus is on a distinguished road

IM:
Default Re: Fixing Corrupted Download Files

Continuing the rest here



# Now we open the downloaded segment 01094304.bin with WinHex.

# Copy the whole file with CTRL+A -> CTRL+C.



# Switch back to our corrupted file and go to the starting offset of our retrieved segment. CTRL+G -> 01094304




Now press CTRL+B to write the copied data over this offset. It is very important to determine correct offset. One offset left or right can ruin everything. Our retrieved segment starts with 18 1E BD 3D, and the offset we are going to write here also starts with 18 1E BD 3D.





* After we are done, we save the file using CTRL+S. For larger files, it is better to switch the edit mode to in-place mode. F6 -> In-place mode.


Now we can see that the corrupted part has been filled with original data, and it's fixed. In this example we had only of such segment. But in real cases, there might be several segments like this. In that case the whole procedure is to be repeated for each corrupted segment. Also note that, the length of zero sequences to find for can be chosen to be smaller or larger than the length used here.
tejus is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 04-Jan-2006, 11:43 PM   #3 (permalink)
Fixed Error!
 
***ALLWIN***'s Avatar

Age: 25
Posts: 131
Location: ***INDIA***
Join Date: Nov 2005
Rep Power: 4 ***ALLWIN*** will become famous soon enough

IM: Send a message via MSN to ***ALLWIN*** Send a message via Yahoo to ***ALLWIN***
Default Re: Fixing Corrupted Download Files

very nice tut ........very useful
***ALLWIN*** is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 05-Jan-2006, 05:32 PM   #4 (permalink)
Learning to Fix Error!
 
tejus's Avatar

Posts: 48
Join Date: Jan 2006
Rep Power: 0 tejus is on a distinguished road

IM:
Default Re: Fixing Corrupted Download Files

Thanks Allwin!! Good that you found it worthwhile..
tejus is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-Jan-2006, 05:57 AM   #5 (permalink)
Fix my Error!
 
hilux's Avatar

Posts: 4
Join Date: Jan 2006
Rep Power: 0 hilux is on a distinguished road

IM:
Default Re: Fixing Corrupted Download Files

I will try this, Thankyou
hilux is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 09-Feb-2006, 12:28 AM   #6 (permalink)
Fix my Error!
 
nzindiboy's Avatar

Posts: 7
Join Date: Feb 2006
Rep Power: 0 nzindiboy is on a distinguished road

IM:
Default Re: Fixing Corrupted Download Files

very nice.
This is a must have thats for sure mate.
Many thanks
nzindiboy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 31-Jul-2006, 08:55 AM   #7 (permalink)
Fix my Error!
 
DEXTER77's Avatar

Posts: 4
Location: Grave
Join Date: Mar 2006
Rep Power: 0 DEXTER77 is on a distinguished road

IM: Send a message via MSN to DEXTER77 Send a message via Yahoo to DEXTER77
Default Re: Fixing Corrupted Download Files

Nice, Thx
DEXTER77 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Post New Thread Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I download files while in sleep mode? Iphone Knowledge Base 1 11-Apr-2007 02:26 AM
Where can I download free .bip / .csm / .bvh motion files ? Iphone PC Games Error ! 1 29-Mar-2007 02:59 AM
Canceling a copy / paste corrupted my files ps3cheats Microsoft Windows xp error 1 12-Mar-2007 12:50 AM
Rapidshare.com And Rapidshare.de, u can download 2 files at same time kingaff Programming tutorials 0 23-Feb-2007 07:41 AM
Fix Corrupted Files In Windows XP Anilrgowda Microsoft Windows xp error 0 12-Jan-2007 04:49 AM


All times are GMT -8. The time now is 08:38 PM.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

DMCA Policy

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111