Author: Gregory Nowak Date: To: golinux CC: Dng Subject: Re: [DNG] Can this drive be saved?
On Sat, Aug 29, 2020 at 04:35:01PM -0500, golinux@??? wrote: > What are the chances of fsck repairing the bad sectors? I shamefully admit I
> have not thought about fsck for years.
This looks to be at the media level, so is most likely beyond
fsck. Since you said you can afford to lose this drive's contents, I
would suggest using dd to fill the drive with zeros:
dd if=/dev/zero of=/dev/sdx
where /dev/sdx is the designation for your drive. This might cause the
drive to reallocate the bad sector, or to mark the bad sector as good
again. Then, run a SMART test on the drive again. If it still fails,
then that drive probably can't be fixed. If the SMART test passes this
time, you can restore your backups on to it and keep using it. If you
do that, be very sure to sync that drive with your other backups
frequently, and don't rely on it exclusively.
If you don't want to wait for dd to write the entire drive, you can try
following this tutorial instead: