Проверка диска на битые секторы в Linux
Для определения диска используем команды: sudo fdisk -l, либо blkid, затем вводим:
sudo e2fsck -vccky /dev/sdb1
Где:
v — Verbose mode.
cc — This option causes e2fsck to use badblocks(8) program to do a read-only scan of the device in order to find any bad blocks. If any bad blocks are found, they are added to the bad block inode to prevent them from being allocated to a file or directory. If this option is specified twice, then the bad block scan will be done using a non-destructive read-write test.
k — When combined with the -c option, any existing bad blocks in the bad blocks list are preserved, and any new bad blocks found by running badblocks(8) will be added to the existing bad blocks list.
y — Если добавить y, то автоматом будет отвечать yes для устранения ошибок.
/dev/sdb1 — проверяемый диск