This forum uses cookies. Click X button to hide this message. What is stored? 
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

VHD mounted drives and <LNK> directories

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC7.56(a)/7.57 bug reports (English) Printable version
View previous topic :: View next topic  
Author Message
Blight
Junior Member
Junior Member


Joined: 22 Mar 2003
Posts: 55

PostPosted: Thu Jan 19, 2012 3:10 pm    Post subject: VHD mounted drives and <LNK> directories Reply with quote

Hi,
When mounting a VHD drive image created using windows 7's 'Backup & Restore' using Windows 7 'disk management' tool, it's impossible to navigate <LNK> folders.

For example, if the mounted drive resides on "I:\", navigating to "I:\Users\Blight\My Documents", opens up "C:\Users\Blight\My Documents".

This is not the case when navigating through explorer.

My concern about this bug is the potential for erasing the wrong files by accident.
_________________
Yaron Gur
Zoom Player . Lead Developer
Back to top
View user's profile Send private message
HolgerK
Power Member
Power Member


Joined: 26 Jan 2006
Posts: 4683
Location: Europe, Aachen

PostPosted: Thu Jan 19, 2012 4:47 pm    Post subject: Reply with quote

Related problem:Accessing remote server junctions/hardlinks(meanwhile fixed)

BTW:
Quote:
opens up "C:\Users\Blight\My Documents"
Isn't it "C:\Users\Blight\Documents"?

BTW2:
There must be a reason for
"Configuration->Options->Display: [x] show hidden/system files(for experts only!)" Wink

Regards
Holger
Back to top
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34739
Location: Switzerland

PostPosted: Fri Jan 20, 2012 7:43 am    Post subject: Reply with quote

Unfortunately paths are stored with absolute locations in LNK files, so the drive C is hard coded. Unfortunately Total Commander cannot know whether such a hard-coded link is wrong or not. It seems that the Explorer makes some assumptions because the user mounts the drive within Explorer.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Blight
Junior Member
Junior Member


Joined: 22 Mar 2003
Posts: 55

PostPosted: Wed Jan 25, 2012 4:31 pm    Post subject: Reply with quote

ghisler:
Then you may want to add these assumptions to TC.
Otherwise TC can cause massive systemic data loss if a user decides to delete a directory containing such links.
_________________
Yaron Gur
Zoom Player . Lead Developer
Back to top
View user's profile Send private message
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 7915
Location: Russian Federation

PostPosted: Wed Jan 25, 2012 11:58 pm    Post subject: Reply with quote

Blight, when you delete folder with links, NO DATA BEHIND LINKS is deleted, just link is removed.

Also, there may be simply no way to ask Explorer about such assumptions.
_________________
TCFS2 + TCFS2Tools: Full-screen mode for TC etc (forum)
TOTALCMD.NET: AskParam, CopyTree, NTLinks, Sudo, VirtualPanel…
Back to top
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34739
Location: Switzerland

PostPosted: Thu Jan 26, 2012 9:30 am    Post subject: Reply with quote

Quote:
Also, there may be simply no way to ask Explorer about such assumptions.

So far I didn't find any. Also users may actually WANT to have hard links to other drives or sub-trees. For example, I have such a link to move some large files from drive C: (small SSD) to drive F: (Terabyte harddisk) and let Windows still assume that it's on drive C:.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
HolgerK
Power Member
Power Member


Joined: 26 Jan 2006
Posts: 4683
Location: Europe, Aachen

PostPosted: Thu Jan 26, 2012 2:31 pm    Post subject: Reply with quote

ghisler(Author) wrote:
Quote:
Also, there may be simply no way to ask Explorer about such assumptions.

So far I didn't find any. Also users may actually WANT to have hard links to other drives or sub-trees. For example, I have such a link to move some large files from drive C: (small SSD) to drive F: (Terabyte harddisk) and let Windows still assume that it's on drive C:.


See
http://support.microsoft.com/kb/930128 wrote:
By default, a junction point has the following settings after you upgrade Windows XP to Windows Vista:

The attribute of a junction point is hidden.
The Read permission of a junction point is Deny.


My windows 7 installation was a clean installation (no update) but shows the same access rights
Code:
C:\Users\USERNAME>CACLS "My Documents"
C:\Users\USERNAME\My Documents Everyone:(DENY)(special access:)
                                      FILE_READ_DATA]

                             NT AUTHORITY\SYSTEM:(OI)(CI)(ID)F
                             BUILTIN\Administrators:(OI)(CI)(ID)F
                             COMPUTERNAME\USERNAME:(OI)(CI)(ID)F

So this seems to be generally true for the XP compatibilty links in Vista and Windows 7.

I guess a link created by the user neither has the hidden/system attribute nor this special permission for Everyone.
On the other side: some (TC) users are used to use the XP compatibility links, to navigate to some places.
Maybe it's a good idea to detect whether the link location is on the same drive as the link target.

By the way: it would be nice to have an option to hide this kind of compatibility junctions separately from "show system/hidden files" option.
Currently I'm using the ignore list here to get a clearer look to the file system structure.

Regards
Holger
Back to top
View user's profile Send private message Send e-mail
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 7915
Location: Russian Federation

PostPosted: Thu Jan 26, 2012 11:55 pm    Post subject: Reply with quote

HolgerK, many users edit permissions of that symlinks, so it is a bad idea to detect them in such way.
_________________
TCFS2 + TCFS2Tools: Full-screen mode for TC etc (forum)
TOTALCMD.NET: AskParam, CopyTree, NTLinks, Sudo, VirtualPanel…
Back to top
View user's profile Send private message Send e-mail
HolgerK
Power Member
Power Member


Joined: 26 Jan 2006
Posts: 4683
Location: Europe, Aachen

PostPosted: Fri Jan 27, 2012 3:14 am    Post subject: Reply with quote

The question was not what many users are doing against the (security) concepts of windows (someone may enter format c:\ as well) but how explorer prevents the normal user to harm his local data.

Regards
Holger
Back to top
View user's profile Send private message Send e-mail
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 7915
Location: Russian Federation

PostPosted: Fri Jan 27, 2012 4:33 am    Post subject: Reply with quote

I think it uses constant list of links (it knows 'em all), but it is a question where it holds information about volumes.
_________________
TCFS2 + TCFS2Tools: Full-screen mode for TC etc (forum)
TOTALCMD.NET: AskParam, CopyTree, NTLinks, Sudo, VirtualPanel…
Back to top
View user's profile Send private message Send e-mail
HolgerK
Power Member
Power Member


Joined: 26 Jan 2006
Posts: 4683
Location: Europe, Aachen

PostPosted: Fri Jan 27, 2012 6:37 am    Post subject: Reply with quote

I doubt this, because the names of the links are different for each language version of the Windows setup.

Regards
Holger
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC7.56(a)/7.57 bug reports (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group