There are many convenient graphical software for detection under Windows
You can use the default built-in tool for detection
1. View all hard drives
fdisk -l
2. Create a directory of scan results
mkdir /var/diskbad
3. Scan command
This program comes with most Linux distributions
The scan is for a specific hard drive or a partition (let’s scan a specific hard drive, for example /dev/sdd , instead of /dev/sdd1)
badblocks -v /dev/sdd >> /var/diskbad/res.txt
4. Possible error reports
badblocks: Value too large for defined data type invalid end block
If this happens, it means that the hard disk is larger, and you need to add parameter -b (change the size of the checked block, if it is still Report an error, continue to increase the value)
For example, for a 16T hard drive, the minimum value is 4096. The inspection will take a long time, please wait patiently.
badblocks -b 4096 -v /dev/sdd >> /var/diskbad/res.txt
5. You can view the results after the scan is completed
cat /var/diskbad/res.txt
Or download it and watch it