From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 102335 invoked by alias); 3 Mar 2020 10:44:45 -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 102327 invoked by uid 89); 3 Mar 2020 10:44:44 -0000 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 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; Tue, 03 Mar 2020 10:44:43 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M6UuX-1j2kJS0OJV-006zHG; Tue, 03 Mar 2020 11:44:39 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 47D4AA82778; Tue, 3 Mar 2020 11:44:38 +0100 (CET) Date: Tue, 03 Mar 2020 10:44:00 -0000 From: Corinna Vinschen To: Hashim Aziz Cc: "cygwin@cygwin.com" Subject: Re: cat /proc/partitions shows only devices, not partitions Message-ID: <20200303104438.GY4045@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: Hashim Aziz , "cygwin@cygwin.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: X-SW-Source: 2020-03/txt/msg00037.txt --2nmUZS6EBFTGcnEV Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1069 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" Content-length: 833 -----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--