File Portal
  • Content
    • Overview
    • Search
    • Imprint
  • News
    • Upcoming
    • Channels
    • Archive
    • Search
    • Submit
  • Mailing Lists
  • Articles
    • Categories
    • Search
  • Knowledgebase
    • Search
  • Compatibility
  • Files
    • Categories
    • Archive
    • Search
    • Submit
  • Glossary
  • Links
Main Menu
· News
· Articles
· Mailinglists
· Files
· Glossary
· Links
· Compatibility Lists

News Menu
· News Overview
· Upcoming News (0)
· News Channels
· News Archive
· Search News
· Submit News

News Channels
· Drivers
· Guides
· Reviews
· Security
· Software
· Press Releases
· Windows XP
· Microsoft
· Updates
· Interviews
· Windows Server 2003
· General Stuff
· Windows Vista
· Webcasts
· Windows Server 2008
· Windows Home Server
· Windows 7
· Windows 8
· Games
· Internet
· Hardware

· Files Overview
· Files Categories
· Files Archive
· Search Files
· Submit File
· Submit PAD

Articles Tags collapse/expand
"Sinofsky 'This (WebDisk) access Aero Peek Application Assassin's associated authentication AutoHotkey Backdoor"? Bootable Brotherhood Browser Cancel Change Command Connection Create Default Desktop dialog Disable display Download drives easiest Enable Enable Aero Peek in Windows 7 Execution Expansion Firefox Folder Folders Improve Install internet it...'? keyboard Leopard little magic. Manager Messenger missing” Naturally network Off-Screen optimize option Prevention Preview) program Programs Prompt Quality Reader Rebuild receive Regardless restricting scroll Search separate Service settings shell Slipstream Specific that’s usually VMware Webcam WebDAV Window Windows Windows 7 Wireless within without Wordpress worksheets world. www.file-portal.net you’re “BOOTMGR

Theme Selector

Latest Files collapse/expand
· 4Easysoft Mac DVD Ripper 4.0.20
· 4Easysoft Blu-ray to MKV Ripper 3.2.08
· Bros AMV Converter Mac 1.7.12
· Bros AVCHD Converter Mac 1.7.12
· Bros AMV Converter Mac 1.7.12
· Avira AntiVir UNIX Professional 3.1.3.5-0
· Avira AntiVir UNIX Professional 3.1.3.5-0
· Avira AntiVir Premium 10.2.0.728
· Tansee iPhone Song & Video & Photo Copy 5.1.0.0
· Bros HD Video Converter Mac 1.7.12

Latest News collapse/expand
· Microsoft to support ODF 1.2 open document standard in Office 15 and in Office 365
· HTC Wants To Do Away With Physical Qwerty Keyboards On Its Smartphones
· Diablo III Free to play this weekend
· May 17th announced as possible date of Facebook IPO
· Yahoo CEO Scott Thompson To Trim The Fat: "Yahoo Has Been Doing Way Too Much"
· Google settles with owner of Gmail.de, gets ownership of the trademark in Germany
· US Department of Justice files federal antitrust lawsuit against Apple and publishing houses Hachette SA, HarperCollins, Macmillan, Penguin and Simon & Schuster
· Windows Vista to enter extended support this week
· Adobe adds silent updates to Flash Player, drops support for Internet Explorer 6

Top News collapse/expand
· Adobe adds silent updates to Flash Player, drops support for Internet Explorer 6
· HTC Wants To Do Away With Physical Qwerty Keyboards On Its Smartphones
· Windows Vista to enter extended support this week
· Google settles with owner of Gmail.de, gets ownership of the trademark in Germany
· Yahoo CEO Scott Thompson To Trim The Fat: "Yahoo Has Been Doing Way Too Much"
· Diablo III Free to play this weekend
· Microsoft to support ODF 1.2 open document standard in Office 15 and in Office 365
· May 17th announced as possible date of Facebook IPO
· US Department of Justice files federal antitrust lawsuit against Apple and publishing houses Hachette SA, HarperCollins, Macmillan, Penguin and Simon & Schuster

Top Articles collapse/expand
· Enable High Quality Video in Skype Regardless of Webcam
· Install OS X Snow Leopard in VMware Windows 7
· How to Enable WebDAV authentication (WebDisk) in Vista
· Disable Zip Folders in Windows 7, Vista or XP
· NTFS Symlinks and other special features
· How to Make Yahoo Messenger Use Firefox as Default Browser in Vista
· How to create a network of Wordpress blogs
· Must have software for Windows
· Add “God Mode” in context menu in Windows Vista / Windows 7
· The easiest way to display separate worksheets in Excel

Welcome to our website

To take full advantage of all features you need to login or register. Registration is completely free and takes only a few seconds.

Submit File

Categories:


PAD File Location

Please enter an unique PAD URL or click here to submit the file manually.

File Portal » Articles » NTFS Symlinks and other special features » Page 1

NTFS Symlinks and other special features

Posted by: admin on: 11/15/2011 09:30 PM [ Print | 0 comment(s) ]

