[TriLUG] cp and a new fs, eg ntfs

Alan Porter porter at trilug.org
Fri Jul 30 23:23:34 EDT 2010


> As long as the NTFS driver understands the permissions, and they map 
> to something reasonable in Unix permissions, yes.  If they don't map 
> to Unix permissions, I believe it still works because the cp command 
> will treat them as just bits that it doesn't understand and copy them 
> anyway.

Remember that the file NAME and PERMISSIONS are not actually part of the 
file itself, but they are "meta-data" that is stored in the directory 
entry that points to the file.

So the NTFS driver will copy the contents of the file without altering 
it, but when it first creates the file, it might mangle the filename to 
match some 8x3 compatibility nonsense, or some case-insensitivity 
silliness, and it might also re-jigger the permission bits to look more 
Windows-like.  That is, the NTFS driver's job is to add "suck" to your 
directory structure.

Alan





.




More information about the TriLUG mailing list