FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Wed May 12, 2021 00:57



Post new topic Reply to topic  [ 5 posts ] 
Copy of junction is not valid on Windows 
Author Message

Joined: Mon Mar 31, 2014 13:43
Posts: 113
Post Copy of junction is not valid on Windows
On Ubuntu with nautilus I copied ntfs junction "C:\ProgramData\Start Menu" to "C:\ProgramData\Start Menu(Kopie)".
The copy works fine with nautilus as same as the original.

But on Windows 7 instead a working junction I only see a "normal" file:
Code:
Start Menu(Kopie)  System file  134 Byte  SA

The original also has different attributes:
Code:
Start Menu         Folder                 HSDLI

Also the permissions and ownership were not copied correctly.
The content of the file is:
Code:
IntxLNK./.m.e.d.i.a./.k.a.t.r.i.n./.W.i.n.d.o.w.s.7./.P.r.o.g.r.a.m.D.a.t.a./.M.i.c.r.o.s.o.f.t./.W.i.n.d.o.w.s./.S.t.a.r.t. .M.e.n.u.

Unfortunately I can't attach the file (extension not allowed :-( ), so I paste the hex view here:
Code:
49 6E 74 78  4C 4E 4B 01  2F 00 6D 00  65 00 64 00
69 00 61 00  2F 00 6B 00  61 00 74 00  72 00 69 00
6E 00 2F 00  57 00 69 00  6E 00 64 00  6F 00 77 00
73 00 37 00  2F 00 50 00  72 00 6F 00  67 00 72 00
61 00 6D 00  44 00 61 00  74 00 61 00  2F 00 4D 00
69 00 63 00  72 00 6F 00  73 00 6F 00  66 00 74 00
2F 00 57 00  69 00 6E 00  64 00 6F 00  77 00 73 00
2F 00 53 00  74 00 61 00  72 00 74 00  20 00 4D 00
65 00 6E 00  75 00

My fstab is:
Code:
UUID=xxxx    /media/Daten    ntfs    defaults,inherit    0    0

My UserMapping is:
Code:
::S-1-5-21-2869643010-2844629126-3994450086-513
jakob:jakob:S-1-5-21-2869643010-2844629126-3994450086-1005
lasse:lasse:S-1-5-21-2869643010-2844629126-3994450086-1006
katrin:katrin:S-1-5-21-2869643010-2844629126-3994450086-1007


Tue Apr 01, 2014 00:40
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: Copy of junction is not valid on Windows
Hi,

Quote:
On Ubuntu with nautilus I copied ntfs junction "C:\ProgramData\Start Menu" to "C:\ProgramData\Start Menu(Kopie)".
The copy works fine with nautilus as same as the original.

The Windows concept of junction has no equivalent in Linux. Normal Linux programs cannot copy a concept they do not know about.

Under some conditions, ntfs-3g can make a junction appear as a symbolic link in Linux, so the junctions can sometimes be dereferenced.

In http://www.tuxera.com/community/ntfs-3g ... eparsedata there is an example of how to copy a junction. The destination (i.e. the new junction to be created) must have been created as a void directory.
Quote:
The copy works fine with nautilus as same as the original.
But on Windows 7 instead a working junction I only see a "normal" file:

Conversely the Linux concept of symbolic link has no equivalent in Windows, and a symbolic link created by Linux is not understood by Windows. The main hurdle is the use of drive letters by Windows to designate a partition.
Quote:
Unfortunately I can't attach the file (extension not allowed :-( ), so I paste the hex view here:

On this forum you can only attach compressed files (gzip, bzip2 etc.).
Quote:
My UserMapping is:
Code:
::S-1-5-21-2869643010-2844629126-3994450086-513
jakob:jakob:S-1-5-21-2869643010-2844629126-3994450086-1005
lasse:lasse:S-1-5-21-2869643010-2844629126-3994450086-1006
katrin:katrin:S-1-5-21-2869643010-2844629126-3994450086-1007

The first line is wrong. There should be a gid in the second field (between the colons). The subsequent lines do not match the way Windows 7 creates the users by default : there is no individual group per user, so the second field should be void (however Windows 8 defines an individual group per user). Also the grouping of users has to be the same in Windows and Linux for the permissions to be meaningful.

Regards

Jean-Pierre


Tue Apr 01, 2014 09:17
Profile

Joined: Mon Mar 31, 2014 13:43
Posts: 113
Post Re: Copy of junction is not valid on Windows
Quote:
On this forum you can only attach compressed files (gzip, bzip2 etc.).
Would be nice to add this hint close the "Add the file" button. At least user should be notified "verbosely" via the rejection message.


Fri Apr 04, 2014 20:15
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: Copy of junction is not valid on Windows
Hi,

Quote:
Quote:
On this forum you can only attach compressed files (gzip, bzip2 etc.).

Would be nice to add this hint close the "Add the file" button. At least user should be notified "verbosely" via the rejection message.

I cannot do anything about it : this forum is owned and maintained by Tuxera.

Regards

Jean-Pierre


Sat Apr 05, 2014 10:00
Profile

Joined: Mon Mar 31, 2014 13:43
Posts: 113
Post Re: Copy of junction is not valid on Windows
jpa wrote:
Quote:
Quote:
On this forum you can only attach compressed files (gzip, bzip2 etc.).

Would be nice to add this hint close the "Add the file" button. At least user should be notified "verbosely" via the rejection message.

I cannot do anything about it : this forum is owned and maintained by Tuxera.

Maybe you could inform the applicable person, I guess you know better know to contact there.


Sat Apr 05, 2014 14:25
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


Who is online

Users browsing this forum: Google [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.