Solved

Move *data only* hard drive to new machine, retain permissions

Posted on 2011-03-11
8
537 Views
Last Modified: 2012-08-13
I have a hard drive in a PC that contains data files only (no OS or system files, non-bootable). It has quite complex permissions based on users/groups on the current PC

I want to move that drive to a new PC while retaining the user and group permissions. How do I go about doing this?
0
Comment
Question by:theskintman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 1

Expert Comment

by:lvanalstyne
ID: 35110267
Try xcopy in the command window.

example:
xcopy c:\olddocs c:\newdocs /O /X /E /H /K

These switches have the following effects:
/E - Copies folders and subfolders, including empty ones.
/H - Copies hidden and system files also.
/K - Copies attributes. Typically, Xcopy resets read-only attributes.
/O - Copies file ownership and ACL information.
/X - Copies file audit settings (implies /O).

You could use the command to copy to a flash drive or external drive, and then use it again to copy to the new machine. Or temporarily move the old drive into the new machine and copy it from there.


Source: http://support.microsoft.com/kb/323007
0
 

Author Comment

by:theskintman
ID: 35110304
Ideally, I want to avoid having to copy the files - just move the drive from the current machine to a new one.
0
 
LVL 1

Expert Comment

by:lvanalstyne
ID: 35110440
Ah. So these users, are they local to the machine, or domain users? I'm assuming local users...
0
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 

Author Comment

by:theskintman
ID: 35110475
Yes, they are local users (and groups). I'm guessing I'd need to move them across first?
0
 
LVL 1

Expert Comment

by:lvanalstyne
ID: 35110994
Can you still log into windows on the original pc?
0
 

Author Comment

by:theskintman
ID: 35111017
Yes - it's just an old 2000 machine we run as a file server. All our work files are stored on the drive that we now want to move onto a newer, more powerful machine running XP.

Both machines are running fine.
0
 
LVL 14

Expert Comment

by:athomsfere
ID: 35111870
NTFS?

Same accounts on the existing machine and this one?

If the two above are true, then you should not have a problem. The NTFS format stores the ACLs on the file system so you should be OK just dropping it in.
0
 
LVL 1

Accepted Solution

by:
lvanalstyne earned 500 total points
ID: 35112171
How many accounts
Depending on how many users you have this may or may not be tedious:

Create accounts on the new computer with identical names to the ones on the original computer. These will have the same names, but not the same SIDs.

Put the drive in the new computer.

Get PSTools:
http://technet.microsoft.com/en-us/sysinternals/bb896649
and use psgetsid to get the SID of all of your users on your original computer (psgetid account) AND the SIDs of the accounts on the new computer.

Create a new file on your new computer called SAM.txt and fill it as follows:
__cachefileonly__=s-1-9-cacheonly
ComputerA\Account1=SID (gathered from psgetsid)
ComputerB\Account1=SID
ComputerA\Account2=SID
ComputerB\Account2=SID

Open in new window

etc....


Install subinacl:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b&displaylang=en

Open a command window and run subinacl as follows:
subinacl /offlinesam="[b]PATH TO SAM.TXT[/b]" /subdirect "[b]PATH FILES ON DRIVE[/b]" /replace=ComputerA\Account1=ComputerB\Account1

Open in new window

etc...






0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are 2 things you must have in order to connect to the internet behind a router, The "Gateway IP" of the router, which is usually something like 192.168.xxx.1, I've seen routers with default values of: 192.168.0.1, 192.168.1.1, 192.168.11.1, …
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question