From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) by sourceware.org (Postfix) with ESMTPS id 505173854814 for ; Thu, 4 Mar 2021 19:44:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 505173854814 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lHttW-0000Nh-Ur for cygwin@cygwin.com; Thu, 04 Mar 2021 20:44:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: cygwin@cygwin.com From: Oleksandr Gavenko Subject: Re: Access WSL files from cygwin Date: Thu, 04 Mar 2021 21:44:16 +0200 Organization: Oleksandr Gavenko , http://defun.work/ Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain 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@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Mar 2021 19:44:26 -0000 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/