Copying files from external drive - access denied

We have a server that crashed (motherboard failure) while I was in the process of virtualizing it...

I already had the VM ready to go, and the old server was just two HDD's in RAID 1 so I was able to access the files and the plan is to transfer them to the new server..

Long story short, I have no way of directly connecting the HDD from the old server (SATA) to my SAN, so the easiest method was to connect it externally using a USB to SATA dock and transfer the files directly from the now external drive to the new VM..

The problem is that while transferring some (not all) files, I get an access denied error.

I have transferred ownership of the folder I'm trying to copy, actually of the entire external drive, to my Domain Admin account and after getting the same error, I even tried changing the ownership to "Everyone"... same result. I have also ensured that the domain admins group, my domain admin account and everyone has Full Control rights on the drive.. And yet I still get the same error...

The machine I'm using to transfer the files is a Windows 7 Pro machine.
The VM the files are being transferred to is a Windows 2012 R2 machine that is not yet on the domain. I'm logged in through the Administrator account.

Any help that can be provided will be greatly appreciated, this server is for a team of 20+ employee's that are basically not going to be working Monday unless I get this server up this weekend!
LVL 2
VDGinfoAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ravi AgrawalCommented:
You can try copying the files using a live Linux cd of Ubuntu or puppy Linux

Probably it will help tp copy all the files without errors.

Then do a chkdsk with Windows to get rid of file system errors.
VDGinfoAuthor Commented:
I agree that Linux is a viable solution but I'm quite remote until Monday thus cannot boot this machine from a CD/USB key... Any ideas on how to resolve the permissions issue within Windows?
Ravi AgrawalCommented:
No,

I don't know anything other than you already tried. Let someone else suggest a new solution.
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Brian MurphyIT ArchitectCommented:
QUESTION:
The machine I'm using to transfer the files is a Windows 7 Pro machine.
The VM the files are being transferred to is a Windows 2012 R2 machine that is not yet on the domain. I'm logged in through the Administrator account.

Any help that can be provided will be greatly appreciated, this server is for a team of 20+ employee's that are basically not going to be working Monday unless I get this server up this weekend!


ANSWER:
Windows 2012 R2 uses a newer version of NTFS.  Not going to work unless you format the drive, and we don’t want that.

Now, I’m not sure what you mean by transferring files.

You cannot transfer the files from Windows 7 with the SATA drive attached directly to Windows 2012 R2.  Not without modifying local group policy.  Start, Run, Gpedit.msc.

First thing I ask is do you have a copy of the drive because this could hurt.

There is a USB device called “BlacX” that can hold two drives at 1 TB each.  About 40 bucks.

If you are using a virtual instance, what are you using?  Hyper-V, ESXi?

There are so many gotchas here that is what makes it a challenge.

A share might work but different SMB versions.

And it would have to be on the domain.

QUESTION
The problem is that while transferring some (not all) files, I get an access denied error.


ANSWER
Where are you getting the error?  Transfers can happen outgoing and incoming.

In other words, you have a domain joined Windows 7 workstation.  You have a non-domain-joined Server that only knows local accounts not domain.

How in the world would you possibly be copying from the USB to 2012 using WIN7 and conduit?

Are you getting this problem copying to WIN7 first?  Then trying to copy to 2012 R2?

Minimum, you would need to enable the File Share MGMT feature on 2012 and create a non-admin share.  This changes local policies to accept incoming SMB of varying styles.

Now you might experience slowness between the two.
Run these commands on the Workstation and VM
netsh int ip set global taskoffload=disabled
netsh int tcp set global RSS=disabled
netsh interface tcp set global autotuninglevel=disabled
netsh int tcp set global chimney=disabled


On 2012R2, set the share permissions to Everyone Full Control (Share).

On the NTFS Permissions for that directory set Everyone Full Control

So create a temporary directory called copy on C:\Copy of 2012R2

Use the File Share Mgmt MMC to share that out as everyone full control and just replace all the NTFS permissions with Everyone Full Control and UNCHECK Inherit from Parent.

Before you do anything, if you have a BlacX – add another drive, format, assign drive letter, try to copy the data.

Because first I’m recommending a chkdsk

Then a takeown.exe

From Command Line, CD to that Drive letter after backup.

In my example, it is X:

CD\
C:> chkdsk X: /V /R

CD X:
X:> takeown /F *


Map a drive to 2012R2, Map Drive using different username, z: \\2012r2\copy
Administrator
<Password>

This is the local account on 2012.

IF you get an error mapping drive go back to CMD and type

Net use * /d /y
Net use * //ipc /d /y


Map drive

In command prompt type

CD C:
CD \windows\system32
Robocopy.exe X: Y: *.* /E /SEC /SECFIX /TIMFIX /W:0 /R:0
VDGinfoAuthor Commented:
Thank you for the response.

A good 80% of the files (120gb) transfers without error.

The machine the drive is plugged into is the Windows 7 joined to the domain. The VM (Vmware 5.5) the files are being copied to is a Windows 2012 R2 machine that has not yet joined the domain. The "access denied" error is on the source machine, not the destination.

The ownership of the entire external drive is currently "Everyone" and the security right are set to "Everyone" with Full Control. I am copying these files using a Domain Admin account.

I am using the Windows copy function within two explorer windows opened as administrator. The files are copying from the external drive E:\Administration to \\10.30.1.XXX\e$ at which point I'm giving admin access.
David Johnson, CD, MVPOwnerCommented:
so you've done the takeown /f e:\administration /r /d n with no errors have you also used explorer e:\administration and gone to the security tab, change the owner and hit the check box in the top pane to replace owner . and also the check box to replace all object permissions with inheritable entries from this objectlike so
VDGinfoAuthor Commented:
Hi

Thank you for the response, yes I did complete those steps prior to posting the original question.. I'm starting to suspect file corruption due to the server crashing. Nothing else I have found anywhere explains this problem!
VDGinfoAuthor Commented:
Turns out the issue was in fact that that 10 files randomly throughout the disk were corrupt.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jmcgOwnerCommented:
How random was this? Were the files in question actually reparse points attempting to point back to other parts of the original system's file system. Corruption of files should not lead to permissions errors.
VDGinfoAuthor Commented:
Despite all the details provided, no one suggested a potential file corruption issue. Solutions were actually provided that had already been explained in the original question.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 7

From novice to tech pro — start learning today.