From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1339 invoked by alias); 25 Nov 2015 19:06:09 -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 1328 invoked by uid 89); 25 Nov 2015 19:06:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_50,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: nihxway3out.hub.nih.gov Received: from nihxway3out.hub.nih.gov (HELO nihxway3out.hub.nih.gov) (128.231.90.111) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Wed, 25 Nov 2015 19:06:07 +0000 X-SBRS-Extended: Low X-IronPortListener: Outbound_SMTP X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2A+BQABBlZW/4lHKJxegzuBSMAngz2CUgKBQzwQAQEBAQEBAX8LhDQBAQEDARIoPxACAQgNCwoUEB8TJQIEDg0aiAQIo1qaXAEBAQEBAQQBAQEBAQEBHIZWhHyEW4NJgRUFkm+DaAEOjSaJN5MnOCuEBIUXAYEGAQEB X-IPAS-Result: A2A+BQABBlZW/4lHKJxegzuBSMAngz2CUgKBQzwQAQEBAQEBAX8LhDQBAQEDARIoPxACAQgNCwoUEB8TJQIEDg0aiAQIo1qaXAEBAQEBAQQBAQEBAQEBHIZWhHyEW4NJgRUFkm+DaAEOjSaJN5MnOCuEBIUXAYEGAQEB Received: from unknown (HELO msgb03.nih.gov) ([156.40.71.137]) by nihxway3out.hub.nih.gov with ESMTP/TLS/AES256-SHA; 25 Nov 2015 14:06:04 -0500 Received: from MSGB09.nih.gov ([169.254.9.96]) by msgb03.nih.gov ([169.254.3.160]) with mapi id 14.03.0235.001; Wed, 25 Nov 2015 14:06:04 -0500 From: "Buchbinder, Barry (NIH/NIAID) [E]" To: "cygwin@cygwin.com" CC: cyg Simple Subject: RE: Ability to specify /cygdrive mount value in setup Date: Wed, 25 Nov 2015 19:17:00 -0000 Message-ID: <6CF2FC1279D0844C9357664DC5A08BA21BC3C014@msgb09.nih.gov> References: <5655DA23.1090908@gmail.com> <452598469.20151125193908@yandex.ru> In-Reply-To: <452598469.20151125193908@yandex.ru> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2015-11/txt/msg00404.txt.bz2 Andrey Repin sent the following at Wednesday, November 25, 2015 11:39 AM >On 11/25/2015 10:56 AM, cyg Simple wrote: >> I find /cygdrive/ just unbearable and I always change it to / after an >> install. The issue with this is that post install activities will >> create symlinks using /cygdrive moniker so I must go change those if I >> find them. > >Just which activities? I haven't seen any. And I do remap /cygdrive to / >at all times. I grepped everything in and under /etc for cygdrive. The only hits were /etc/fstab and /etc/postinstall/000-cygwin-post-install.sh.done, and the latter was just setting up the former. So I have to ask, what's creating these shortcuts? The idea that setup or the post-install scripts create symlinks that point to things that are not under / and need to be accessed as, for example, /cygdrive/d (=3D D:\) seems very strange. >> Would it be possible for setup to ask for the value and >> setup the /etc/fstab with the value? Do others find this bit of annoyin= g? > >You can precreate fstab, I think. Maybe you could do a 3-step install? - minimal install. - fix fstab. - install optional packages. Another (partially tested) idea: Create a folder in / named /cygdrive. Then create a symlink in it for each drive, where the symlink points to the drive and is named as the drive letter. That seems to work for some purposes, e.g., cd /cygdrive/d/dir/ goes to /d, though the CWD will be /cygdrive/d/dir, not /d/DIR. YMMV. But pre-creating c:\cygwin\etc\fstab seems like the best option. Good Luck. - Barry Disclaimer: Statements made herein are not made on behalf of NIAID. -- 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