delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/02/16/04:26:33

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=B+WUgICa+q8mrkDGkn4ReY0zwbcaE7R0UFgBVVuOO/NVm1DFDD1cS
DeBuQqA6lzA8JggGmnTJPXFMeRlnR3OElrwAyd95XDIU74pi12m2jtpjd+bf8oz+
gGR7ehgcMae5/slrD8VnOysV7MsuK0UecUDerxs6baIUHmoaVSAgmA=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=B94XnFlpWopr9jOSwIbcgNCaG0I=; b=YlCEKPn0tZaMyIfFXSJbTJtEjHb/
5f3JAtNCHmYZA7QsHMGoRJeRxdAWdaFgYYcUc82EgtRVkbfS9Y8j+yc6TGSOFPz2
5lqR+Y3IS7kGwe0FILEC9w81Er2tvC/2GMtl2IHl7hXITVgI9XPieI9jVxtILGaW
wtrmps4UCYfSzFg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
Date: Thu, 16 Feb 2017 10:26:11 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT 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 AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <58A4741E DOT 5020408 AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <58A4741E.5020408@gmail.com>
User-Agent: Mutt/1.7.1 (2016-10-04)

--P+33d92oIH25kiaB
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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"

-----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--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019