delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/02/16/09:06:02

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:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=AfZ3dzllK2pwfC+Q
AVifhjWovXfP+DX07yCYXm4pfenN78+3JBXZ6D6g60M+AMdUl3i5NHvePKa/7uTr
ArenuP5LpmZxRxMRxjIw+Y6P9o7niACwycpBaoArcS4tg2Fj/2S9H1Bjj4F82/qf
d76Ws+t6+olbczLFWHCmUL8tr54=
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:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=IZv0ibYqAE7GBQGUJYLNQq
wJYdk=; b=E1qcL/moxFl3+3HcnUvJd0yV/nOEPbx+Ov00ZAr0kuToJo0oMK1rDq
so9sJhpF82Huvk/hDq5FV3+xLsnYB1WiecsTboE1nmCO59zrcWEGC3NtdrxY42Q0
cyynRpgqZnIhtvsUEQ6BuqZRzUSlFQLRabgqB1iVVpg/puARl73Xo=
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: =?ISO-8859-1?Q?Yes, score=6.0 required=5.0 tests=BAYES_50,BODY_8BITS,FREEMAIL_FROM,GARBLED_BODY,KAM_THEBAT,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=Games, H*UA:Bat!, =d0=a2=d0, Programs?=
X-HELO: forward4j.cmail.yandex.net
Authentication-Results: smtp1m.mail.yandex.net; dkim=pass header.i=@yandex.ru
X-Yandex-Suid-Status: 1 0,1 0
Date: Thu, 16 Feb 2017 16:56:26 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <16410157605.20170216165626@yandex.ru>
To: "Matt D." <codespunk+cygwin AT gmail DOT com>, cygwin AT cygwin DOT com
Subject: Re: Cannot access volumes mounted with 'mklink /d' which point to a volume UUID
In-Reply-To: <58A4741E.5020408@gmail.com>
References: <58A4741E DOT 5020408 AT gmail DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id v1GE61eU011025

Greetings, Matt D.!

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

$ (mountvol; cmd /C dir /N) | iconv -f CP866; dir sd?1/

...

    \\?\Volume{80006d80-c2bb-4297-93c1-2f6d1a2a8acb}\
        C:\
        C:\dev\sda1\

    \\?\Volume{6833c423-2223-11e4-b07d-806e6f6e6963}\
        *** НЕТ ТОЧЕК ПОДКЛЮЧЕНИЯ ***

    \\?\Volume{9d412aba-0e54-4628-9c6b-b84fb18d062a}\
        *** НЕТ ТОЧЕК ПОДКЛЮЧЕНИЯ ***

    \\?\Volume{6833c424-2223-11e4-b07d-806e6f6e6963}\
        *** НЕТ ТОЧЕК ПОДКЛЮЧЕНИЯ ***

    \\?\Volume{51810762-adac-11e4-9801-902b3437d8e4}\
        W:\

    \\?\Volume{152b5e11-3180-11e4-9bb8-806e6f6e6963}\
        R:\

...

13.08.2016  23:13    <DIR>          .
13.08.2016  23:13    <DIR>          ..
21.08.2015  00:30    <JUNCTION>     sda1 [\\?\Volume{80006d80-c2bb-4297-93c1-2f6d1a2a8acb}\]
31.08.2014  23:57    <JUNCTION>     sdb1 [\\?\Volume{9d412aba-0e54-4628-9c6b-b84fb18d062a}\]
31.08.2014  23:55    <JUNCTION>     sdc1 [\\?\Volume{6833c423-2223-11e4-b07d-806e6f6e6963}\]
31.08.2014  23:55    <JUNCTION>     sdd1 [\\?\Volume{6833c424-2223-11e4-b07d-806e6f6e6963}\]
16.02.2017  13:43    <DIR>          temp

...

sda1/:
$Recycle.Bin  Documents\ and\ Settings  hiberfil.sys  Program\ Files               Users
arc           DrWeb                     home          Program\ Files\ (x86)        usr
Config.Msi    DrWeb\ Quarantine         os792636.bin  ProgramData                  var
cygwin        ftn                       pagefile.sys  Programs                     Windows
dev           Games                     PerfLogs      System\ Volume\ Information

sdb1/:
$RECYCLE.BIN  DirectoryHotlist.reg  Program\ Files  reg   System\ Volume\ Information
dev           Fraps                 Programs        reg~  url.nobrain

sdc1/:
$RECYCLE.BIN        EDIUS-Data     Profiles  src                          usr
10-remote-vpn.conf  eventcuts.zip  Programs  System\ Volume\ Information  var
CapCharges.jpg      FCPF9C.html    RECYCLER  temp                         VirtualBox
default.wjr         ftn            REINST    Thumbs.db                    VirtualPad
Disks               Other          Reserv    Track12-2.wav                xD-2010-07-23.rar

sdd1/:
$RECYCLE.BIN  arc  Games  Scratch  System\ Volume\ Information


-- 
With best regards,
Andrey Repin
Thursday, February 16, 2017 16:55:19

Sorry for my terrible english...
--
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


- Raw text -


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