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=lDPz3iN8gfq+yx9zunjBbmGPxAFSeHmyfYXNgCFINBrHEHOSckWZZ 801dPiTtX05V0Y/ckM+WovhFzYMbyovzAFALDHCGYPNYCQW6gyLL20ki4zWXrftl 48ZfOhMwFzo9iQeXk5WoOgT3ZQVuPy8KNOBjgtuBaCGkTHHXg+4SPw= 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=fiMET9spciorEdUqTBdrtcwVot4=; b=jUkbIHER5wiB+p4EPAZNW36RXGY9 7WlaGK7elgD519LDEL2dGT9eF5Hvzb7o6pDNtRSaFygLPAaZmYxG6Ep35XufJjgL GTRerRPCNlTNI9eYz1cKZKmLUjMzP8ZACwGZAa2UOj7NUdCixBaREb5JrdJI+r4b NtLXUGq6Ga57oJ0= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-106.1 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=unsure, HX-Languages-Length:1114, click X-HELO: mout.kundenserver.de Date: Tue, 3 Mar 2020 11:44:38 +0100 From: Corinna Vinschen To: Hashim Aziz Cc: "cygwin AT cygwin DOT com" Subject: Re: cat /proc/partitions shows only devices, not partitions Message-ID: <20200303104438.GY4045@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: Hashim Aziz , "cygwin AT cygwin DOT com" References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="2nmUZS6EBFTGcnEV" Content-Disposition: inline In-Reply-To: --2nmUZS6EBFTGcnEV Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mar 3 00:54, Hashim Aziz wrote: > Hey Corinna, thanks for your quick reply. >=20 > Regarding the elevated shell - I'm unsure of exactly how to run an > elevated Cygwin shell? Right click on the Cygwin Terminal icon on the desktop, choose the item "Run as administrator". > I have attached the requested strace file. Here's what I see for all partitions in the trace output: 460 21259 [main] cat 553 format_proc_partitions: DeviceIoControl (Harddisk0\Partition0, IOCTL_DISK_GET_PARTITION_INFO{_EX}) Win32 error 5 Win32 error 5 is ERROR_ACCESS_DENIED. So it appears that the OS access is denied for some reason. I tried again on Windows 7, this time with a non-admin account, just to be sure, but I still can see the partition info. Yesterday I tried with an admin account, just not in an elevated shell, so this may have been an important difference. Apparently not so. I have no idea why your system has different permissions, but at least you should be able to see the info in an elevated shell. Corinna --=20 Corinna Vinschen Cygwin Maintainer --2nmUZS6EBFTGcnEV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl5eNRYACgkQ9TYGna5E T6CbmQ/9F0LfBG2k1WxfEXCy4ggXtggPaQgNicIFbQ9NkvijO52FCRrd/cDdini3 4zfbcFT2reYB/i8AjJJsLdOqqdOCDdDy3eAor/rXnPWbE+xjdzUwhEhWK5yGVPmK QQTu8Emlx5iwGu0MLNGoZIdkFr7GVBhkF8SjHG6xlCjBaMamNbLnuV6GH8kmbmF3 2CZAxSXBaspYGwopSGzURtHsZ6+pevX179n6iYlgDylJ2wbRGcEkJfVThG7+1lEN gBGt+HtgNbbKXValpL+Ay1x+rYdIg1ObTse1F6mo6BGn5KYiiTpz4G35+ODqU9bj ERhh9fGK2NCWcLBB0eeY8IKrJ4uw1QnlVoTr5iP3+y2zEmlythdfmRGu+vX4sZeu OtSjnLrFap4vy9gOCbhpL0eUC3C2IJ/iZflNCoLjhFpZgSfNv10gq7zu07N21r/x rjn5+z7NXkwYm33plTlzlpEDySrc2hCH6U5chygkvndeQtn0V0vlJvUmqFXmvaZG Yjh6YDOIlkdwwpbVWc9Gr25hUPvLqfPscFoi9myJRBAVJqifa1LZAhPQ0TF9PoVL l6ft7gllv12z6tuEAzxtSQEE4lJzn35n86dpdHc+klQYsVZxp4jif2agpGKSdUm1 tMCTxzg5zK76UVcPfEtZjVXrdhXSf7qa9E3fmvsL5WJrZVcAKJs= =z/87 -----END PGP SIGNATURE----- --2nmUZS6EBFTGcnEV--