This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: associating device names with cygdrive directories


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]