public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* win-mounts no longer displays anything when doing "cat /proc/partitions"
@ 2019-09-19 21:03 Hashim Aziz
  2019-09-19 22:50 ` Brian Inglis
  2019-09-20  7:56 ` Andrey Repin
  0 siblings, 2 replies; 3+ messages in thread
From: Hashim Aziz @ 2019-09-19 21:03 UTC (permalink / raw)
  To: cygwin

I've been using Cygwin loyally for almost 5 years now, and throughout that time have found the win-mounts column invaluable to find a drive or USB's /dev/sdX mapping, by doing cat /proc/partitions. I haven't run that command in a while, however, and today I realised that this functionality no longer seems to work - no Windows drive mapping information displays in the win-mounts column, so now I'm unable to determine which drive /dev/sdX corresponds to. See here<https://unix.stackexchange.com/a/379346/216754> for another user who also found this functionality no longer worked for them, which was my impetus in reporting this bug. That user is on Windows XP, and I'm on Windows 7. Maybe some testing could be done to confirm whether this problem is limited to those systems, or whether this really is a Cygwin-wide bug introduced in the last year or so.

Thanks,
Hashim

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

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

* Re: win-mounts no longer displays anything when doing "cat /proc/partitions"
  2019-09-19 21:03 win-mounts no longer displays anything when doing "cat /proc/partitions" Hashim Aziz
@ 2019-09-19 22:50 ` Brian Inglis
  2019-09-20  7:56 ` Andrey Repin
  1 sibling, 0 replies; 3+ messages in thread
From: Brian Inglis @ 2019-09-19 22:50 UTC (permalink / raw)
  To: cygwin

On 2019-09-19 13:51, Hashim Aziz wrote:
> I've been using Cygwin loyally for almost 5 years now, and throughout that
> time have found the win-mounts column invaluable to find a drive or USB's
> /dev/sdX mapping, by doing cat /proc/partitions.

> I haven't run that command in a while, however, and today I realised that
> this functionality no longer seems to work - no Windows drive mapping
> information displays in the win-mounts column, so now I'm unable to determine
> which drive /dev/sdX corresponds to.
> corresponds to. See here<https://unix.stackexchange.com/a/379346/216754> for 
> another user who also found this functionality no longer worked for them, 
> which was my impetus in reporting this bug. That user is on Windows XP, and 
> I'm on Windows 7.

XP is unsupported, but I believe Vista, 7, and 8 are still supported so far;
although Vista is no longer supported by MS, and W7 stops next January: Cygwin
support may go after that, if test systems are unavailable to developers.

> Maybe some testing could be done to confirm whether this problem is limited
> to those systems, or whether this really is a Cygwin-wide bug introduced in
> the last year or so.
Please run the following command and post the output, which looks okay on my
Win10 Home Cygwin 64 and 32 (may be redacted/tweaked for provacy/security):

$ head -n99 /proc/{mounts,partitions,version}
==> /proc/mounts <==
C:/.../cygwin64/bin /usr/bin ntfs binary,auto 1 1
C:/.../cygwin64/lib /usr/lib ntfs binary,auto 1 1
C:/.../cygwin64 / ntfs binary,auto 1 1
C: /proc/cygdrive/c ntfs binary,posix=0,user,noumount,auto 1 1
D: /proc/cygdrive/d ntfs binary,posix=0,user,noumount,auto 1 1
G: /proc/cygdrive/g ntfs binary,posix=0,user,noumount,auto 1 1

==> /proc/partitions <==
major minor  #blocks  name   win-mounts

    8     0 976762584 sda
    8     1    102400 sda1
    8     2     16384 sda2
    8     3 975593472 sda3   D:\
    8     4   1048576 sda4
    8    16 976762584 sdb
    8    17    131072 sdb1
    8    18    102400 sdb2
    8    19 975561267 sdb3   C:\
    8    20    498688 sdb4
    8    21    465920 sdb5   G:\
    8    32         0 sdc

==> /proc/version <==
CYGWIN_NT-10.0-17763 version 3.0.7-338.x86_64 (corinna@calimero) (gcc version
7.4.0 20181206 (Fedora Cygwin 7.4.0-1) (GCC) ) 2019-04-30 18:08 UTC


$ head -n99 /proc/{mounts,partitions,version}
==> /proc/mounts <==
C:/.../cygwin32/bin /usr/bin ntfs binary,auto 1 1
C:/.../cygwin32/lib /usr/lib ntfs binary,auto 1 1
C:/.../cygwin32 / ntfs binary,auto 1 1
C: /proc/cygdrive/c ntfs binary,posix=0,user,noumount,auto 1 1
D: /proc/cygdrive/d ntfs binary,posix=0,user,noumount,auto 1 1
G: /proc/cygdrive/g ntfs binary,posix=0,user,noumount,auto 1 1

==> /proc/partitions <==
major minor  #blocks  name   win-mounts

    8     0 976762584 sda
    8     1    102400 sda1
    8     2     16384 sda2
    8     3 975593472 sda3   D:\
    8     4   1048576 sda4
    8    16 976762584 sdb
    8    17    131072 sdb1
    8    18    102400 sdb2
    8    19 975561267 sdb3   C:\
    8    20    498688 sdb4
    8    21    465920 sdb5   G:\
    8    32         0 sdc

