From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 114122 invoked by alias); 3 Feb 2017 21:33:16 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 112900 invoked by uid 89); 3 Feb 2017 21:33:15 -0000 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 Received: from emp-exed101.leidos.com (HELO EMP-EXED101.leidos.com) (149.8.144.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 03 Feb 2017 21:33:05 +0000 Received: from EMP-EXMR104.corp.leidos.com (10.128.180.235) by EMP-EXED101.leidos.com (149.8.144.51) with Microsoft SMTP Server (TLS) id 14.3.339.0; Fri, 3 Feb 2017 15:33:03 -0600 Received: from [10.40.90.15] (149.8.144.232) by EMP-EXMR104.corp.leidos.com (10.128.180.235) with Microsoft SMTP Server (TLS) id 14.3.339.0; Fri, 3 Feb 2017 15:33:01 -0600 Subject: Re: Is it OK to mount cygdrive on / ? To: References: From: "Wells, Roger K." Message-ID: Date: Fri, 03 Feb 2017 21:33:00 -0000 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: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00048.txt.bz2 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.k.wells@leidos.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