Sunday, February 5, 2023
Centos Debian Ubuntu

How to Check Bad Sectors or Bad Blocks on Hard Disk in Linux

Then scan your Linux disk drive to check for bad sectors/blocks by typing:

$ sudo badblocks -v /dev/sda10 > badsectors.txt


------------ Specifically for ext2/ext3/ext4 file-systems ------------ 
$ sudo e2fsck -l badsectors.txt /dev/sda10
------------ For other file-systems ------------ 
$ sudo fsck -l badsectors.txt /dev/sda10

Scan Bad Sectors on Linux Disk Using Smartmontools

------------ On Debian/Ubuntu based systems ------------ 
$ sudo apt-get install smartmontools
------------ On RHEL/CentOS based systems ------------ 
$ sudo yum install smartmontools
$ man smartctl
$ smartctl -h
$ sudo smartctl -H /dev/sda10
(Visited 135 times, 1 visits today)
Baca Juga :  Cara Install Git pada Ubuntu 20.04 / Debian 11

Similar Posts