aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Repairing corrupted parts.  (Read 3872 times)

Ptero-4

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Repairing corrupted parts.
« on: April 22, 2005, 06:56:57 AM »

Hi. I'm currently downloading the ************************** and I noticed that it told me that the part 53 of one of the first chunks was corrupted and then at the next day it said that the part 38 of another chunk was corrupted as well. I read in the docs that aMule divides the downloaded file in "chunks" which represent 9.28MB of the file and then subdivides each chunk in 53 parts of 180kb. Now I got some questions:
1. What happens if a part is downloaded corrupt and aMule is closed before it has recovered that part?

2. Why if a chunk contains 53 parts. I was told that the part 68 was downloaded corrupt?

3. I read that aMule does a hash check when the download is complete. Is there any option in aMule or any external way to force aMule to redownload the corrupted chunks/parts of the file?

Thanks in advance.

P.D: I'm a unemployed student trying to grab a copy of ************ to upgrade my 5 yr old ******** which came with **********. I currently have Ubuntu installed, but I don't like it's interface (neither GNOME, nor KDE, let alone xfce). And sincerelly prefer *****, but need the new version to have better compatibility and *******, built-in themeing (******** and earlier lacked of a good theme engine) and all those productivity-increasing tools that are exclusive of *******.

EDIT: Do NEVER ever TALK about what you download!! -- The Management
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Repairing corrupted parts.
« Reply #1 on: April 22, 2005, 08:00:47 AM »

hey

amule will always rehash every singel part you download and also the whole file when its done.
so when a part is marked corrupt, then amule will sooner or later start to redownload that part aswell, till the whole file is done.
so dont worry about it ;)
but if you want a better corrupt parts handling, you can try current cvs...
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

toshi

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 67
Re: Repairing corrupted parts.
« Reply #2 on: April 22, 2005, 02:49:16 PM »

By the way, one more chunks related question.
When I was downloading a big ISO (about 3.6 gb), in file info aMule showed that there are more than 400 parts of the file, but it always showed that there's totally ~15% of all chunks aviable to download. The queue was full of full sources... Is it OK?..
Logged
God is real, unless declared as integer...

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: Repairing corrupted parts.
« Reply #3 on: April 23, 2005, 05:52:47 AM »

Maybe the file is cnot complete anywhere on the network?

Regards
Logged

DarkAvenger

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
    • http://darkav.de.vu
Re: Repairing corrupted parts.
« Reply #4 on: June 21, 2005, 09:29:39 AM »

I have a q regarding correction of corrupted parts:

I had some hard lockups (not aMule realted) recently and as such slight data corruption of currently writingly accessed files and as such amule downloads.

Should amule correct this automatically? I am just wondering as some recently finished downloads show corruptions (CRC errors in archives, glitches in videos). Of course I am not sure whether the source is already corrupted.

If I readd the downloaded files to the shares, aMule calculates thje same fileid though (is it cached somewhere? So in case Amule thinks it knows this dile already and doesn't calculate its id?) Can I calculate the id by hand, just to be sure?

Thx.
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Repairing corrupted parts.
« Reply #5 on: June 21, 2005, 09:54:03 AM »

amule will check when a file is complete the md5sum it should have with the md5sum of the finished file...and if those are not ok, the file will not finish and amule will look for hte corrupt part and redownload it.

a tool for calculating hte md5sum without amule would be alc or alcc, they should be under
src/utils/
in the amule folder...they are not compiled by default btw

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

DarkAvenger

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
    • http://darkav.de.vu
Re: Repairing corrupted parts.
« Reply #6 on: June 21, 2005, 10:05:07 AM »

Thanks, so I tried it and it seems the sources are corrupt already, as alc calcs the same ids.

(BTW, it seems to be md4 not md5, as md5sum returns some other value...)
« Last Edit: June 21, 2005, 10:05:27 AM by DarkAvenger »
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Repairing corrupted parts.
« Reply #7 on: June 21, 2005, 11:03:02 AM »

yes md4 sorry my bad
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."