delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/03/04/14:44:31

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D6A7E3861817
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1614887068;
bh=CnZcSPrIy0FuS9pk/60e4PyLX8wkHTPnXYdxukemnNA=;
h=To:Subject:Date:References:List-Id:List-Unsubscribe:List-Archive:
List-Post:List-Help:List-Subscribe:From:Reply-To:From;
b=GCA2LgJlGloIimX9tDgJU8euqTd2Gl60UwPlD6EP2W7D/WGfzfWoy/3y+GQrdu/P2
BPayaofHgOAyxZGpYG34PRtKzeRK1+d1G5JWZD6PGq4us5b3/5FwF4Rio4VVqxStpc
9zxWrLxL16PTsj5kLMDt2wEKT8Swe96YZ/KZkUQk=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 505173854814
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
Subject: Re: Access WSL files from cygwin
Date: Thu, 04 Mar 2021 21:44:16 +0200
Organization: Oleksandr Gavenko <gavenkoa AT gmail DOT com>, http://defun.work/
Message-ID: <vriu1rcuiu0f.fsf@gavenkoa.example.com>
References: <CAEF1h+VM8hHaf_ncb99udUewWz03LuZ6O2b-L6_134Qvn4V2jw AT mail DOT gmail DOT com>
Mime-Version: 1.0
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (cygwin)
Cancel-Lock: sha1:rxqC1wQR6pHTeUlMYZJ0VqQtVV0=
X-Spam-Status: No, score=2.9 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,
FORGED_GMAIL_RCVD, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,
HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_OTHER_BAD_TLD,
NML_ADSP_CUSTOM_MED, PDS_OTHER_BAD_TLD, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Level: **
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Oleksandr Gavenko via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Oleksandr Gavenko <gavenkoa AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On 2021-02-07, Cary Lewis via Cygwin wrote:

> Is there a way to access files from a WSL 2 Linux distro from Cygwin?
>
> From Windows:
>
> \\wsl$\Ubuntu is accessible from Windows Explorer, but cygwin does not seem
> to recogonize:
>
> //wsl\$

I use following fstab to get access to WSL 1:

//wsl$/debian /wsl/debian      ntfs binary,posix=0,user,noacl,notexec 0 0
//wsl$/ubuntu /wsl/ubuntu      ntfs binary,posix=0,user,noacl,notexec 0 0
//wsl$/alpine /wsl/alpine      ntfs binary,posix=0,user,noacl,notexec 0 0

There are problems to access some files (their attributes) but they are
special like /dev...

I have never tried WSL 2. I believe it uses P9 network fs.

Probably you have to use full distro names as reported by:

  wslconfig.exe /list

not just '//wsl$'.

See following:

https://devblogs.microsoft.com/commandline/whats-new-for-wsl-in-windows-10-version-1903/
  Announce of P9 server for WSL compatible with UNC.

Cygwin works with UNC according to the doc, that's why I tried it with fstab.

-- 
http://defun.work/

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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