X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 757B83858C66
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1704746180;
	bh=4NRjZ84pzQftRpRuDTgW1nZTSPgjPohQyK46bOcUFBQ=;
	h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=WWbHAOphl1Tdhh8eOjjZhTBXq3j1CJCoMWA5rdYX33Xyb2MFYdWi3oboDTggK1E03
	 RaLwGwqNfH6DwDOcaUHZ8ypqyVPxHaOrPX3X+1P+Kut8L5mnGm40WiwIkPco+9Fb0v
	 f9hFEKlmUXcAH84jLbzePKFIVJlnSP8BVgKPAUT0=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 315773858C66
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 315773858C66
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704746110; cv=none;
 b=mHHn+3gmYu6GtjThQ73ci0bzsdJpS+RNkY98N3F01gjpC/6ABAqo+lpohSWt0fOzvBj2uZyw8Uj0+HZfOg7v7bH+L7VpBpDrwOnbPBUWqD5r8vwCr09HC5PvHYfZJKioNJwwonbm15e9mWVPGKvxxIHSlix36XDcvGTaQG6T2kU=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1704746110; c=relaxed/simple;
 bh=kgLQCGur+5T16MvdqlkbGMT1D0l8MDNfnyVpaQ7Z8l0=;
 h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version;
 b=ClB6T4h+S0kPvJb+VHOpcWpPTZev66HO1jVyffQTrKBfCadw4YX9YrDqkTe1Jrh2pSloNQ0VG5wmEJqFzWlgSYClQ5ofwDGPX/rzD7Jv/y14m4k/VSYmk6NF+a3ytk2ax8Jy4KkcIGzISgBwFdQ1RZk1RDimUVr1DlGs5BbH8+g=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Yandex-Fwd: 1
Date: Mon, 8 Jan 2024 23:15:16 +0300
X-Mailer: The Bat! (v9.3.4) Professional
Message-ID: <277350296.20240108231516@yandex.ru>
To: /dev /local/ca <devlocalca@gmail.com>, cygwin@cygwin.com
Subject: Re: How to map a NAS drive in /etc/fstab that is of type
In-Reply-To: <CAH5ok1=xWP0YPWsGA=HfgTCJaP_bUGoR3cMWdToF32WfFFSXEQ@mail.gmail.com>
References: <CAH5ok1=xWP0YPWsGA=HfgTCJaP_bUGoR3cMWdToF32WfFFSXEQ@mail.gmail.com>
MIME-Version: 1.0
X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT,
 NICE_REPLY_A, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP,
 T_SCC_BODY_TEXT_LINE,
 XM_LIGHT_HEAVY autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Andrey Repin via Cygwin <cygwin@cygwin.com>
Reply-To: cygwin@cygwin.com
Cc: Andrey Repin <anrdaemon@yandex.ru>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

Greetings, /dev /local/ca!

> What would an entry in */etc/fstab* look like on Windows to map a nas
> mapped drive N:

I strongly suggest using UNC paths for network mapping.

> When provisioning the drives, I selected file system type: btrfs

Unrelated to the original question.

> ---
> I am on Windows 10 Pro and want to access the drive with the path:  /n

You could instead configure cygdrive prefix as "/", but over time I've found
it having more caveats than I'd like to deal with.
So I deferred to a less conflicting /mnt

> It is mapped to my Windows machine as drive N: and when launching cygwin,
> it would be ideal if it is auto-mounted

It is already mounted, as Cygwin is a userspace library.
You just need to know where to look for it.

Standard places are

1. /proc/cygdrive/<letter> - always available regardless of mounting
configuration.
2. <cygdrive_prefix>/<letter> - user-defined mount root for Windows drives.
Default <cygdrive_prefix> is "/cygdrive", and example configuration you can
find in /etc/fstab. To mount Windows drives as simple /<letter>, you could define
<cygdrive_prefix> as "/".


-- 
With best regards,
Andrey Repin
Monday, January 8, 2024 23:05:44

Sorry for my terrible english...


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