New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy NTFS files preserving all their attributes ? #19
Comments
ntfscp.c and ntfscp.sh are old code which probably cannot cope with recent situations. They probably cannot copy Windows 10 dlls which contain a compressed stream. At the time they were developed, ntfsprogs was not merged with ntfs-3g, and I did not know there was another ntfscp there, hence the unlucky name. They are not part of ntfs-3g because they do not make use of ntfs-3g internals, they just use the public file API. You can adapt them to your own needs under the conditions of GPL2+. |
Do you think it's possible to make it work with the current state of ntfs-3g provided all the extended attributes are restored ? Not sure how streams work within ntfs-3g, looks like i should be able to query with |
What is your use case ? With current ntfs-3g you probably cannot copy Windows 10 system files with all their attributes. For backing up a Windows 10 system partition, you should clone it. |
Trying to relocate parts of a Windows 10 installation to a different disk (Program Files, Users). Being able to move Windows directory as well would be nice but i can live without. Are you saying installing the system compression plugin is not enough to handle all types of compressed files ? I'm thinking, actually why not just use tar with extended attributes to dump the whole directory and restore it on the other drive ? That's pretty much what ntfscp.c / ntfscp.sh does, right ?
|
With the plugin you will be able to decompress files, but you will not be able to compress them back. You will not be able to pair short (8+3) names to long ones on the files which have multiple names (hard links). With tar, you will not be able to collect short names and copy them. You may also have the adapt the ACLs to the IDs of users and system defined on the target system. But, maybe you do not need any of these features and more, you may have to try in order to know. |
Giving up for now trying to make it work on the linux side, although this is probably enough for Program Files. So far the best (free) solution I found on the windows side is to use ln.exe which surprisingly also has a better-than-robocopy mode for copying files in addition to creating links:
Lacking a good way to compare the 2 directories see what's missing we don't really know what we're doing, but seems ok so far (Xbox gaming overlay is broken but can disable it). At any rate it does much better than robocopy which doesn't handle junctions, so have to be excluded and recreated by hand...
Really need a good tool to compare directories and all their metadatas... Still find it hard to believe Windows lacks a robust |
Hi,
I've been looking for a way to copy NTFS directories preserving all attributes, ACLs, permissions, reparse points etc (surprisingly hard it turns out, short of cloning the whole partition).
I came across the wiki page on Extended Attributes which gives a bit of hope :
Looks like the
ntfscp.c
andntfscp.sh
additional tools do just that (!)What's the status on these ?
Why are they not part of ntfs-3g ?
Looks like that would be useful to a lot of people.
(As a side-note it was really confusing intially that it has the same name as ntfs-3g's ntfscp which seem something else entirely)
The text was updated successfully, but these errors were encountered: