X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=3.0 required=5.0	tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT
X-Spam-Check-By: sourceware.org
Date: Thu, 26 Aug 2010 06:34:20 +0400
From: Andrey Repin <anrdaemon@freemail.ru>
Reply-To: Andrey Repin <cygwin@cygwin.com>
Message-ID: <11810618981.20100826063420@mtu-net.ru>
To: "Charles D. Russell" <worwor@bellsouth.net>, cygwin@cygwin.com
Subject: Re: associating device names with cygdrive directories
In-Reply-To: <4C758020.4070501@bellsouth.net>
References: <4C758020.4070501@bellsouth.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Greetings, Charles D. Russell!

>   Maybe it won't always work, but with debian "mount" I get the 
> following line of output, which tells me what I want to know (and more):

> /dev/sda1 on /live/image type vfat 
> (rw,noatime,fmask=0022,dmask=0022,allow_utime=177777,codepage=cp437,iocharset=utf8)

> I infer from the replies that in Cygwin there is no easier way to find 
> my way around in /dev than the way I was doing it, though I realize 
> "strings" is a better choice than "od".  With dd 
> if=/dev/sda|strings|less I discovered that /dev/sda is actually my hard 
> drive.

It's a very rough guess, and only work in limited amount of instances.
You still have to check if the target device you got from mount table is
actually a block device.

And, please, use "reply" option when replying to list, instead of writing new
message.


--
WBR,
 Andrey Repin (anrdaemon@freemail.ru) 26.08.2010, <6:31>

Sorry for my terrible english...


--
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

