Opentopia Directory Encyclopedia Tools

NTFS junction point

Encyclopedia : N : NT : NTF : NTFS junction point



 

In computing, an NTFS junction point (JP) is a type of NTFS reparse point in the NTFS file system. It requires NTFS version 5.0 or later, which can be created (or converted from a FAT partition) using Windows 2000 or later (e.g. Windows XP). Junction Points can be used in a similar way to symbolic links - allowing you to create a link to a folder that is, for most intents and purposes, the same as the folder itself. This has many benefits over a Windows shell shortcut (.lnk) file, such as allowing you to access files within the shortcut via explorer, the console, etc.

Junction points can only link to folders and volumes. You can create a similar link to a file, but with the restriction that the file must belong to the same logical volume, using hard links.

Warning

Examples of use

Program redirection

By setting a JP that points to a directory containing a particular version of a piece of software, you can, in most cases, seamlessly add another version of the software and redirect the JP to point to the version you wish to use.

Space saving

If you are running out of space on a drive, you can move those files to a new drive - but this can cause some problems with old links, configuration files, registry, etc. By creating a JP at the previous location (pointing to the new location) Windows will treat it the same as if the directory still exists there, redistributing the load to the filesystem with more space.

Observed effects

Windows XP Professional

  • Deleting a JP using explorer is not safe - it will delete the targeted files immediately if using shift-delete.
  • Beware: if the JP is sent to the recycle bin, the targeted files will look safe, but will be deleted when the recycle bin is emptied.
  • Moving the JP to a different location on the same drive only moves the JP, however moving to another drive turns the JP into a normal folder and moves all files there (leaving the targeted directory empty).
  • Whilst walking through the directory with explorer, it seems impossible to delete folders, however files can be deleted.
  • A solution for these issues is installing NTFS Link (see external links section), which makes Windows Explorer handles junctions correctly. One can also use the fsutil application to delete and query reparse points (administration privileges are required).

Console

(command prompt - cmd.exe)

General

External links

Informative

Other

 


From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.


Search Titles
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ?

E-mail this article to:

Personal Message: