Tuesday, September 24, 2024
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

\"Scan

------------ Specifically for ext2/ext3/ext4 file-systems ------------ 
$ sudo e2fsck -l badsectors.txt /dev/sda10
OR
------------ 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
\"Check
(Visited 225 times, 1 visits today)
Baca Juga :  Install Gitlab pada Ubuntu 20.04 LTS

Similar Posts