X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-4.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: sourceware.org From: "Schwarz, Konrad" To: "cygwin AT cygwin DOT com" Date: Fri, 29 Jul 2011 15:34:19 +0200 Subject: RE: Device names in /proc/mounts Message-ID: <9B10FEAACF062F48A095880A451FF05903819B331A@DEMCHP99E84MSX.ww902.siemens.net> References: <20110729092027 DOT GA19240 AT calimero DOT vinschen DOT de> In-Reply-To: <20110729092027.GA19240@calimero.vinschen.de> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id p6TDYipg027369 > > 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. 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? -- 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