==> /proc/version <==
CYGWIN_NT-10.0-17763-WOW64 version 3.0.7-338.i686 (corinna@calimero) (gcc
version 7.4.0 20181206 (Fedora Cygwin 7.4.0-1) (GCC) ) 2019-04-30 18:04 UTC

You could also run the command below and post the output:

$ for disk in /dev/sd*; do echo -n $disk$'\t'; cygpath -m $disk; done
/dev/sda        //./Disk{4bd9b009-5d00-03ab-9832-ead73d535cfc}
/dev/sda1
//./STORAGE#Volume#{a999e3b3-bde9-11e8-aaeb-806e6f6e6963}#0000000000100000#{53f5630d-b6bf-11d0-94f2-00a0c91efb8b}
/dev/sda2       //./HarddiskVolume2
/dev/sda3       //./D:
/dev/sda4
//./STORAGE#Volume#{a999e3b3-bde9-11e8-aaeb-806e6f6e6963}#000000E8A0D00000#{53f5630d-b6bf-11d0-94f2-00a0c91efb8b}
/dev/sdb        //./Disk{5587aa19-93e2-7ba5-b246-3a88699f35dd}
/dev/sdb1       //./HarddiskVolume5
/dev/sdb2       //./Volume{a0840694-a9dc-4fcf-b01d-b16e175ba289}
/dev/sdb3       //./C:
/dev/sdb4       //./Volume{b89ebfd5-ce50-4e31-acc2-43bc66448219}
/dev/sdb5       //./G:
/dev/sdc        //./Disk{6f5f36e2-87ce-3295-78af-8635d1fc904b}
/dev/sdc1       //./E:

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

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

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

* Re: win-mounts no longer displays anything when doing "cat /proc/partitions"
  2019-09-19 21:03 win-mounts no longer displays anything when doing "cat /proc/partitions" Hashim Aziz
  2019-09-19 22:50 ` Brian Inglis
@ 2019-09-20  7:56 ` Andrey Repin
  1 sibling, 0 replies; 3+ messages in thread
From: Andrey Repin @ 2019-09-20  7:56 UTC (permalink / raw)
  To: Hashim Aziz, cygwin

Greetings, Hashim Aziz!

> I've been using Cygwin loyally for almost 5 years now, and throughout that
> time have found the win-mounts column invaluable to find a drive or USB's
> /dev/sdX mapping, by doing cat /proc/partitions. I haven't run that command
> in a while, however, and today I realised that this functionality no longer
> seems to work - no Windows drive mapping information displays in the
> win-mounts column, so now I'm unable to determine which drive /dev/sdX
> corresponds to.

$ mountvol
[ snip ]
Possible values for VolumeName along with current mount points are:

    \\?\Volume{80006d80-c2bb-4297-93c1-2f6d1a2a8acb}\
        C:\
        C:\dev\sda1\

    \\?\Volume{6833c423-2223-11e4-b07d-806e6f6e6963}\
        *** NO MOUNT POINTS ***

    \\?\Volume{6833c424-2223-11e4-b07d-806e6f6e6963}\
        *** NO MOUNT POINTS ***

    \\?\Volume{9d412aba-0e54-4628-9c6b-b84fb18d062a}\
        *** NO MOUNT POINTS ***

    \\?\Volume{6833c441-2223-11e4-b07d-806e6f6e6963}\
        *** NO MOUNT POINTS ***

    \\?\Volume{6833c442-2223-11e4-b07d-806e6f6e6963}\
        *** NO MOUNT POINTS ***

    \\?\Volume{6833c443-2223-11e4-b07d-806e6f6e6963}\
        *** NO MOUNT POINTS ***

    \\?\Volume{6833c444-2223-11e4-b07d-806e6f6e6963}\
        *** NO MOUNT POINTS ***

    \\?\Volume{1530eb84-587d-11e9-a744-902b3437d8e4}\
        W:\

    \\?\Volume{152b5e11-3180-11e4-9bb8-806e6f6e6963}\
        R:\

$ cat /proc/partitions
major minor  #blocks  name   win-mounts

    8     0  78150744 sda
    8     1    102400 sda1
    8     2    131072 sda2
    8     3  77916160 sda3   C:\ C:\dev\sda1\
    8    16 488386584 sdb
    8    17 486615520 sdb1
    8    32 312571224 sdc
    8    33 312568641 sdc1
    8    48 488386584 sdd
    8    49 488384512 sdd1
    8    64         0 sde
    8    80         0 sdf
    8    96         0 sdg
    8   112         0 sdh

Seems all right on this end.


-- 
With best regards,
Andrey Repin
Friday, September 20, 2019 1:36:47

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

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

end of thread, other threads:[~2019-09-19 22:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-19 21:03 win-mounts no longer displays anything when doing "cat /proc/partitions" Hashim Aziz
2019-09-19 22:50 ` Brian Inglis
2019-09-20  7:56 ` Andrey Repin

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