From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25021 invoked by alias); 16 Feb 2017 09:26:19 -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 25012 invoked by uid 89); 16 Feb 2017 09:26:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-101.6 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Matt, guid, management X-HELO: drew.franken.de Received: from mail-n.franken.de (HELO drew.franken.de) (193.175.24.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 16 Feb 2017 09:26:16 +0000 Received: from aqua.hirmke.de (business-24-134-7-25.pool2.vodafone-ip.de [24.134.7.25]) (Authenticated sender: aquarius) by mail-n.franken.de (Postfix) with ESMTPSA id F324C721E280C for ; Thu, 16 Feb 2017 10:26:11 +0100 (CET) Received: from calimero.vinschen.de (calimero.vinschen.de [192.168.129.6]) by aqua.hirmke.de (Postfix) with ESMTP id 6BC4C5E049E for ; Thu, 16 Feb 2017 10:26:11 +0100 (CET) Received: by calimero.vinschen.de (Postfix, from userid 500) id 4C7F1A8068A; Thu, 16 Feb 2017 10:26:11 +0100 (CET) Date: Thu, 16 Feb 2017 09:26:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Cannot access volumes mounted with 'mklink /d' which point to a volume UUID Message-ID: <20170216092611.GE3889@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <58A4741E.5020408@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="P+33d92oIH25kiaB" Content-Disposition: inline In-Reply-To: <58A4741E.5020408@gmail.com> User-Agent: Mutt/1.7.1 (2016-10-04) X-SW-Source: 2017-02/txt/msg00207.txt.bz2 --P+33d92oIH25kiaB Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1781 On Feb 15 07:30, 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 administrat= ive > disk management tools. >=20 > For example, in cmd: >=20 > mountvol > ... > \\?\Volume{079b79c9-0000-0000-0000-100000000000}\ > C:\ > ... > mklink /d test \\?\Volume{079b79c9-0000-0000-0000-100000000000}\ > ... > dir test >=20 > 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 fil= es > on that volume. >=20 > If I try to access it through Cygwin Bash I get the following error: >=20 > $ dir test/ > dir: cannot access 'test/': No such file or directory >=20 > 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. This type of directory symlink to a GUID volume path isn't supported at all yet in Cygwin. However, you can access the directory directly without having to go through MKLINK. In Cygwin: $ cd /proc/sys/GLOBAL\?\?/Volume{079b79c9-0000-0000-0000-100000000000}/ or $ ln -s \ /proc/sys/GLOBAL\?\?/Volume\{079b79c9-0000-0000-0000-100000000000}/ \ my_vol $ cd my_vol Note the trailing slash. Volume{079b79c9-0000-0000-0000-100000000000} without the slash is the block device. Volume{079b79c9-0000-0000-0000-100000000000}/ with trailing slash is the filesystem on the block device. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --P+33d92oIH25kiaB Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYpXAzAAoJEPU2Bp2uRE+gaUEP/RBR9OzTzm+yHbX8aLF1Z9z1 mfSs6MXaPzR+AYt7VjGRqNJxvZufK7XmVMlmQLIUEm4204REAdzKiPaUmWLPArMc xXj7Vc9f1+5fM9dbGbogjCKOrk1HDXeUxOm+fdhaAycjFM39JYNsenVW1PuAapWM kkyERN85b3jFG5BQD/9Vl7ofZ1UeR6tR7XR6q6o42+yijQEqfS4U/X6fpC+1Ia4O J+IfC1E34jYzvTNjy/joNMF+k18k1No20mDcV5GWNZvuKVplKq8pTvX+beggyxao 8U/8QZ4CmmHtoqZZv/ww7tMbt4iEv6o0ohZA5TUjOvhzDymN2vtMX6WtbQK6fuI7 eDV0ytzDRF8XozaZOvgOfkdLQAwJY28ees3s+8Xzl9a73HmJAxChcFI0qCvalkYB /RjOJ86yP5Q3nYRRczBvwGSjvapp8YNrGmFpevXE5OK2KmJma+SCNYQlH9sWRfiB b8NzLF99S/R5llrUF475gIT7GpwVx6k2+kXCFJJvjMvcErrY5ohXvSih3Zk4nF40 8/YxeidSqE1d5utvsOF+0xZaWJcbrGeKIo3RTHNtQirjgX5XbGzLZscf+8Q34QP+ TXq06sCaA7PkGiuvEDkTTTFfbrRt7dmPKqRFdzIulpogoMQr7UZbpNxdU0d4Dawn zgKSF13TPGCter9vdss0 =y7GZ -----END PGP SIGNATURE----- --P+33d92oIH25kiaB--