aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: Fixing corrupt file  (Read 5552 times)

jhoderd

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Fixing corrupt file
« on: August 21, 2006, 10:07:24 AM »

Hi,

Here's the story: some time ago I downloaded one very large file using aMule.
The file was burnt to a CD, together with its MD5.  Now I need this file, but
md5sum tells me it has been corrupted somehow (bad CD?).

The original version is available on the ed2k network, but I don't want to
download the whole thing again.  For all I know, it might have been just
a single bit that flipped!

Is there anyway to tell aMule, "look, the proper ED2K-MD4 of this file is X.
Check which parts are corrupted and download only those." ?

Thanks for your help!
Jean
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Fixing corrupt file
« Reply #1 on: August 21, 2006, 01:17:26 PM »

1) Start the download.
2) Check which .part file matches this download (right click will tell you)
3) Wait till you receive some bytes.
4) Close amule.
5) Overwrite the .part file with your full file
6) Start aMule
7) ???
8) Profit!
Logged

jhoderd

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Well...
« Reply #2 on: August 21, 2006, 06:00:27 PM »

Hi,

I thought of that, but wouldn't the metadata in the new .part file
say that most of the file needs to be downloaded?

Thanks for the effort, but somehow I don't think your solution
would work...

Cheers,
Jean
Logged

lionel77

  • Provider of Mac builds, Forum Mod
  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1107
  • Mac OS X 10.4 (Power Mac G5)
Re: Fixing corrupt file
« Reply #3 on: August 21, 2006, 10:59:17 PM »

Just as a general rule, when it comes to aMule related stuff, this Kry person actually knows what he is talking about.

If you do what he described, aMule will recheck the .part file and successively recover all the complete/non-corrupt chunks.
Logged
Current aMule CVS builds for OS X can be found here.

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Fixing corrupt file
« Reply #4 on: August 21, 2006, 11:22:47 PM »

Quote
thought of that, but wouldn't the metadata in the new .part file
say that most of the file needs to be downloaded?
Sure, it would say that.

Quote
Thanks for the effort, but somehow I don't think your solution
would work...
It would work, because the .part file date wouldn't match with the date saved in the metadata (.met) file, so aMule rechecks the whole file and updates the metadata accordingly. Note, that it is important to have some bytes downloaded before you replace the .part file with your "almost complete" file.
Logged
concordia cum veritate

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
RE: Well...
« Reply #5 on: August 22, 2006, 05:26:30 AM »

Quote
Originally posted by jhoderd
Hi,

I thought of that, but wouldn't the metadata in the new .part file
say that most of the file needs to be downloaded?

Thanks for the effort, but somehow I don't think your solution
would work...

Cheers,
Jean

In the name of fucking God, why does my fucking forum title read " Main Developer / Admin" if not to make perfectly clear that I KNOW WHAT I'M TALKING ABOUT?

Sheeeesh.
Logged

pleur

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 27
RE: Well...
« Reply #6 on: August 22, 2006, 12:47:10 PM »

Quote
Originally posted by Kry
(...)
In the name of fucking God, why does my fucking forum title read " Main Developer / Admin" if not to make perfectly clear that I KNOW WHAT I'M TALKING ABOUT?

Sheeeesh.

yeah, i suppuse you don't know enough about the program to know what you are talking about  :P
Logged
Hoe liev ben jij vandaag?

jhoderd

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
aMule is smarter than I thought...
« Reply #7 on: August 22, 2006, 04:47:06 PM »

Hey,

My humble apologies Kry; I will now try the solution you suggested.
I didn't think it would work because I did not know that aMule was
smart enough to recheck the part file if there was a discrepancy in
the timestamps.  Cheers for that, and thanks again!

Cheers,
Jean
Logged

jhoderd

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Alas, it does not work
« Reply #8 on: August 22, 2006, 05:28:59 PM »

Hey again,

Kry, I tried your method and it did not work. I touched the overwritten .part
files to make sure they were newer than the corresponding .met, and still aMule
would not recheck the files at startup.

Is this a version thing?  I am running aMule 2.1.0 (Kubuntu Dapper packages).
From which version is aMule smart enough to do as you say?

Cheers,
Jean
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Fixing corrupt file
« Reply #9 on: August 22, 2006, 05:32:35 PM »

Did you let aMule download some of the file as we told you to do?
Logged

jhoderd

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Yeap
« Reply #10 on: August 22, 2006, 05:47:31 PM »

Hey,

Of course!  I even got distracted and let it download 2.38 MB.

Cheers,
Jean
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Fixing corrupt file
« Reply #11 on: August 22, 2006, 06:55:02 PM »

For some reason you didn't receive a hashset then, if you did everything right. If you download a full part (9.28MB), you will get one for sure.
Logged

jhoderd

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Okay
« Reply #12 on: August 22, 2006, 07:30:21 PM »

Hi again,

Okay, I'll try downloading a full chunk and then see if the trick works...
I'll keep you posted!

Cheers,
Jean
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Fixing corrupt file
« Reply #13 on: August 23, 2006, 05:51:08 AM »

Part. A part is 9.28MB, a chunk is 3*128kb
Logged

jhoderd

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Does not work
« Reply #14 on: August 23, 2006, 01:10:09 PM »

Hi,

Well, I'm pretty sure that aMule has downloaded at least one full part by now,
but still your suggestion does not work.  Here's what I do:

a) Kill aMule
b) touch xxx.part
c) Restart aMule

Now, am I missing something?

Cheers,
Jean
Logged
Pages: [1] 2