PDA

View Full Version : NTFS Junction Points


bungle
August 7th, 2006, 05:13 PM
Hi

I have a partition mounted using the NTFS "mountvol" command. This relies on a GUID to define the target volume (partition).

mountvol [Drive:]Path VolumeName

The volume name is of the form

\\?\Volume{GUID}\

Where {GUID} is a globally unique identifier, for example

\\?\Volume\{2eca078d-5cbc-43d3-aff8-7e8511f60d0e}\.

Unfortunately, if I resize this partition (and I'm therefore assuming other operations as well) in DD 10 (2,117) it seems to be assigned a new GUID by Win XP and this breaks any symlinks pointing to it - I have to manually find all the referencing symlinks and redefine them against the new GUID.


Is there any way to keep the same GUID during a DD operation?
Assuming not, is there any way to (automatically / scripted) change the new GUID back to the old one, such that any junctions created elsewhere continue to work?
Worse case, is it possible to change all the referencing junction points after a DD operation (again automatically / scripted)?


Many thanks for your time,
Bungle