delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/12/20:46:19

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Mon, 12 May 2003 20:46:05 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "Larry Hall (RFK Partners, Inc.)" <lhall AT rfk DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: devices and mount points
In-Reply-To: <3EC02E9A.4090901@rfk.com>
Message-ID: <Pine.GSO.4.44.0305122038370.393-300000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

---559023410-1691952160-1052786765=:393
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Mon, 12 May 2003, Larry Hall (RFK Partners, Inc.) wrote:

> Robert Citek wrote:
> > Hello all,
> >
> > Is there an easy way to discover what device is mounted to what drive?
> >
> > Specifically, I have a CD drive.  If I put a CD into the drive, I can
> > access it at the filesystem level as /cygdrive/d/.  However, mount does not
> > tell me what device the CD drive is.  It only says d: is mounted on
> > /cygdrive/d/.  I eventually discovered that is was /dev/scd4, but not
> > before trying devices /dev/scd[0-3].
> >
> > To get a list of all devices I tried 'ls -la /dev/*' but that did not work.
> >  I also searched the archives using "CD device" and "/dev/ mount" but did
> > not see anything relevant.
> >
> > Any pointers?
>
> Cygwin mount is not the same as a UNIX mount.  It doesn't mention (or
> need) devices.  It's really just a mapping of one file system notation
> into another.  Cygwin emulates certain common UNIX devices but these are
> virtual.  They don't show up in the file system by default (you can create
> explicit names for them if you like).  The best way to find out the
> currently supported virtual devices is to grep through the Cygwin code
> for them.

Here are a couple of scripts (well, one's a batch file) I whipped up a
while ago to create physical zero-length files so that "ls /dev" works
correctly.  They should be run from "/cygdrive/c/cygwin/dev", the .bat
first, and then the .sh to create symbolic links.  I was going to suggest
putting them in the base-files package, but with the coming of mkdev(),
/dev will cease to be a virtual directory, so there is really no point.
Use 'em while you can! ;-)
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II

---559023410-1691952160-1052786765=:393
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="create_devices.bat"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine DOT GSO DOT 4 DOT 44 DOT 0305122046050 DOT 393 AT slinky DOT cs DOT nyu DOT edu>
Content-Description: 
Content-Disposition: attachment; filename="create_devices.bat"

QGVjaG8gb2ZmDQpSRU0gQ3JlYXRlIGRldmljZXMsIHBhcnQgMQ0KUkVNIEF1
dGhvcjogSWdvciBQZWNodGNoYW5za2kgPHBlY2h0Y2hhQGNzLm55dS5lZHU+
DQpSRU0NClJFTSBBbGwgZGV2aWNlcyBvZiBhIGNlcnRhaW4gdHlwZSB0byBi
ZSBjcmVhdGVkIC0gYWRkIGlmIG1vcmUgbmVlZGVkDQpzZXQgQUxMPTAgMSAy
IDMgNCA1IDYgNyA4IDkgMTAgMTEgMTIgMTMgMTQgMTUNCg0KUkVNIC0gY29u
c29sZSAoMSwqKQ0KZm9yICUlaSBpbiAoY29uaW4gY29ub3V0KSBkbyBlY2hv
IG9mZiA+ICUlaQ0KUkVNIC0gdHR5IG1hc3Rl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0KZm9yICUlaSBpbiAoemVybykgZG8gZWNobyBvZmYgPiAlJWkNClJFTSAt
IHJhbmRvbSAoMjEsKikNCmZvciAlJWkgaW4gKHJhbmRvbSB1cmFuZG9tKSBk
byBlY2hvIG9mZiA+ICUlaQ0KUkVNIC0gbWVtICgyMiwqKQ0KZm9yICUlaSBp
biAobWVtIHBvcnQpIGRvIGVjaG8gb2ZmID4gJSVpDQpSRU0gLSBjbGlwYm9h
cmQgKDIzLCopDQpmb3IgJSVpIGluIChjbGlwYm9hcmQpIGRvIGVjaG8gb2Zm
ID4gJSVpDQpSRU0gLSBkc3AgKDI0LCopDQpmb3IgJSVpIGluIChkc3ApIGRv
IGVjaG8gb2ZmID4gJSVpDQoNClJFTSBDcmVhdGUgcGlwZXMNCmZvciAlJWkg
aW4gKHBpcGUgcGlwZXIgcGlwZXcpIGRvIGVjaG8gb2ZmID4gJSVpDQpSRU0g
Q3JlYXRlIHNvY2tldHMNCmZvciAlJWkgaW4gKHRjcCB1ZHAgc3RyZWFtc29j
a2V0IGRnc29ja2V0KSBkbyBlY2hvIG9mZiA+ICUlaQ0KDQo=
---559023410-1691952160-1052786765=:393
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="create_devices.sh"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine DOT GSO DOT 4 DOT 44 DOT 0305122046051 DOT 393 AT slinky DOT cs DOT nyu DOT edu>
Content-Description: 
Content-Disposition: attachment; filename="create_devices.sh"

IyEvYmluL3NoDQojIENyZWF0ZSBkZXZpY2VzLCBwYXJ0IDINCiMgQXV0aG9y
OiBJZ29yIFBlY2h0Y2hhbnNraSA8cGVjaHRjaGFAY3Mubnl1LmVkdT4NCiMN
CiMgQ3JlYXRlIHN5bWJvbGljIGxpbmtzDQpbICEgLWUgY29uc29sZSBdICYm
IGxuIC1zIHR0eSBjb25zb2xlDQpbICEgLWUgZmxvcHB5IF0gICYmIGxuIC1z
IGZkMCBmbG9wcHkNClsgISAtZSBjZHJvbSBdICAgJiYgbG4gLXMgc2NkMCBj
ZHJvbQ0KWyAhIC1lIHRhcGUgXSAgICAmJiBsbiAtcyBzdDAgdGFwZQ0KWyAh
IC1lIGF1ZGlvIF0gICAmJiBsbiAtcyBkc3AgYXVkaW8NCg0K

---559023410-1691952160-1052786765=:393
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
---559023410-1691952160-1052786765=:393--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019