My laptop's hard drive is failing, so I deleted the hard drive and tried to re-install Windows 8.1. It gave me the error code 0x8007045D, so I asked a question and got help to try and fix it with the command prompt. I want to do a chkdsk to see if I can repair the hard drive. How do I do this?
Here's how to do it from the installation media:
DISKPARTLIST VOL to list volumes available to check.EXIT once to exit diskpart.CHKDSK D: /X substituting D with your drive letter.LIST DISK to find your disk numberSEL DISK 0 to select disk 0. Replace 0 with the number of your disk.CRE PAR PRI to create a primary partitionFOR FS=NTFS LABEL="Local Disk" QUICK to format the partition quickly as NTFS.ASSIGN to assign the partition a volume mount point, or drive letter.LIST VOL to list volumes available to check.EXIT once to exit diskpart.CHKDSK D: /X substituting D with your drive letter.BEWARE that CHKDSK will attempt repairs by writing over the damaged block, and mark it as useless.
CHKDSK is intended to detect and fix errors on a disk / partition. You can open a command prompt and type CHKDSK /? to get a description of the syntax. The re-install of Windows would have done the same thing as a CHKDSK i.e. cleaned up unreadable sectors of the disk. In your case, I am guessing you only have one partition - i.e. the system partition C that you just re-installed Windows 8.1 on. If this is correct, you may be able to run CHKDSK C: /F - there is no need to run diskpart.
HOWEVER:
If your drive is failing, CHKDSK will NOT be able to help you: it MIGHT postpone the inevitable demise of your drive. Since you have just re-installed Windows, I am guessing there are few if any user files on your system which makes this the ideal time to purchase a new drive and re-install Windows on that new, clean drive. If you continue with the current, faulty drive, it is only a matter of time until it fails completely and takes any and all user data files with it.
Chkdsk can not solve your falling hard drive. I suggest that you back up all your files while you can then, look for a replacement.
User contributions licensed under CC BY-SA 3.0