From: "L. A. Walsh" <cygwin@tlinx.org>
To: cygwin@cygwin.com
Subject: Re: Cannot access volumes mounted with 'mklink /d' which point to a volume UUID
Date: Thu, 16 Feb 2017 00:59:00 -0000 [thread overview]
Message-ID: <58A4F95F.1000907@tlinx.org> (raw)
In-Reply-To: <58A4741E.5020408@gmail.com>
Matt D. wrote:
> 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}\
---
mklink and mklink /d create SYMLINKs (and SYMLINKDs). To create
MS mount points you need to create them as junctions (mklink /J) and
I think that should work for what you are doing.
Unfortunately, cygwin breaks MS-mounts by treating them as symlinks,
so if you use standard *nix utils to copy that dir, it won't be read as a
dir, but as a symlink, so when it's written to a destination, it seems like
it would attempt to overwrite the directory with a symlink.
I know it messes up being able to keep cygwin dirs on a separate disk
unless you _only_ store 1 cygwin-dir/mount point.
For example, if you have a cygwin on a "D" drive, you won't be
able to use junctions to mount D:/usr on /usr and D:/bin on /bin without
cygwin destroying the mountpoints when software is installed.
Very unfortunate, since linux DOES have the dynamic-mount points
with its 'bind' options.
Somehow, having users be able to destroy mount-points doesn't seem
that secure.
--
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
next prev parent reply other threads:[~2017-02-16 0:59 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-15 15:30 Matt D.
2017-02-16 0:59 ` L. A. Walsh [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=58A4F95F.1000907@tlinx.org \
--to=cygwin@tlinx.org \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).