From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31000 invoked by alias); 16 Feb 2017 00:59:17 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 30979 invoked by uid 89); 16 Feb 2017 00:59:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.2 required=5.0 tests=BAYES_50,GIT_PATCH_2,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=H*F:U*cygwin, Hx-languages-length:1416, H*r:8.14.7, H*r:192.168.3 X-HELO: Ishtar.sc.tlinx.org Received: from ishtar.tlinx.org (HELO Ishtar.sc.tlinx.org) (173.164.175.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 16 Feb 2017 00:59:15 +0000 Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id v1G0xBd8007990 for ; Wed, 15 Feb 2017 16:59:13 -0800 Message-ID: <58A4F95F.1000907@tlinx.org> Date: Thu, 16 Feb 2017 00:59:00 -0000 From: "L. A. Walsh" User-Agent: Thunderbird MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Cannot access volumes mounted with 'mklink /d' which point to a volume UUID References: <58A4741E.5020408@gmail.com> In-Reply-To: <58A4741E.5020408@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00202.txt.bz2 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