public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Cannot access volumes mounted with 'mklink /d' which point to a volume UUID
@ 2017-02-15 15:30 Matt D.
  2017-02-16  0:59 ` L. A. Walsh
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Matt D. @ 2017-02-15 15:30 UTC (permalink / raw)
  To: cygwin

On Windows you can create symbolic links which point to volume UUIDs as 
a way of mounting and unmounting them without having to use the 
administrative disk management tools.

For example, in cmd:

mountvol
...
     \\?\Volume{079b79c9-0000-0000-0000-100000000000}\
         C:\
...
mklink /d test \\?\Volume{079b79c9-0000-0000-0000-100000000000}\
...
dir test

I call mounvol to get a list of volumes and create a symbolic link 
'test' which points to the C:\ UUID. When I then 'dir test' it will list 
all files on that volume.

If I try to access it through Cygwin Bash I get the following error:

$ dir test/
dir: cannot access 'test/': No such file or directory

This makes it difficult to work with unmounted volumes as it's not 
always possible to access the administrative disk management snap-in and 
the mountvol/mklink has always been my go-to for this type of 
functionality. It would be great if Cygwin would support it.


Matt D.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-03-10 13:20 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-15 15:30 Cannot access volumes mounted with 'mklink /d' which point to a volume UUID Matt D.
2017-02-16  0:59 ` L. A. Walsh
2017-02-16  9:26 ` Corinna Vinschen
2017-02-24 21:49   ` L. A. Walsh
2017-02-28 21:43     ` Corinna Vinschen
2017-03-02 21:43       ` showing all JUNCTIONS as normal dirs as w/linux --bind (was Re: Cannot access volumes mounted with 'mklink...) L. A. Walsh
2017-03-09  4:17       ` Treating Junctions consistently, as "normal dirs" as w/linux "bind"-type mount L. A. Walsh
2017-03-09 13:50         ` Andrey Repin
2017-03-09 15:48           ` L A Walsh
2017-03-09 16:41             ` Corinna Vinschen
2017-03-09 19:13               ` L A Walsh
2017-03-10 13:20             ` Andrey Repin
2017-02-16 14:05 ` Cannot access volumes mounted with 'mklink /d' which point to a volume UUID Andrey Repin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).