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: List-Subscribe: List-Archive: List-Post: List-Help: , 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: From: cyg Simple Message-ID: 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: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit 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