public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: Hashim Aziz <hashaziz@hotmail.com>
Cc: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Re: cat /proc/partitions shows only devices, not partitions
Date: Tue, 03 Mar 2020 10:44:00 -0000	[thread overview]
Message-ID: <20200303104438.GY4045@calimero.vinschen.de> (raw)
In-Reply-To: <DB7PR01MB5193648190D8F73C198E23A5D5E40@DB7PR01MB5193.eurprd01.prod.exchangelabs.com>

[-- Attachment #1: Type: text/plain, Size: 1098 bytes --]

On Mar  3 00:54, Hashim Aziz wrote:
> Hey Corinna, thanks for your quick reply.
> 
> 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

-- 
Corinna Vinschen
Cygwin Maintainer

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2020-03-03 10:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-03  0:55 Hashim Aziz
2020-03-03 10:44 ` Corinna Vinschen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-03-09 15:47 Hashim Aziz
2020-03-09 15:59 ` Bill Stewart
2020-03-03 17:21 Hashim Aziz
2020-03-03 18:17 ` Corinna Vinschen
2020-03-07 20:36 ` Hashim Aziz
2020-03-09  3:11   ` Andrey Repin
2020-03-03  1:01 Hashim Aziz
2020-03-01 21:16 Hashim Aziz
2020-03-02 16:56 ` Corinna Vinschen
2020-03-04 19:35 ` Andrey Repin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200303104438.GY4045@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    --cc=hashaziz@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).