From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4061 invoked by alias); 29 Jul 2011 13:34:38 -0000 Received: (qmail 3811 invoked by uid 22791); 29 Jul 2011 13:34:37 -0000 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 Received: from david.siemens.de (HELO david.siemens.de) (192.35.17.14) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 29 Jul 2011 13:34:23 +0000 Received: from mail2.siemens.de (localhost [127.0.0.1]) by david.siemens.de (8.13.6/8.13.6) with ESMTP id p6TDYLUi031862 for ; Fri, 29 Jul 2011 15:34:21 +0200 Received: from DEMCHP99ET1MSX.ww902.siemens.net (demchp99et1msx.ww902.siemens.net [139.25.131.180]) by mail2.siemens.de (8.13.6/8.13.6) with ESMTP id p6TDYLuR019985 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=FAIL) for ; Fri, 29 Jul 2011 15:34:21 +0200 Received: from DEMCHP99E84MSX.ww902.siemens.net ([169.254.1.172]) by DEMCHP99ET1MSX.ww902.siemens.net ([139.25.131.180]) with mapi; Fri, 29 Jul 2011 15:34:21 +0200 From: "Schwarz, Konrad" To: "cygwin@cygwin.com" Date: Fri, 29 Jul 2011 13:34:00 -0000 Subject: RE: Device names in /proc/mounts Message-ID: <9B10FEAACF062F48A095880A451FF05903819B331A@DEMCHP99E84MSX.ww902.siemens.net> References: <20110729092027.GA19240@calimero.vinschen.de> In-Reply-To: <20110729092027.GA19240@calimero.vinschen.de> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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/msg00376.txt.bz2 > > Can you answer the following question: > >=20 > > Given a volume label, how does one figure out where the=20 > corresponding=20 > > volume has been mounted into the Cygwin namespace? >=20 > We're not mounting volumes, we're mounting Win32 paths.=20=20 > There is no direct correspondence between volumes and Cygwin=20 > 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