"Disk is OK, 113 bad sectors" [duplicate]
Solution 1:
With bad sectors, you should always immediately backup all important information and get a new hard drive. You can theoretically mark these sectors as "bad" and tell the computer not to use them. However, this is not at all recommended as bad sectors like spreading like a fungus.
If you want to try this, instructions are below.
- Find your hard drive with
lsblk
. Find the EXT partition mounted at/
. - Remember the code. It should look something like
/dev/sda1
. - Strip the number off the code you got earlier. If you had
/dev/sda1
, your code is now/dev/sda
. - Run this command:
sudo badblocks /dev/sdc > /home/$USER/bad-blocks
- Run this command:
sudo fsck -l bad-blocks /dev/sdc
- While running the above commands, go take a walk. Do not touch your computer.
Disclaimer: I am not responsible for any loss of data or system damage that has resulted from the above commands, both instant and in the future. I hold no responsibility for what you type into your terminal. You have been warned.