From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 84074 invoked by alias); 2 Mar 2020 16:56:40 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 84066 invoked by uid 89); 2 Mar 2020 16:56:40 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-104.9 required=5.0 tests=AWL,BAYES_50,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=mounted, sde, displays, aziz X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.130) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 02 Mar 2020 16:56:38 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N7gfa-1jVVnV2KiA-014mjU; Mon, 02 Mar 2020 17:56:35 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id E4C4FA82778; Mon, 2 Mar 2020 17:56:34 +0100 (CET) Date: Mon, 02 Mar 2020 16:56:00 -0000 From: Corinna Vinschen To: Hashim Aziz Cc: cygwin Subject: Re: cat /proc/partitions shows only devices, not partitions Message-ID: <20200302165634.GT4045@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: Hashim Aziz , cygwin References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="pgNHpQPJFoUYTAIP" Content-Disposition: inline In-Reply-To: X-SW-Source: 2020-03/txt/msg00017.txt --pgNHpQPJFoUYTAIP Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2090 On Mar 1 21:16, Hashim Aziz wrote: > This was an issue that I had previously in September of last year and > sent the issue to this mailing list ("win-mounts no longer displays > anything when doing "cat /proc/partitions") but the issue stopped > occurring before I could get around to diagnosing it. This issue has > now re-occurred and this time it seems permanent. When I run: >=20 > $ cat /proc/partitions > major minor #blocks name win-mounts >=20 > 8 0 0 sda > 8 16 0 sdb > 8 32 0 sdc > 8 48 0 sdd > 8 64 0 sde > 8 80 0 sdf >=20 > ...I see nothing at all in the win-mounts column. This makes it > impossible for me to see which Windows drive letter maps to which > /dev/sdX entry. On closer inspection, this seems to be because I'm not > actually seeing any partitions of my drives, even though there are > many - for example, I see /dev/sda but no /dev/sda1 or /dev/sda2, and > because it's the partitions that are mounted, it's this that seems to > result in me seeing nothing in the win-mounts column. I'm running > Cygwin on Windows 7 (yes I'm aware it's EOL). Fortunately I just started Windows 7 for another thread here, so I gave it a try myself: $ uname -a CYGWIN_NT-6.1 vmbert764 3.1.4(0.340/5/3) 2020-02-19 08:49 x86_64 Cygwin $ id -G | grep -Eq '\<544\>' && echo elevated || echo non-elevated non-elevated $ cat /proc/partitions major minor #blocks name win-mounts 8 0 54525952 sda 8 1 102400 sda1 8 2 54420480 sda2 C:\ So, https://cygwin.com/acronyms/#WJFFM This appears to be a local phenomenon only, either some permission problem, or some BLODA, a life virus scanner or something. Two questions come to mind: - Does it work in an elevated shell? - If you run this under strace, does it show anything unusual? We could take a look if you call strace -o cat.trace cat /proc/partitions and send the cat.trace file here (assuming it still doesn't work). Corinna --=20 Corinna Vinschen Cygwin Maintainer --pgNHpQPJFoUYTAIP Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl5dOsIACgkQ9TYGna5E T6CyXg/+Oz+aazMQbZ5gNGg4QBO7deRZChC+owY11aBrcZCfmUCtt8Kx4RGr/ACj ZmbXWFMMG/coKxmIthWzMvROe3A7cvRwJApJTKy0DSum0JW/aOvu/XTofgUNdq7n YYJ33vU5lK5Kp028/ZFOCGDwaMJqTFXKi81uyk3St5LIUEZyZZCeK06XC7pWv92E knEMbOYn4Z+Lm0w4vo9zo9/ucCbb6ecuAYvhuZr7qvMy0rK1Ti7ELb8pgysUnQZb TMd59Ldij2cDsbpt8MZOwwot63BuFGKrPu7+4wZrdlD0QJKwScdJ2j2uaWwnZZMI OrE5ucSpg0+hMGKi/XzE1yI1JaYuSKg1zPDCKtLZOopFI/KmQBtkWcSyMzeQaQOB oB3uJruiFCd3XijxJdyoKOz7efm16mMtrjjeDxU2WPAU1cQVcVjTKl2hzuulZpVb T892QtG10C7nbwNQAjGQMvgzohVo1Ow2p0eGCIAS2gVAA0F/+Of/mSEmWEVdothk JHFRc6WFySnDsfk1FcnP2sQLw7gT7cPHA966vl1jbkCm1Rnxgd4DeMrqfuWXjNbk dJyGngKAynuXYwlMecm2sVSNbex9Fq0/y8s9iw/7dBtAp5Hjunecoz/GVHrJHPD4 8cgTuEIHBC6zFAawsw6npn+IX0rZMcUE8UdOPCYRrRCKvNv9Wck= =/snI -----END PGP SIGNATURE----- --pgNHpQPJFoUYTAIP--