Share via

File System

Anonymous
2024-10-14T12:43:19+00:00

My windows 10 shows no boot device or does it show hard drives present. I ran a test,the results showed everything was fine. I ran chkdsk, which showed file system errors. I attempted to fix the errors via chkdsk /f /r /x. Which failed due to the drive is write protected and the drive (c) and the recovery drive file system is ntfs. How do I repair this issue?

Windows for home | Windows 10 | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-10-15T03:47:08+00:00

    Hi Freshdee

    Welcome to Microsoft Community.

    Based on your description, I understand that your Windows 10 shows no boot device, scanning through chkdsk and repairing prompts that the drive is write-protected, and I understand very well how you feel!

    After seeing your thread, I used one of my own Asus laptops for actual testing and wrote a more complete distribution step-by-step for you, which I hope will help you successfully!

    1. we try to remove the write protection from the command line

    Since we can't access the system at the moment, we need to access WinRE.

    Please follow the steps below to gain access:

    (1) Press and hold the power button for 10 seconds to turn off your device.

    (2) Press the power button again to turn your device on.

    (3) Immediately after you see Windows start up (e.g., some devices display the manufacturer's logo on reboot), press and hold the Power button for 10 seconds to turn off your device.

    (4) Press the Power button again to turn on your device.

    (5) When Windows reboots, press and hold the Power button for 10 seconds to turn off your device.

    (6) Press the Power button again to turn on your device.

    (7) This time, allow the device to fully boot up.

    (8) Select Troubleshooting.

    (9) Select “Advanced Options”.

    Under Advanced Options, select Command Prompt.

    Remove the write protection via Diskpart.

    (1) Recognizing external storage devices

    diskpart
    

    (2) Display the disk list.

    list disk
    

    (3) Locate the corresponding disk and select it.

    select disk X
    

    Replace X with the disk number

    (4) Remove the read-only attribute of the disk.

    attributes disk clear readonly
    
    1. After removing the read-only attribute, let's try chkdsk again. chkdsk /f /r

    Disclaimer: Running chkdsk can check the file system and file system metadata of a volume for logical and physical errors. To avoid any trouble for you, do not cancel or interrupt chkdsk, and back up important data.

    Assuming that we still can't scan, at this point we try to fix the problem from another command.

    1. Try to scan and repair the system from the command line. DISM /Online /Cleanup-Image /ScanHealth DISM /Online /Cleanup-Image /CheckHealth DISM /Online /Cleanup-Image /RestoreHealth SFC /Scannow

    Please note: The above command needs to be repeated 5~6 times to ensure the integrity of the scan!

    1. Try to scan and repair the bootstrap from the command line. bootrec /fixmbr bootrec /fixboot bootrec /scanos bootrec /rebuildbcd

    I sincerely hope that the above solution will solve your problem. Please feel free to contact me if you have any problems or still can't solve them. (Photos related to the question would be great!).

    I look forward to hearing back from you. 

    Best Regards

    Arthur Sheng | Microsoft Community Support Specialist

    Was this answer helpful?

    0 comments No comments