delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/10/17/14:22:10

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Date: Wed, 17 Oct 2012 14:21:40 -0400 (EDT)
From: Gary Oberbrunner <garyo AT genarts DOT com>
To: cygwin AT cygwin DOT com
Message-ID: <1446995784.289823.1350498100716.JavaMail.root@genarts.com>
In-Reply-To: <139630876.289726.1350497632770.JavaMail.root@genarts.com>
Subject: Mount Windows C drive as POSIX root?
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

I understand about not installing cygwin in c:\.  But I really want a single filesystem, so cygwin's / is Windows c:/, and cygwin /Program\ Files is Windows /Program Files and so on.  I have an environment with lots of non-cygwin tools and translating paths between them is not workable.

I'm not really doing cygwin-based software development (not using gcc etc.); I just want cygwin for its utilities, so "ls /Windows" works the same as "dir \Windows".

For years I've done this by installing cygwin into c:\cygwin, and adjusting the /etc/fstab mount points so everything works.  My fstab looks like this:

c:/             /       ntfs    binary,override
c:/cygwin/etc   /etc    ntfs    binary,override
c:/cygwin/usr   /usr    ntfs    binary,override
c:/cygwin/bin  /usr/bin        ntfs    binary,override
c:/cygwin/lib  /usr/lib        ntfs    binary,override
c:/cygwin/var   /var    ntfs    binary,override
c:/cygwin/dev   /dev    ntfs    binary,override
c:/cygwin/lib  /lib    ntfs    binary,override
c:/cygwin/proc  /proc   ntfs    binary,override
c:/cygwin/srv   /srv    ntfs    binary,override

But as I'm installing a new machine with a fresh cygwin, this no longer works.  The mounts in fstab don't take effect (though interestingly c:/ -> / does work), and it then can't find /etc and many things then don't work.

I can manually mount it from a bash shell, but putting it in fstab doesn't work as it used to.

Is this still a plausible setup for 1.7?  Is there a better way?

-- Gary Oberbrunner

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