delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/02/03/16:33:28

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=WesqBiuxO3lI3hM4
odIEm9a46MASVF/lsSD53Dy9NZLmsPKBiuvDn/cTQNjgD4WILD5TRVujgzSXdQDt
NlNKzjj/PrMU8uvO4QJNs0Pj0VXRGlqYxB4angEMBmuiIxFTU90t/of+v+cjKCyo
Xyo9tsX2niIYMSRuXxkYi/j7mig=
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=zUFdAXZTfRRdAt1lhaD9Vy
ybq5A=; b=E/nFecWmKbkpou84oNcNP/BF0cOpfiGYyui0aamAEqy/PpV7xZ7lw5
cIVY8iZ+9HooKB797EVggWAdfoJgMs3PvufBQdRPfBJFlcYa3RPJldGI9YzDjffj
lnn6ss5Re0zMgpOzx0/V2deqf8407Kq8ZX9ThUEXGp58WpFLJBDDY=
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=1.2 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=PE, wells, H*r:ip*14.3.339.0, Hx-spam-relays-external:14.3.339.0
X-HELO: EMP-EXED101.leidos.com
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: "Wells, Roger K." <wellsr AT leidos DOT com>
Message-ID: <c4f52c91-7d54-673e-0ab8-85885055ba9c@leidos.com>
Date: Fri, 3 Feb 2017 16:33:01 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
MIME-Version: 1.0
In-Reply-To: <CAPzS6u_N5qnKOYJejdxfBWCzbc3tn=iyqEEyP5E_Vwp7RCC-KA@mail.gmail.com>
X-IsSubscribed: yes

On 02/03/2017 04:10 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).
>
> Thanks,
> Rustam

The way that I do it (and have for a long time) is a line in my 
.bash_profile file:
mount --change-cygdrive-prefix /

then ls /c does what you want
but ls / may not

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


-- 
Roger Wells, P.E.
leidos
221 Third St
Newport, RI 02840
401-847-4210 (voice)
401-849-1585 (fax)
roger DOT k DOT wells AT leidos DOT com


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