delorie.com/archives/browse.cgi | search |
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:date:from:to:cc:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=r/KvY1AOP+gL09ROHWcMq0xN6AxDOfH47Arm5GhiycvIFrvlebFIh | |
oCe9ORTahHAYIrsirAAmopQOiF2rOxOKgR2+prnB69rD0pYSCQ1vtwejdE7/M8Dk | |
9LVnakZEAppbf/8U/yWnqEzIczPVdx/UujNjvuQ4uvilzrLusU/Qj8= | |
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:date:from:to:cc:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=R/hut8aZhSr2sCA2YLi83DC6khc=; b=wfYjnEPkoYELNU29C687zIWormtE | |
OCfT7w/jrjYIv9xiJo/1UFpEhoXVMdCxKdKOptCDCPdLWmKdJtCuQp+QuXBBPJWo | |
mqxcbBDn0ZSbrytUolWQyHxSI7GNbak9jI4+MH6Mtdg13rSOoSeEpARwVIP4egGy | |
SJZoW3nW0N+dWcg= | |
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=-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 |
Date: | Mon, 2 Mar 2020 17:56:34 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | Hashim Aziz <hashaziz AT hotmail DOT com> |
Cc: | cygwin <cygwin AT cygwin DOT com> |
Subject: | Re: cat /proc/partitions shows only devices, not partitions |
Message-ID: | <20200302165634.GT4045@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | Hashim Aziz <hashaziz AT hotmail DOT com>, cygwin <cygwin AT cygwin DOT com> |
References: | <DB7PR01MB51934E03BFDFE94142F1966FD5E60 AT DB7PR01MB5193 DOT eurprd01 DOT prod DOT exchangelabs DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <DB7PR01MB51934E03BFDFE94142F1966FD5E60@DB7PR01MB5193.eurprd01.prod.exchangelabs.com> |
--pgNHpQPJFoUYTAIP Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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" -----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--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |