View Full Version : HOWTO: fix broken corrupt files with BitTorrent


OneOfOne
lately i've been downloading movies from http source and thanks to the lovely power grad and lovely connection around here i had alot of corrupted parts, so i decided to fix them.
i tried edonkey but it was pretty much useless, and mldonkey with the same result.
then i found BT (http://bitconjurer.org/BitTorrent/download.html) , it was the answer to my prayers!!
those steps apply to anything you can find a working .torrent for.
1. get BitTorrent (well, duh :p)
2. google for the torrent you need for the broken file, most distros now offer torrent files.
3. use btshowmetainfo.py to check for the exact folder name/file names and make sure your broken file matches those names, if you sure it's the same file then just rename your files to match the torrent's names.
4. start BT and thank me later :p
ps on slow/old/unoptimized harddisks hashing could take a while.
--demo--
[05:57:25][~] -> btshowmetainfo.py some.iso.torrent
btshowmetainfo 20030621 - decode BitTorrent metainfo files

metainfo file.: some.iso.torrent
info hash.....: 890575206d392a77128ce7ada3f6332e6cb5ec74
directory name: Download_folder/ <<----notice the folder name, some torrents wont have a folder, just files.
files.........:
some.cd1.iso (734461952)
some.cd2.iso (731244544)
archive size..: 1465706496 (1397 * 1048576 + 845824)
announce url..: http://xxx.xxx.xxx.xxx:6969/announce
[05:57:25][~] -> mkdir Download_folder/
[05:57:25][~] -> cp -au /path/to/corrupt/some.cd*.iso Download_folder/
[05:57:25][~] -> btdownloadcurses.py some.iso.torrent (gonna start a ncurses-based gui)

ps it's a bad idea to download it from scratch using BT since BT is very anti-dialup:rolleyes:
peace

sattia
actually ur case reminded me of what happened to when a link failure happens while downloading from Mozilla with no download accel at all

Using the following facts I was able to resume:
1 - Mozilla downloads ur file as a temporary file in /tmp regardless of where it will go
2 - It names the file with random characters while in /tmp but they end with .exe ???!!!!!
3 - Notice the size of the downloaded file or use file to help u decide which one is urs in case u ve more than one #$@#$.exe files
4 - move it to where u like it to be then rename it to a human readable name but dnt forget to suffix it with .part.
For exmaple if it is /tmp/acvbfgshe.exe then move it to /path/to/other/dir/filename.ext.part
5 - Using Konqueror do again with the download process and then tell it to resume

Congrats ur now resuming

OneOfOne
well, i wasn't talking about resuming here.
i'm talking about downloading a 400mb file to find out that some random parts of it are corrupt and you can't run it.
i downloaded 1.5gb movie and it kept crashing xine because of of random corrupt parts (thank God for mplayer).
i use prozilla btw, but when the power goes off or i get disconnected some parts get corrupted.

peace

habdin
Salamo 3alaikom,

Irrelevant and kidding reply:

Buy a UPS ya OneofOne.

Salam.

OneOfOne
lol yeah gonna get one soon, i want one that lasts about 30mins.

peace

MaherG
I want a DSL !