From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10608 invoked by alias); 29 Jul 2011 20:16:42 -0000 Received: (qmail 10524 invoked by uid 22791); 29 Jul 2011 20:16:20 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Fri, 29 Jul 2011 20:16:02 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 2C8232C0636; Fri, 29 Jul 2011 22:15:57 +0200 (CEST) Date: Fri, 29 Jul 2011 20:16:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Device names in /proc/mounts Message-ID: <20110729201556.GA13084@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20110729092027.GA19240@calimero.vinschen.de> <9B10FEAACF062F48A095880A451FF05903819B331A@DEMCHP99E84MSX.ww902.siemens.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <9B10FEAACF062F48A095880A451FF05903819B331A@DEMCHP99E84MSX.ww902.siemens.net> User-Agent: Mutt/1.5.21 (2010-09-15) 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 X-SW-Source: 2011-07/txt/msg00390.txt.bz2 On Jul 29 15:34, Schwarz, Konrad wrote: > > > Can you answer the following question: > > > > > > Given a volume label, how does one figure out where the > > corresponding > > > volume has been mounted into the Cygwin namespace? > > > > We're not mounting volumes, we're mounting Win32 paths. > > There is no direct correspondence between volumes and Cygwin > > mount points. > > When a person inserts removable media (USB memory stick, optical disk, ...), > Windows assigns a more-or-less random drive letter. > Cygwin automatically makes this drive letter available > under /cygdrive/ (or whatever the user has renamed /cygdrive to). > > Given a (unique) volume label or disk UUID, blk_id(8) on > both Linux and Cygwin tells you the disk and partition > in /dev/sdXY format. It does? Interesting. Where does it get the data under Cygwin? > In Linux, you can look up the mount point for device /dev/sdXY > in /proc/mounts or in the output of mount(8). Thus, given > a volume label, you can figure out where to access the files > on the volume. > > How do you do that in Cygwin? ls /cygdrive. Insert the disk. ls /cygdrive again. There's a new directory entry now. Or, open the "Computer" Window on your desktop. 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