Share via

D drive is showing, but access denied.

Anonymous
2024-05-13T20:04:12+00:00

Hello,

So suddenly after restarting my PC, the D: drive won't open, and apps installed there cannot be accessed.

It appears in the drives list, and in my computer folder, but when I try to open it, it shows me "access denied".

Tried every solution I found:

  • Tried going to properties to change the security settings, but there is no tab for security.
  • Tried error checking in properties, it fails to run.
  • Tried chkdsk /r, chkdsk f/.. and it shows me "the type of the file system is ntfs" and then does nothing.

PLEASE HELP, how can I fix this?

BTW, it's 870 EVO SATA 2.5" SSD 2TB.

Windows 11.

Windows for home | Windows 11 | 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

13 answers

Sort by: Most helpful
  1. Munkhu 2,690 Reputation points Independent Advisor
    2024-05-13T23:37:51+00:00

    Thanks for reaching out! I'm an Independent Advisor and a Microsoft user like you.

    To resolve the "access denied" issue on your D: drive in Windows 11, follow these comprehensive steps to diagnose and fix the problem. These steps include taking ownership, running CHKDSK, and modifying the registry.

    Step 1: Take Ownership of the Drive

    1. Open Command Prompt as Administrator:
      • Press Windows + X and select "Windows Terminal (Admin)" or "Command Prompt (Admin)".
    2. Take Ownership:
      • Type the following command and press Enter:
          takeown /f D:\ /r /d y
        
      • This command will recursively take ownership of the D: drive, granting your user account the necessary permissions.

    Step 2: Run CHKDSK

    1. Open Command Prompt as Administrator:
      • As in Step 1, open the Command Prompt with administrative privileges.
    2. Run CHKDSK:
      • Execute the following command:
          chkdsk D: /f /r /x
        
      • Explanation of parameters:
        • /f: Fixes errors on the disk.
        • /r: Locates bad sectors and recovers readable information.
        • /x: Forces the volume to dismount first if necessary.

    Step 3: Modify the Registry to Display the Security Tab

    1. Open Registry Editor:
      • Press Windows + R, type regedit, and press Enter.
    2. Navigate to the Explorer Key:
      • Go to:
          HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
        
    3. Check or Create NoSecurityTab:
      • Look for a DWORD entry named NoSecurityTab.
      • If it exists and is set to 1, right-click on it, select "Modify", and change the value to 0.
      • If it does not exist, create it:
        • Right-click on the Explorer key, select New > DWORD (32-bit) Value, name it NoSecurityTab, and set its value to 0.

    Step 4: Check Disk Management

    1. Open Disk Management:
      • Press Windows + X and select "Disk Management".
    2. Check the D: Drive Status:
      • Locate the D: drive and check its status.
      • Look for any errors or unusual statuses (like RAW). If the drive shows as RAW, it may need to be formatted, but only consider this as a last resort due to data loss risks.

    Additional Tips

    • Update Windows 11:
      • Ensure your system is up to date by going to Settings > Windows Update and checking for updates.
    • Use Third-Party Tools:
      • Consider using third-party disk management tools like EaseUS Partition Master or similar to diagnose and repair disk errors.

    Important: Backup Data

    Before proceeding with any major changes or repairs, ensure you back up any important data from the D: drive if possible. Data recovery services should be considered if you suspect severe disk corruption or hardware failure.

    If none of these steps resolve the issue, the problem might be more complex, potentially involving hardware failure or severe file system corruption. In such cases, professional data recovery services may be necessary.

    Please do let me know if the method I suggested works for you or if you need further assistance.

    6 people found this answer helpful.
    0 comments No comments
  2. Munkhu 2,690 Reputation points Independent Advisor
    2024-05-14T21:54:12+00:00

    The message "Failed due to I/O error" indicates an Input/Output (I/O) device error. This error typically occurs when Windows is unable to perform an operation on the specified drive, in this case, the D: drive. The error can be due to various reasons including hardware issues, driver problems, or file system corruption.

    Here are some steps you can take to troubleshoot and potentially fix this issue:

    1. Check the Physical Connections

    Ensure that all cables connected to your D: drive are secure. If it's an external drive, try using a different USB port or cable to rule out connection issues.

    2. Update or Reinstall Device Drivers

    Outdated or corrupted drivers can cause I/O errors. Update the drivers for your storage device through Device Manager:

    1. Open Device Manager.
    2. Expand Disk drives.
    3. Right-click on your D: drive and select Update driver.
    4. Choose Search automatically for updated driver software.

    If updating doesn't help, you can try reinstalling the driver.

    3. Use a Different Command or Tool

    If takeown specifically is failing, consider using alternative commands or tools that might bypass the I/O error. For instance, you could use the icacls command to change permissions, which might not trigger the same error:

    icacls D:\ /grant administrators:F /t
    

    This command grants full permissions to the administrators group recursively through the D: drive.

    You could also consider formatting your PC, which would eliminate any software-related issues.

    Please do let me know if the method I suggested works for you or if you need further assistance.

    3 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2024-07-05T21:51:49+00:00

    Inhave the same problem

    None of these solutions work for me

    D drive shows up in disk manager and explorer; it has contents in diskmanager (see screenshot) but is empty in explorer.

    Image

    Modifying registry key has not helpen. Check disk also did not help.

    I cannot add another user either- the window appears but stays vagie and no typing in a new name is possible

    Finally I tried the command take ownershop of the drive

    I still get "access denied"

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2024-11-10T08:40:15+00:00

    I did get this issue sorted. I was about to give up and just tolerate but suddenly thought it all out and resolved the issue easily. It's just a shame that we all have to waste more time troubleshooting the countless Microsoft problems' than we get time to be productive with devices.

    Inhave the same problem

    None of these solutions work for me

    D drive shows up in disk manager and explorer; it has contents in diskmanager (see screenshot) but is empty in explorer.

    Image

    Image

    Modifying registry key has not helpen. Check disk also did not help.

    I cannot add another user either- the window appears but stays vagie and no typing in a new name is possible

    Finally I tried the command take ownershop of the drive

    I still get "access denied"

    Hi. DId you ever resolve this issue? I only noticed this problem recently. I went to copy files from an SD card and would get the D: Denied Access. Everything including a back up SSD all have this same problem and I too get no resolution from all of the suggested ones here and a few others found elsewhere.

    0 comments No comments
  5. Anonymous
    2024-05-14T15:33:09+00:00

    Hi @Munkhbayar B.

    Thanks for your reply. Tried all the solutions, no benefit.

    The first and second step doesn't work for me.

    First one: Failed due to I/O error.

    Second one: Cannot complete as there are 2 errors occur.

    Any more things tot try?
    I can format, with no regret, as it has mostly games and some movies, but I don't want to do this option unless I really have to.

    0 comments No comments