delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/09/19/17:59:18

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=fCt501Yu7XOju8yM
DWoAQb3MZMi012nzbrfTsIR9/BNeo1E/FOEpEiIwYIndEHyF6i33US8bhWgMAmzu
/rC64mrOcUEn3VRUyoUKW9yUQ8V/B20sSmnpsTHTEZ0rT+wRKGQkGuE92FiuxURZ
XV2i+psIjdZQUCOKDcxfHWKgeCY=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=YsV/JWscar3MbucqlwtH/9
54+dU=; b=qMdjmbyVE7KsLT8dZn6B1I0u5gpdxeWzV9zEv5K5KdZD8CfELtPebt
qXZgs6nr7Kokcq+qYIC5SNfg0Da23MbQ6NWIGNrxBb+Q4UQgwWllOVs1LZcs6+Fa
1xgL/GFgKR7u9cGjDnxR1RHk2evqODBoZ6uOj/1MKBorRLH514Wfk=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=vista, sk:corinna, Aziz, aziz
X-HELO: smtp-out-so.shaw.ca
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
Subject: Re: win-mounts no longer displays anything when doing "cat /proc/partitions"
To: cygwin AT cygwin DOT com
References: <AM4PR0101MB2258DDE0970BBD16BE40BB3FD5890 AT AM4PR0101MB2258 DOT eurprd01 DOT prod DOT exchangelabs DOT com>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Openpgp: preference=signencrypt
Message-ID: <4a56294a-09e5-6a4b-bb66-5c7c5ae4f274@SystematicSw.ab.ca>
Date: Thu, 19 Sep 2019 15:58:22 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <AM4PR0101MB2258DDE0970BBD16BE40BB3FD5890@AM4PR0101MB2258.eurprd01.prod.exchangelabs.com>
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019