www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/26/08:17:26

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 26 Aug 2010 14:17:13 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: associating device names with cygdrive directories
Message-ID: <20100826121713.GI6726@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4C757349 DOT 902 AT bellsouth DOT net> <20100825200335 DOT GA14607 AT ednor DOT casa DOT cgf DOT cx> <0105D5C1E0353146B1B222348B0411A20946F38B4B AT NIHMLBX02 DOT nih DOT gov> <20100826112641 DOT GB21513 AT calimero DOT vinschen DOT de> <i55lme$egd$1 AT dough DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <i55lme$egd$1@dough.gmane.org>
User-Agent: Mutt/1.5.20 (2009-06-14)
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

On Aug 26 08:11, Rolf Campbell wrote:
> On 2010-08-26 07:26, Corinna Vinschen wrote:
> >I have another one:
> >
> >   $ for F in /dev/s* ; do echo "$F    $(cygpath -w $F)" ; done
> >   /dev/sda    \\.\PhysicalDrive0
> >   /dev/sda1    \\.\STORAGE#Volume#{781f8bd6-7d0d-11de-8012-806e6f6e6963}#0000000000100000#{53f5630d-b6bf-11d0-94f2-00a0c91efb8b}
> >   /dev/sda2    \\.\Volume{781f8bda-7d0d-11de-8012-806e6f6e6963}
> >   /dev/sda3    \\.\D:
> >
> >but there are two problems.
> >
> >Up to the current Cygwin 1.7.6 the info from /proc/partitions is
> >incomplete for non-privileged users.  I just checked in a patch to
> >Cygwin which allows the full partition info also for non-priv'ed users.
> >
> >Apart from that, the output of cygpath -w for devices isn't overly
> >helpful yet.  I look into improving that a bit.
> >
> >
> >Corinna
> >
> 
> When I run "echo /dev/s*", I only get "/dev/shm /dev/stderr
> /dev/stdin /dev/stdout", how/why is yours showing the drive devices?

I got tangled up in copy/paste.  Actually the statement should have been:

  for F in $(gawk '{if (FNR > 2) print "/dev/" $4;}' /proc/partitions);
  do
    echo "$F    $(./cygpath -w $F)";
  done


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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