This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: associating device names with cygdrive directories


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]