VOGONS


First post, by Geri

User metadata
Rank Member
Rank
Member

Weakblocks is a HDD slow sector detector program.

Weakblocks is an ACTUALLY working AND fast automated alternative to badblocks and to fsck's -cc flag to 'fix' modern consumer disk drives with weak (may or may not defective) sectors, when your drive producing multiple second hangs. For example if the drive fell down and can access some of the disk area very slowly, drive overheated and the cylinder lost its magnetization on various locations, some tracks disintegrated, etc, weakblocks will be able to list these weak sectors, and you can strip them out from the file system. Weakblocks will reliably detect the weak, slow, and bad blocks on your HDD, SSD, and create an fsck-compatible badblocks list of them. This allows you to use your very slow low condition disk again, after using the bad block list in fsck, and filtering them out from the file system. This software will also automatically fast forward bad block detection, auto-skip large and damaged disk portions.

The first build of weakblocks is originally meant to be used on the WDC WD60EZRZ drive and its clones. Later on, i will create more builds, targetting different disk types. This version will work, but will probably not be optimal for different disk devices.

USE THIS PROGRAM AT YOUR OWN RISK!
Donations welcome:
BCH/BTC: 1BjbXHdRToPvdwQS1og9kyhF7paFiA4KtT
DOGE: DLgGAN7tD2ZH6n2zPbNzp3NFmAiXHDiqng

Before using this tool, turn off and down your computer. Exit every program that would do any disk activity in your system. Its optimal not to mount the file system (but will work on mounted file systems as well).

Usage:

weakblocks /dev/sdx9 listofblocks.txt

To DESTROY, ERASE and CREATE a new file system with bad blocks filtered from the system on your partition:
mkfs.ext4-type -l listofblocks.txt /dev/sdx9

To PRESERVE YOUR DATA, update bad block list on an existing partition:
e2fsck -f -k -L listofblocks.txt -t -v /dev/sdx9

Attachments

TitaniumGL the OpenGL to D3D wrapper:
http://users.atw.hu/titaniumgl/index.html

Reply 1 of 2, by pentiumspeed

User metadata
Rank l33t
Rank
l33t

*Not recommended*. Comes from experience in repair field and personal use.

What current drives that has SMART built in from the beginning, now what hard drive's microcontroller does is detects the uncorrectable sector (happens during read and writes), will also attempts to recover the defective sector data (via ECC correction) and copy to new sector and remap the internal address table to point to a new sector automatically transparently which is one layer below the OS's MBR partiton or GPT partition layer therefore not noticed. When that happens, the error data is updated in the SMART log onboard the hard drive's itself. You check the SMART status using a small program that ideally does not check the surface or speed test eg CrystalDisk (not ideal). Gsmartcontrol is one of best example of this.

Data recovery sure.

Other than that, you don't need that utility. This taking time to "repair" and get it working right takes hours and that is pointless since hard drive keeps dying and creates new uncorrectable sectors, which is not what you DO during data recovery.

What we do is attempt is recover the data only straight away by merely copying the data to another storage, (in shortest time possible), ignoring the windows installation, programs and apps. With few exception if must recover a very special program, sure but priority is find a intact program if you can.

Running a good OS with a powerful partition type that does have multiple backups of partition tables for example GPT, Linux etc. MBR is very weak as it only have one partition table data in few sectors.

And we always try to check storage's health via SMART and if found any issues, we disqualify just the storage from the warranty status in the work order on customer's device under repair. This way if device comes back and found that hard drive finally failed, then we have proof that it is the hard drive and customer has to pay the repair instead of warranty.

By adopting this attitude we found that this saved time and lessens customer frustrations. Second, data is the top-tier status over all above. Means the storage, device itself and anything of boards, even phone or computer etc is expendable. Costly yes but data is too important.

Cheers,

Great Northern aka Canada.

Reply 2 of 2, by Geri

User metadata
Rank Member
Rank
Member

This is not a data recovery tool or a tool for storage facilities, i hope you didnt came to that conclusion by reading the description. If your hdd has warranty or you have unlimited money, you can send it back to warranty or buy a new one, too bad these drives will typically shat themself 2 weeks right after the warranty expires.

Also wd60ezrx doesnt relocates weak sectors as you assumed, for example mine managed to relocate 277 dead blocks from the total 2 million weak blocks, and this is a consumer drive not an enterprise drive you cant even set tlerc and every possibly smart functionality is disabled from the firmware.

TitaniumGL the OpenGL to D3D wrapper:
http://users.atw.hu/titaniumgl/index.html