delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/02/05/15:24:49

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=s6whOZY93eumt1r0
nXbNmoeQ5KInrpQ1rot8sxpO6LvbP2J2Ak82sjUWAoPXRDCgbG5wJqpPespSHH9m
6Ukghycg0oO5dq9ObsE+hbO+iZ1JIFL/urUijJauxsugHWvz1gIrhUnF6nQGDFLd
pTxg5kGQKEgBJRRAvZGH+MXJN+I=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=Jkf98EdBWwqVujF9BHlwYw
wUi/Q=; b=H+wa3gggzXuzxuA1zn/PXy6+VrdDmP5DnF8YYYS9cK+gRuh5kaA3c3
eXW7sAADUpy+4e0Ts72dWrJzMqQcXiTUtF7WO6EMj2NH2Zw5geGu750W9vQsXA3k
tI6YqSeDs+ORtwjfYCGMEXk+fxyOAEarHVQGqbZ56kc4vOLNr9g4E=
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=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=cyg
X-HELO: mail-it0-f45.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=A3FD83zcJ4qtukoXykr0bodK/t1Rl0wfjzREoY9rqII=; b=PoOebhaDkW5bX0CWrexO4/51Hch07hVYptzN5c8AlEsB0ckmoxhoLcpfQMFEo1irwV VCrACZINyvWAStSi3qopJ2qy09bsb7gCi0OcGqD1Cfnu7IVQsENOFhZRx7mNakmwJisk rK3/B1iDTNpDZmJ127D4FEjR73tCWPPcR8VpWySL8cXoAF/fVTJMWpkZFoRjJHweMThU rNitp8lqLcaFOKzd//xvQOv86PMfW927tSrKHsC2kNX4E/rinZu4rOyp5IstD5LQAUeG QjR4VNwMRz19kflrTEtrh8vUh5N1BVo/xW8eJFfIhyvp9ygXrBL2ecNt5Z01L6oEzcbg K1rw==
X-Gm-Message-State: AIkVDXKuC/auwWnSLK62IPTeFFqUiEPwCYkXIDFpKU4cSxGxyVij6ZDOLBS+FtEzwQnlvw==
X-Received: by 10.36.205.194 with SMTP id l185mr4980871itg.87.1486326250490; Sun, 05 Feb 2017 12:24:10 -0800 (PST)
Subject: Re: Is it OK to mount cygdrive on / ?
To: cygwin AT cygwin DOT com
References: <CAPzS6u_N5qnKOYJejdxfBWCzbc3tn=iyqEEyP5E_Vwp7RCC-KA AT mail DOT gmail DOT com>
From: cyg Simple <cygsimple AT gmail DOT com>
Message-ID: <fc0aa8ee-6166-4b4e-5333-65bded11b2d0@gmail.com>
Date: Sun, 5 Feb 2017 15:23:34 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0
MIME-Version: 1.0
In-Reply-To: <CAPzS6u_N5qnKOYJejdxfBWCzbc3tn=iyqEEyP5E_Vwp7RCC-KA@mail.gmail.com>
X-IsSubscribed: yes

On 2/3/2017 4:09 PM, Rustam wrote:
> I've added an extra / mountpoint in /etc/fstab in order to be able to
> access C: without /cygdrive like this:
> 
> none /cygdrive cygdrive binary,posix=0,user 0 0
> none /         cygdrive binary,posix=0,user 0 0
> 
> It seems to work, I can access the C: drive with just /c.
> 
> But normally an "ls /cygdrive" should list the drives, whereas "ls /"
> lists the contents of the Cygwin root. So it seems there are now two
> root mountpoints overlaying each other.
> 
> So I was wondering if my approach is if this is technically undefined
> behavior and might conceivably break something or is it OK (less the
> drive listing limitation mentioned above).
> 

I've used the / as /cygdrive since the beginning of /cygdrive.  The
issue you see is the fact that Cygwin doesn't require a physical
directory to mount as Linux and friends do.  If you want to see them
then you simply create a physical empty directory in the Cygwin root
directory.  I do find it interesting that the mount also changes the
output of `ls /proc/cygdrive/` but that is a different issue.

Another method to see which drive letters are available is to simply
type mount at the command prompt.

-- 
cyg Simple

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