Command Prompt to Repair Disk

Page 1 of 2 12 LastLast

  1. Ver
    Posts : 13
    Windows 10 Pro
       #1

    Command Prompt to Repair Disk


    I found this page when searching for a solution to my BSOD:

    Can you open Elevated Command Prompt from Command Prompt?

    I started following zbook's instructions but got immediately confused because for the C Directory it showed my D drive (which I read elsewhere is to be expected) but then the D Directory is not my C drive so I stopped, created an account, and here I am. If booting from a USB are these directions applicable?
      My Computer

  2. Caledon Ken's Avatar
    Posts : 24,242
    Windows 10 Pro x64 Version 2004
       #2

    It should work.

    What drive was identified when you ran command

    bcdedit | find “osdevice”

    provided by spunk.
      My Computer


  3. Ver
    Posts : 13
    Windows 10 Pro
    Thread Starter
       #3

    No drive was recognized. I assumed to leave it on D: and this is what it says:

    D:\>bcdedit /enum
    The boot configuration data store could not be opened.
    The requested system device cannot be found.

    D:\>bcdedit |find"osdevice"
    'find"osdevice"' is not recognized as an internal or external command, operable program or batch file.

    - - - Updated - - -

    So I went ahead and proceeded with zbook's steps. I've pasted the steps I'm now stuck at. I don't have any volumes that display RAW as per step #21, so I don't have a drive letter to enter for step #24.

    21) type: list volume
    (look in the column Fs for any volume that displays RAW instead of NTFS)
    22) type: list partition
    23) type: exit
    24) type: chkdsk /f /r G: (change G to the drive letter of the volume displaying RAW)
    It may display "The first NTFS boot sector is unreadable or corrupt."
    This may then convert the RAW volume to NTFS.
      My Computer

  4. spunk's Avatar
    Posts : 2,842
    Windows 10 Pro 64 Bit 20H2
       #4

    D:\>bcdedit |find"osdevice"
    The Command should be
    D:\>bcdedit |find "osdevice"
    there is no space between the Pipe | (the upper case \ key) and the word Find. There is a space between Find and "osdevice"
    You can also type a drive letter (ie) D: and press Enter (ie) D:\> then type DIR and press Enter this will show the files in the Directory. If any of the files are Windows, then you are in the Right drive. If no Windows, then type E: and press enter, and so on.
    Once you know you are in the right drive, then you can try some troubleshooting. Let's say Windows is on D:
    At the D:\> prompt type chkdsk /R and press enter. This will go thru 5 stages and will take a while. If it takes overnight, then the HDD is beginning to fail and should be replaced.
      My Computer


  5. Ver
    Posts : 13
    Windows 10 Pro
    Thread Starter
       #5

    I have four HDD in my pc so I was having a hard time figuring out which one to run chkdsk on, so I unplugged three at a time. On the second attempt, I guessed it was C and ran chkdsk, but it said "Chkdsk Cannot Run Because the Volume Is in Use by another Process. Would you like to force a dismount on this volume windows 10?" I was searching for what that meant and I found I could identify the correct drive letter for my Windows installation by typing:
    dir C:\Win*
    dir D:\Win*
    dir E:\Win*
    until I found the Windows folder.
    Upon restarting to try and do that, everything came backup like normal.

    Is there something else I should/could run now to see if one of my HDD is failing?

    Btw, thank you so much for your assistance.
      My Computer

  6. Caledon Ken's Avatar
    Posts : 24,242
    Windows 10 Pro x64 Version 2004
       #6

    At a physical level


    Please install Crystal Disk Info Standard edition

    CrystalDiskInfo – Crystal Dew World

    Once installed click on "Function" tab > Advance Feature > Raw Values > 10[Dec]

    This presents error values in decimal amounts.

    What is the overall health status of boot disk? Are any of the categories showing a warning? Are you getting seek, write or read errors? Have you gotten any "Reallocated Sectors"?
      My Computer


  7. Ver
    Posts : 13
    Windows 10 Pro
    Thread Starter
       #7

    Wow! Thanks. Clearly I'm having problems. I've attached a picture. My C Drive (with Windows) is Yellow. That's the one I included as a picture. V Drive is storage. I'm assuming I should replace my C Drive.

    Command Prompt to Repair Disk-crystal_c.jpg
      My Computer

  8. Bree's Avatar
    Posts : 18,733
    10 Home x64 (20H2) (10 Pro on 2nd pc)
       #8

    Ver said:
    Wow! Thanks. Clearly I'm having problems. I've attached a picture. My C Drive (with Windows) is Yellow. I'm assuming I should replace my C Drive.

    You have just one Reallocated Sector and 16 Current Pending Sectors. That does not of itself mean the drive has to be replaced immediately, but it needs watching closely. Should either of those counts increase then it is a probable sign of immanent failure. However, your 51,589 powered on hours (nearly 6 years) suggests it's near the end of its useful life.

    I have a machine (the one I'm typing this on) that has had just one reallocated sector for (to my knowledge) the past three years. So far it has stuck at just the one, but I regularly make a system image so I'm prepared to replace it should it get worse. At nearly three years powered up I'm curious to see just how long its original HDD can continue to work.

    I have another machine that had hundreds of reallocated sectors on its HDD (and the count was steadily increasing). That one got a new SSD before it was too late to rescue.
      My Computers


  9. Ver
    Posts : 13
    Windows 10 Pro
    Thread Starter
       #9

    I'm backing up stuff now to one of the other drives. Since I've already had the BSOD I'm going to replace it. My other V Drive has been powered on for 91,906 hours, and the D Drive just as long as the C Drive. I'm assuming C is failing since it has Windows and programs. V Drive has Reallocated Sector Count of 5 under Raw Values. Thanks so much to everyone who helped!!! I'm going to Mark as Solved, however, if there is anything else I should do, please advise.
      My Computer

  10. Bree's Avatar
    Posts : 18,733
    10 Home x64 (20H2) (10 Pro on 2nd pc)
       #10

    Ver said:
    Since I've already had the BSOD I'm going to replace it....
    Probably for the best....


    My other V Drive has been powered on for 91,906 hours, and the D Drive just as long as the C Drive. I'm assuming C is failing since it has Windows and programs. V Drive has Reallocated Sector Count of 5 under Raw Values.
    It's use that wears out a drive, some drives also report 'Loaded Hours (DE)' which is a better measure of how hard a life it has had. Powered on hours can be high, but if the actual hours of use are low in comparison the drive should have life left in it. Reallocated Sectors are always a warning sign though.
      My Computers


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 14:05.
Find Us




Windows 10 Forums