public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Relating device names in /dev/ to drive letters in Windows.
@ 2020-07-27 11:24 Hamish McIntyre-Bhatty
  2020-07-27 12:44 ` Corinna Vinschen
  2020-07-27 13:10 ` Brian Inglis
  0 siblings, 2 replies; 8+ messages in thread
From: Hamish McIntyre-Bhatty @ 2020-07-27 11:24 UTC (permalink / raw)
  To: Cygwin General Mailing List


[-- Attachment #1.1.1: Type: text/plain, Size: 995 bytes --]

Thanks Corinna and Brian.

smartmontools does help - I can see make and model, which is definitely
helpful.

Oh, I guess I just didn't have blkid installed then. I'll fix that.

Brian,

I'd be happy to attempt implementing this, but I'm not sure where to
start. With the information you've given me I should be able to figure
something out, but I'm not sure how this is done in Linux/a POSIX
compliant way. Would be be through a file and directory structure or
through some libraries?

I know a little bit of C and C++, so if I do have to write a library I
should be able to muddle through, and probably learn quite a lot, but
I'm not sure quite where to start here, with either the Linux side or
the Cygwin side (would this be part of the Cygwin DLL?).

I'm aware this might not be the right mailing list, but would appreciate
if anyone knowledgeable in this area could give me a few pointers to
help me get started - I'd love to contribute more to Cygwin :)

Hamish


[-- Attachment #1.1.2: 0x87B761FE07F548D6.asc --]
[-- Type: application/pgp-keys, Size: 3235 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Relating device names in /dev/ to drive letters in Windows.
@ 2020-07-23  9:36 Hamish McIntyre-Bhatty
  2020-07-23 11:29 ` Hamish McIntyre-Bhatty
  2020-07-24 16:26 ` Brian Inglis
  0 siblings, 2 replies; 8+ messages in thread
From: Hamish McIntyre-Bhatty @ 2020-07-23  9:36 UTC (permalink / raw)
  To: The Cygwin Mailing List


[-- Attachment #1.1.1: Type: text/plain, Size: 578 bytes --]

Hi all,

I have noticed that after plugging in a USB drive, device files appear
in /dev that correlate to the partitions on the drive.

This is great because it means things like ddrescue can work in Cygwin,
but I'm not yet sure how to relate these to the drives Windows sees.
None of the standard Linux tools I use to gather system information
(lsblk, blkid, lshw) seem to be available on Cygwin. I'm guessing this
is because they won't work because there's no kernel or low level
hardware access or something like that. Does anyone know how to do this?

Hamish


[-- Attachment #1.1.2: 0x87B761FE07F548D6.asc --]
[-- Type: application/pgp-keys, Size: 3235 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-07-28 21:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.96674.1595867913.8982.cygwin@cygwin.com>
2020-07-28 21:36 ` Relating device names in /dev/ to drive letters in Windows Hamish McIntyre-Bhatty
2020-07-27 11:24 Hamish McIntyre-Bhatty
2020-07-27 12:44 ` Corinna Vinschen
2020-07-27 13:10 ` Brian Inglis
  -- strict thread matches above, loose matches on Subject: below --
2020-07-23  9:36 Hamish McIntyre-Bhatty
2020-07-23 11:29 ` Hamish McIntyre-Bhatty
2020-07-24  8:45   ` Corinna Vinschen
2020-07-24 16:26 ` Brian Inglis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).