


How to check for bad sectors on a hard drive from a computer
Aug 03, 2025 am 02:26 AMUse Windows Error Checking by right-clicking the drive, selecting Properties, going to Tools, and clicking Check to scan for bad sectors. 2. Run chkdsk C: /f /r in Command Prompt (Admin) to fix errors and locate bad sectors, scheduling it for restart if necessary. 3. Use third-party tools like CrystalDiskInfo or GSmartControl to monitor SMART data, checking attributes such as Reallocated Sector Count for early signs of failure. 4. On Linux, use sudo badblocks -v /dev/sdX to scan for bad blocks and sudo fsck -l bad-sectors.txt /dev/sdX to prevent the file system from using damaged areas, with regular checks recommended to prevent data loss due to physical drive wear.
To check for bad sectors on a hard drive from a computer, you can use built-in tools or third-party software depending on your operating system. Bad sectors are areas of the disk that can’t be read from or written to, and catching them early helps prevent data loss.

1. Use Windows Built-in Error Checking Tool
Windows includes a built-in utility that scans for and attempts to fix file system errors and bad sectors.
Steps:

- Open This PC (or My Computer).
- Right-click the drive you want to check and select Properties.
- Go to the Tools tab.
- Under Error checking, click Check.
- If prompted, choose to Scan drive (you may need to schedule the scan if the drive is in use).
- Wait for the scan to complete. Windows will report if any problems were found and fixed.
Note: This checks for both soft errors and bad sectors. If bad sectors are found, Windows marks them as unusable and tries to move data elsewhere.
2. Run CHKDSK from Command Prompt (Admin)
For more control, use the chkdsk
command in Command Prompt.

Steps:
Press Windows X and select Command Prompt (Admin) or Windows Terminal (Admin).
-
Type the following command and press Enter:
chkdsk C: /f /r
Replace
C:
with the drive letter you want to check./f
fixes errors on the drive./r
locates bad sectors and recovers readable information.
If the drive is in use (like the system drive), you’ll be asked to schedule the scan on the next restart. Type
Y
and restart your computer.
The process may take a long time, especially on large or slow drives.
3. Check SMART Data with Third-Party Tools
SMART (Self-Monitoring, Analysis, and Reporting Technology) data can warn you of impending drive failure, including bad sectors.
Popular free tools:
- CrystalDiskInfo (Windows)
- GSmartControl (Windows, macOS, Linux)
What to look for:
- Attributes like Reallocated Sector Count, Current Pending Sector Count, and Uncorrectable Sector Count.
- A non-zero value in these fields often indicates bad sectors or drive degradation.
These tools don’t fix issues but help detect early signs of hardware failure.
4. On Linux: Use badblocks
and fsck
Linux users can use command-line tools:
To scan for bad blocks:
sudo badblocks -v /dev/sdX > bad-sectors.txt
Replace
/dev/sdX
with your actual drive (e.g.,/dev/sda
).Then, integrate the results with
fsck
:sudo fsck -l bad-sectors.txt /dev/sdX
This tells the file system to avoid the problematic areas.
Keep in mind that while software can detect and work around bad sectors, they’re often a sign of physical wear. If you’re seeing many bad sectors, consider backing up your data immediately and replacing the drive. Regular checks can help catch problems before they lead to failure.
The above is the detailed content of How to check for bad sectors on a hard drive from a computer. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

This Google translate picture guide shows you how to translate text from an image. If you are looking for more computer tips and solutions, you can visit php.cn Software official website where you can also find some useful computer tools like php.cn

If your Windows 11/10 computer doesn’t automatically the latest versions of device drivers, you will need to manually install them. In this post, php.cn Software will show you 3 different methods to manually install drivers on your device.

This post delivered by php.cn official web page introduces three methods to improve microphone volume and boost its performance, in Control Panel, via Settings, and by Device Manager. Read the below content to view details.

This post includes answers for what is dxdiag, how to run dxdiag in Windows 10/11, DirectX Diagnostic Tool’s main functions, and how to update dxdiag.exe driver. php.cn Software also provides many other computer tips and solutions for users. You can

Have you ever wanted to adjust computer settings to fix some issues but suffered from Control Panel not opening? There is nothing more frustrating than this app not turning on, stopping you from viewing and changing system settings. In this post, mul

The operating system is the basic software for managing hardware resources, running programs, and providing user interaction interfaces. It coordinates the relationship between hardware and software and is responsible for memory allocation, device scheduling, file management and multitasking. Common systems include Windows (suitable for office and gaming), macOS (Apple devices, suitable for creative work), Linux (open source, suitable for developers), and Android/iOS (mobile device system). The choice of ordinary users depends on the usage scenario, such as software compatibility, security and customization requirements. How to view system information: Use winver command for Windows, click on the machine for macOS, use terminal commands for Linux, and find the phone in settings. The operating system is the underlying tool for daily use,

What is Dell Digital Locker? How to log into Dell Digital Locker? This post from php.cn provides answers. Besides, you can know how to use your Dell Digital Locker to find software products included with your Dell computer.

This essay summarized by php.cn Software mainly teaches you how to open Windows 11 Computer Management with Windows Search, Quick Link menu, Run dialog, command prompt, PowerShell, File Explorer, Control Panel, as well as a desktop shortcut.
