Utility For Checking/Repairing Bad Blocks on a Hard Disk Drive?

I am using openSUSE Leap 42.1, 64-bit.
Is there a utility that could check and repair bad blocks on my HDD?

Try fsck --help

On 11/13/2015 at 1:46:01 PM Sauerland wrote:

>
> tb75252;2737322 Wrote:
> > I am using openSUSE Leap 42.1, 64-bit.
> > Is there a utility that could check and repair bad blocks on my HDD?
> Try fsck --help

Thanks.

I did read fsck --help. It appears to me that the correct command to
issue is “fsck -aA” (w/o quotes) while being logged in as Root.

But how will fsck check the whole sda HDD if it is mounted?


tb

You can try to boot in a single-user mode to do the fsck.
In the grub2 boot screen press the

e

Find the linux kernel parameter and at the end of it
add the word

single

and press F10
at the end of the boot process read the texts(dialog)
on what to do next for you to decide.

I mean recovery mode.

You have top point the fsck to the partition you want to check. But that onl;y check the file system not the actual sectors

Also smartctrl does a lower level check. If the drive is not repairing the bad sectors you have run out of spares and the drive is toast. backup and replace ASAP