Are you suffering from the BSOD error or other machine issues?
your machine has probably become corrupted, leading to a system crash and data loss.
ThisMiniToolpost shows specific steps to fix corrupted hard drive using CMD and recover data from the corrupted hard drive.

It is a common issue that people fail to start their computers normally.
Since there should be numerous files on your machine, using professionalbackup softwareis time-saving and secure.
MiniTool ShadowMaker works well inbacking up files, folders, partitions, and disks.

MiniTool ShadowMaker Trial allows you to enjoy a 30-day free trial.
you could enjoy the backup features with this edition.
If dont know, you’re able to read this post and try the methods here.
![]()
Afterentering WinRE, you better chooseTroubleshoot>Advanced options>Command Prompt.
In the following interface, choose an account and input the correct password to open Command Prompt.
#1. execute the CHKDSK Command
The file system is the way that the computer organizes files.

TheCHKDSKutility can detect and fix file system errors and keep your system data well-organized.
Here is how to use CHKDSK to repair disk.
If you launch Command Prompt via Windows Recovery Environment, you could start with Step 3 directly.

Step 1: PressWin + Rto bring up the Run window.
Step 2: Typecmdinto the box and pressShift + Ctrl + Enterto run Command Prompt as administrator.
Step 3: TypeCHKDSK x: /fand hitEnter.
![]()
This post explains two methods to help you resolve this problem.
you’re free to launch the SFC and DISM command lines to find and repair corrupted system files.
Step 2: Typesfc /scannowand pressEnterto execute this command.

Step 3: Wait for the process to complete.
TypeDISM /Online /Cleanup-Image /Restorehealth
and hitEnter.
DiskPart is used to partition, format, create, or resize a partition or to complete other operations.

Here are the specific steps to fix corrupted hard drive using CMD.
Step 1:Run Command Prompt as administrator.
Step 2: jot down the following command lines and hitEnterat the end of each one.

Bottom Line
After reading this post, hope you know how to repair hard disk using CMD.
Different command lines have different functions in repairing a corrupted hard drive.
you should probably be careful when running command lines.
The most important thing is to ensure the security of data on this corrupted hard drive.
you’ve got the option to run MiniTool Power Data Recovery to retrieve files from it.
The best way to ensure data security is to back them up periodically since data loss always happens unexpectedly.