How to Remove Bad Sector From Hard Disk Using CMD

Abby Haines updated on Sep 16, 2019 to Resource | How-to Articles

Summary

Bad sectors on you hard disk prevent you from smoothly accessing your device and using the files. Luckily, you have the chance to repair bad sectors using CHKDSK command. If there is data loss on your disk after removing bad sectors from your hard disk using CMD, you can try EaseUS Data Recovery Wizard to recover your lost files.

All About Bad Sectors

A sector is a subdivision of a track (a circular path on the surface of a disk) on your hard disk that stores a fixed amount of data. A bad sector is a sector that appears to be defective and it won't respond to read or write operations. There are two types of bad sectors:

Physical Bad Sector (Hard Bad Sectors)

As the name indicates, physical bad sectors are caused by physical damage on the hard disk. This type of bad sectors cannot be repaired using CHKDSK or any other tools. If you want to continue using a hard disk with physical bad sectors, what you can do is to use some third-party tool to block these sectors on the hard disk and prevent the system and programs from visiting them.

Logical Bad Sector (Soft Bad Sectors)

Unlike physical bad sectors, logical bad sectors generally result from software errors like a sudden shutdown of your computer and virus attacks. In most of the cases, the operating system will mark a sector as bad when they try to read data from the sector and find the error-correcting code doesn't match the contents of it. Fortunately, logical bad sectors can be repaired using CHKDSK.

How to Repair Bad Sectors on Hard Disk Permanently Using CMD

If there are logical bad sectors on your hard disk, you can repair them using the CHKDSK command. CHKDSK is a Windows built-in utility used to check the integrity of the disk and fix the logical errors found, including bad sectors. Being able to repair hard disk bad sectors, it is your first choice to repair a corrupted hard drive.

To permanently remove bad sector from hard disk using cmd:

Step 1. Press the "Windows" key and type cmd.

Step 2. Right-click "Command Prompt" and choose "Run as administrator".

Step 3. In Command Prompt, enter the following command:

Click to copy

Notes: "E" is the drive letter of the disk you want to repair bad sectors from. The "/f" parameter tells CHKDSK to fix any errors it finds; "/r" tells it to locate the bad sectors on the drive and recover readable information; "/x" forces the drive to dismount before the process starts. 

If you don't want to perform the disk checking and repairing process in CMD, you can choose to use the disk check feature, which works the same as CHKDSK.

Step 1. Open "This PC", right-click the drive that has bad sectors and choose "Properties".

Step 2. Go to the "Tools" tab.

Step 3. Click "Check" to check and repair the bad sectors on your hard disk.

Repair bad sectors by checking disk

If you don't have any technical know-how and want to minimize data risks, using third-party software could be a better choice. The Command line is suitable for computer professionals since wrong commands can cause severe problems. Therefore, we strongly recommend you to try an automatic command line alternative.

EaseUS Tools M is a practical computer fixing tool that is safe and light-weighted. It's a perfect alternative to CHKDSK command. Use this one-click tool to solve your computer issues.

To fix file system error or disk error:

Step 1: DOWNLOAD EaseUS Tools M for Free and install it.

Step 2: Open the software and select "File Fixing" on the left pane. 

On the right pane, choose the drive and check off the box at the bottom - "Check and fix file system error". Then, click "Fix" to start repairing the error.

Step 3: Wait until the operation completes. Wait until the operation completes. After the operation completes, click the "View" button to check the drive. 

select the drive and check off file system error

Recover Data from the Hard Disk After Repairing Bad Sectors

If CHKDSK stuck and failed to remove any bad sector from the hard disk, or it deleted your data on the hard disk, you may need to perform data recovery from your storage medium. In such a case, the hard drive recovery software - EaseUS Data Recovery Wizard can help. 

Notice:
It's almost impossible to recover data from the bad sectors since they are inaccessible. However, data recovery software may be helpful if your device becomes inaccessible because of bad sectors.

Step 1. Select a location and start scanning.

Launch EaseUS Data Recovery Wizard, hover on the partition, external hard drive, USB, or memory card where you want to perform erased data recovery, and then click "Scan".

select a location and click scan

Step 2. Select the files you want to recover.

When the scanning has finished, select the deleted files you want to recover. Double-click the file to preview its content if you need to.

Choose files to recover

Step 3. Recover lost data.

After choosing the data, click "Recover" and choose a location on another drive to save the deleted data.

Recover lost data

The Bottom Line

Bad sectors are sections of your computer's hard drive that have been damaged and have lost the ability to save and store your data. And any data stored in a bad sector is likely to be lost. If you cannot open your files or programs properly, it is most possible that the hard disk might have filled with bad sectors which make your data unreadable or corrupt. To make your hard disk usable, you should remove bad sectors from hard disk using CHKDSK, which will repair the logical bad sectors and tell the system to jump over physical bad sectors.

 
 

100% of people found this article helpful.

 

Frequently Asked Questions

1. Why choose EaseUS Data Recovery Wizard?

"EaseUS Data Recovery Wizard is the best we've seen. It's far from perfect, partly because today's advanced disk technology makes data-recovery more difficult than it was with the simpler technology of the past, but it's fast and efficient..."PCMag

"The first thing you'll notice about EaseUS Data Recovery Wizard Pro is that its interface is very clear and uncluttered, with only a small collection of self-explanatory controls. You won't find lots of extra options hidden in a system of hidden menus, either; what you see really is what you get."techradar

"Recover lost files, even after deleting a partition or formatting your drive."Macworld

2. Why cannot I recover 2GB data for free?

It is recommended to check the version installed is Free or Trial because they are different versions.

Trial has data preview function but cannot save any files, while the Free version enables to recover 2 GB files. The default free space is 500 MB and you may share the product on social media to get another 1.5 GB.

3. Why cannot the recovered files be opened?

A file is saved as 2 parts on the storage device: directory info (which is comprised by file name, time stamp and size info, etc.) and data content.

If the files with original file names and folder structures cannot be opened, one possible reason is the corrupted directory info. There is still a chance to recover the data content with the RAW Recovery method in our software.

4. Why isn't it suggested to recover the files back to the original drive?

The storage structure of the lost files would be altered or damaged by any changes on the drive. If you save the recovered files back to the same drive, the original data structures and data content would be corrupted or overwritten, which causes permanent data loss. So you should prepare another disk to save the files.

5. How can I check whether my data is recoverable or not before purchase?

The Free version helps you save 2GB files to better verify the recovery quality of our product before purchase.

6. How long does it take to scan the drive?

It strongly depends on the capacity of your hard drive and the performance of your computer. As reference,most drive recoveries can be completed in around 10 to 12 hours for a 1-TB healthy hard drive in general conditions.

About Data Recovery Wizard

It's super easy to recover 250+ types of files after deletion, disk formatting and virus infection. Click the links and compare the difference of each version.