Re: Relating device names in /dev/ to drive letters in Windows.

2020-07-28 Thread Hamish McIntyre-Bhatty via Cygwin
Corinna wrote: > In theory, the Cygwin DLL has to provide stuff through ioctl's after > opening the device file. There are already quite a few ioctl's > supported, namely > > HDIO_GETGEO, BLKGETSIZE, BLKGETSIZE64, BLKRRPART, BLKSSZGET, BLKIOMIN, > BLKIOOPT, BLKPBSZGET, BLKALIGNOFF, RDIOCDOP

Re: Relating device names in /dev/ to drive letters in Windows.

2020-07-27 Thread Brian Inglis
On 2020-07-27 05:24, Hamish McIntyre-Bhatty via Cygwin wrote: Please maintain threading using Reply to List or Reply/All to keep the discussion together in email clients using proper References headers for threads, rather than just Subject, and also please retain some quoted context for your

Re: Relating device names in /dev/ to drive letters in Windows.

2020-07-27 Thread Corinna Vinschen
On Jul 27 12:24, Hamish McIntyre-Bhatty via Cygwin wrote: > 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

Re: Relating device names in /dev/ to drive letters in Windows.

2020-07-27 Thread Hamish McIntyre-Bhatty via Cygwin
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

Re: Relating device names in /dev/ to drive letters in Windows.

2020-07-24 Thread Brian Inglis
On 2020-07-23 03:36, Hamish McIntyre-Bhatty via Cygwin wrote: > 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

Re: Relating device names in /dev/ to drive letters in Windows.

2020-07-24 Thread Corinna Vinschen
On Jul 23 12:29, Hamish McIntyre-Bhatty via Cygwin wrote: > On 23/07/2020 10:36, Hamish McIntyre-Bhatty wrote: > > 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

Re: Relating device names in /dev/ to drive letters in Windows.

2020-07-23 Thread Hamish McIntyre-Bhatty via Cygwin
On 23/07/2020 10:36, Hamish McIntyre-Bhatty wrote: > 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

Relating device names in /dev/ to drive letters in Windows.

2020-07-23 Thread Hamish McIntyre-Bhatty via Cygwin
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