Windows 2000 and higher supports directory symbolic links, where a directory serves as a symbolic link to another directory on the computer. For example, if the directory D:\SYMLINK specified C:\WINNT\SYSTEM32 as its target, then an application accessing D:\SYMLINK\DRIVERS would in reality be accessing C:\WINNT\SYSTEM32\DRIVERS. Directory symbolic links are known as NTFS junctions in Windows. Unfortunately, Windows comes with no tools for creating junctions—you have to purchase the Win2K Resource Kit, which comes with the linkd program for creating junctions. I therefore decided to write my own junction-creating tool: Junction. Junction not only allows you to create NTFS junctions, it allows you to see if files or directories are actually reparse points. Reparse points are the mechanism on which NTFS junctions are based, and they are used by Windows' Remote Storage Service (RSS), as well as volume mount points.


Using Junction

Use junction to list junctions:

Usage: [-s]

-s Recurse subdirectories

Examples:

To determine if a file is a junction, specify the file name:

junction c:\test

To list junctions beneath a directory, include the –s switch:

junction -s c:\

To create a junction c:\Program-Files for "c:\Program Files":

C:\>md Program-Files

C:\>junction c:\Program-Files "c:\Program Files"

To delete a junction, use the –d switch:

junction -d c:\Program-Files





You can surpass the 26 drive letter limitation by using NTFS junction points. 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.
Back to the top
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 that are 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 that is used to mount a volume
•Lists the local file system volumes that are available for use
•Deletes the volume mount points that are created with mountvol.exe
•Location: Windows 2000 CD-ROM in the I386 folder
Delrp.exe
•Deletes NTFS junction points
•Also deletes other types of reparse points, which are the entities that underlie junction points
•Aimed primarily at developers who create reparse points
•Location: Microsoft Windows 2000 Resource Kit


•To create a junction point to your desktop:
1.At a command prompt, type linkd mydesktop user profile\desktop (where user profile is the name of the user profile).
2.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 GUID that is used to identify a unique volume even if the drive letter changes.


•To mount your CD-ROM onto an NTFS junction point:
1.At a command prompt, type md cd.
2.Type mountvol cd \\?\Volume{e2464850-8089-11d2-8803-806d6172696f}\.
3.Type dir cd to display the contents of your CD-ROM.
•To mount another volume onto an NTFS junction point on your system drive:
1.At a command prompt, type md ddrive.
2.Type mountvol ddrive \\?\Volume{e2464852-8089-11d2-8803-806d6172696f}\
3.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 indicated by {Junction}.


•To delete junction points:
◦To delete the mydesktop junction point, at a command prompt, type linkd mydesktop /d or Delrp mydesktop.
◦To delete the CD mount point, at a command prompt, type mountvol \\?\Volume{e2464850-8089-11d2-8803-806d6172696f}\ /d.
◦To delete the ddrive mount point, at a command prompt, type mountvol \\?\Volume{e2464852-8089-11d2-8803-806d6172696f}\ /d.
Back to the top
Usage Recommendations
NOTE: Microsoft recommends that you follow these recommendations closely when you use junction points:
•Use NTFS ACLs to protect junction points from inadvertent deletion.
•Use NTFS ACLs to protect files and directories that are targeted by junction points from inadvertent deletion or other file system operations.
•Never delete a junction point by using Explorer, a del /s command, or other file system utilities that walk recursively into directory trees. These utilities affect the target directory and all subdirectories.
•Use caution when you apply ACLs or change file compression in a directory tree that includes NTFS junction points.
•Do not create namespace cycles with NTFS or DFS junction points.
•Put all your junction points in a secure location in a namespace where you can test them out in safety, and where other users will not mistakenly delete them or walk through them.
Just for info of readers: there are two broadly different categories of things going on here.

1) Hard links. This is just normal file system stuff: a plain old file with one name is made up of an MFT entry ("the file") and a directory entry ("the link") that refers to it. Adding more hard links doesn't really alter things.

2) Fancy file system behaviour. In NTFS, there is a concept called a 'reparse point'. Any existing dir/file can be made into a reparse point. That mechanism is then used to build a variety of user-visible features:

- Mount points: directory points to the root of another disk volume.

- Junction: directory points to another directory.

- Symbolic link: directory/file points to another directory/file.

The difference between junctions and symbolic links only shows up across network connections. Junctions are interpreted on the server, symbolic links are interpreted on the client.

Oh, and shell 'shortcuts' are not related to any of this at all. A shortcut is just a file written by the shell that the shell understands how to use. No particular file system support needed.





Digg it! Slashdot Del.ico.us Technorati Fark it! Blinklist Furl NewsVine Windows Live Netscape Google Bookmarks Reddit! LinkaGoGo Tailrank Wink Dzone Simpy Spurl Yahoo! MyWeb NetVouz RawSugar Smarking Scuttle Magnolia BlogMarks Nowpublic FeedMeLinks Wists Onlywire Connotia Shadows Co.mments


File Portal » Articles » NTFS Symlinks and other special features » Page 1

© 2012
Powered by Contentteller® Professional Edition