Access Denied Permissions Gone due to XCOPY


  1. Posts : 120
    Win7 Pro 64-bit sp1
       #1

    I used xcopy in an admin cmd prompt, just as a test to learn how to use it. I asked it to copy a small directory from one HDD to another.

    It did but now the entire partition on the destination drive is locked - "Access Denied."

    I didn't add anything crazy to the xcopy switches though I did tell it to copy the system files (though like i said I created this directory just as a test - doubt there were any system or hidden files - I can see my hidden files and there were none).

    One mistake I've come across in my research on this might be that I didn't check the permissions on the destination drive before I used xcopy.

    Now ... - even using Diskpart - even in the Recovery Console Cmd Prompt - the Volume is listed but "access is denied." Safe mode cmd prompt, System Restore - all no help.

    Oh btw, I know the files are still there. Right after I ran xcopy I looked inside explorer. The tree on the left was expanded and I was able to click my folders inside the drive, but the top level R:\ drive would not open. Once I rebooted explorer closed the tree and now it won't expand. But I'm 99% sure the files/folders are still there inside R:\.

    Also tried takeown /f R:\ /r /d n - same thing, "Access is denied." Also icacls R:\ /restore AclFile - same story.

    I can't imagine how I corrupted the permissions to such a deep level but that's where I'm at. ANY HELP at all would be extremely appreciated...

    I'd really like to figure this out so I don't make the same mistake again - and maybe the solution will help someone else.

    Thanks for any thoughts you can share with me, I appreciate it!

    UPDATE: running chkdsk now on R:\ /x /b - not sure if it'll complete but at least CHKDSK runs! It also correctly identified the label for R:\, which is "Caches." First time I've seen the label show up anywhere since running xcopy.

    CHKDSK completed, no errors or bad sectors found.

    Interesting and frustrating:

    I can run ICACLS R:\Handbrake /inheritance:d
    "Successfully processed 1 files; Failed processing 0 files

    But if I run the same command on the top-level R:\ directory it returns "Access is denied"

    got to be an answer!

    UPDATE #2: Chkdsk runs fine however when I try to run Defrag it reports "The given volume is currently locked. A format may be in progress, or the disk checking tool is running. (0x89000027)"

    UPDATE #3: set the hidden admin account to active and tried the icacls operations, tried simply cd \d R:\ - none of it worked, all still the same "Access is denied."

    wow I've been stumped before but not like this...I REALLY hope someone has an idea how to fix it! Thanks!
    Last edited by rcanino; 14 May 2011 at 18:14. Reason: merged
      My Computer


  2. Posts : 120
    Win7 Pro 64-bit sp1
    Thread Starter
       #2

    Well - over a day, 114 views and no response. I had a feeling I'd already exhausted my options before I posted. ICACLS, TAKEOWN, SAFE MODE, WINDOWS RECOVERY ENVIRONMENT, SYSTEM RESTORE... None of them helped at all.

    So...I wiped the drive clean and started over. Thankfully it was only Cache and Pre-render files -I used Robocopy and grabbed a few files before I wiped the drive.

    I sure wish I knew what went wrong with XCOPY...

    ***************************

    Thanks Anyway Folks...

    my advice if you're new to it, avoid XCOPY. I'll never use it again; ROBOCOPY has more options (I think it's even multi-threaded) and the documentation for it is way better too.
      My Computer


  3. Posts : 1,326
    Windows 7 Ultimate RTM (Technet)
       #3

    The better advice is to be sure you're aware of how to use XCopy before doing so. XCopy has been in use for years and its reputation is pretty darn good :)
      My Computer


  4. Posts : 120
    Win7 Pro 64-bit sp1
    Thread Starter
       #4

    Use xcopy if you want but it produced an extremely bizarre result for me and it's not like I started blindly tapping keys into the CLI.

    I assume what happened to me is fairly rare by the lack of response. I was hoping yours - well it doesn't matter.

    Anyway, don't take it from me. Research both commands and you'll learn why robocopy is much preferred over xcopy.
      My Computer


  5. Posts : 1,849
    Windows 7 x86/x64, Server 2008r2, Web Server 2008
       #5

    Have you tried a bootable OS and tried to access the drive?
      My Computer


 

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

© Designer Media Ltd
All times are GMT -5. The time now is 04:40.
Find Us