[阅读: 319] 2006-01-04 04:17:00
SUMMARY
With NTFS junction points you can surpass the 26 drive letter
limitation. By using junction points, you can graft a target folder
onto another NTFS folder or "mount" a volume onto an NTFS junction
point. Junction points are transparent to programs.
Preview Tools for NTFS Junction Points
Microsoft offers three utilities for creating and manipulating NTFS
junction points:
Linkd.exe
Grafts any target folder onto a Windows 2000 version of NTFS folder
Displays the target of an NTFS junction point
Deletes NTFS junction points created with Linkd.exe
Location: Microsoft Windows 2000 Resource Kit
Mountvol.exe
Grafts the root folder of a local volume onto a Windows 2000 version of
NTFS folder (or "mounts" the volume)
Displays the target of an NTFS junction point used for mounting a
volume
Lists local file system volumes available for use
Deletes volume mount points created with mountvol.exe
Location: Windows 2000 CD-ROM in the I386 folder
Delrp.exe
This tool deletes NTFS junction points. It also deletes other types of
reparse points, which are the entities underlying junction points
Delrp.exe is aimed primarily at developers creating reparse points
Location: Microsoft Windows 2000 Resource Kit
MORE INFORMATION
Sample Usage
To create a junction point to your desktop:
At a command prompt, type linkd mydesktop <user profile>\desktop, where
<user profile> is the name of the appropriate user profile.
Type dir mydesktop to display the contents of your desktop.
To list the available volumes on your system, at a command prompt, type
mountvol.
\\?\Volume{e2464851-8089-11d2-8803-806d6172696f}\ C:\
\\?\Volume{e2464852-8089-11d2-8803-806d6172696f}\ D:\
\\?\Volume{e2464850-8089-11d2-8803-806d6172696f}\ R:\
NOTE: The string after "Volume" is the Globally Unique Identifier
(GUID) used to identify a unique volume even if the drive letter
changes.
To mount your CD-ROM onto an NTFS junction point:
At a command prompt, type md cd.
Type mountvol cd \\?\Volume{e2464850-8089-11d2-8803-806d6172696f}\.
Type dir cd to display the contents of your CD-ROM.
To mount another volume onto an NTFS junction point on your system
drive:
At a command prompt, type md ddrive.
Type mountvol ddrive \\?\Volume{e2464852-8089-11d2-8803-806d6172696f}\
Type dir ddrive to displays the contents of drive D.
NOTE: When you display the contents of a folder by using the "dir"
command, NTFS junction points are denoted by {Junction}.
To Remove Junction Points:
To delete a normal junction point, at a command prompt type linkd
mydesktop
.
Type mountvol \\?\Volume{e2464850-8089-11d2-8803-806d6172696f}\ /d
Type mountvol \\?\Volume{e2464852-8089-11d2-8803-806d6172696f}\ /d
Usage Recommendations
NOTE: Microsoft recommends you follow these recommendations closely
when using junction points.
Use NTFS ACLs to protect junction points from inadvertent deletion.
Use NTFS ACLs to protect files and directories targeted by junction
points from inadvertent deletion or other file system operations.
Never delete a junction point using Explorer, a del /s command, or
other file system utilities that walk recursively into directory trees.
These utilities will affect the target directory and all
subdirectories. Instead, use the utilities described below to delete
junction points.
Use caution when applying ACLs or changing file compression in a
directory tree that includes NTFS junction points.
Do not create namespace cycles with NTFS or DFS junction points.
Place all your junction points at a secure location in a namespace
where you can test them out in safety, and other users will not
mistakenly delete them or walk through them.
Feature Comparison to DFS:
NTFS junction points are similar in to the junction points in DFS as
both are tools for grafting storage namespaces together. However, DFS
typically has more features than NTFS junction points. The following
table lists some differences between DFS and NTFS junction points.
Feature DFS Junction Points NTFS Junction Points
Junction point origin Local network share Local NTFS directory
Junction point target Any network share Any valid Windows 2000 local
path
Recoverable Yes Yes (ChkDsk)
Persistable/portable state Yes (Save as File) Yes
(explicit/copy/move/backup)
Multi-targeting Yes No
Clustering Support Yes No
API Yes Yes
Graphical Tools Yes Minimal
Availability NT Server 4.0 and Above Windows 2000 w/NTFS