cat /proc/partitions shows only devices, not partitions

Hashim Aziz hashaziz@hotmail.com
Mon Mar 9 15:47:46 GMT 2020


I see. Do you know how I would go about resolving this, as I am using an Administrator account and have never run into any other issues reading, writing or otherwise making changes to those drives.

Hashim

________________________________
From: cygwin-owner@cygwin.com on behalf of Corinna Vinschen
Sent: Tuesday, March 03, 2020 4:46 PM
To: cygwin@cygwin.com
Subject: Re: cat /proc/partitions shows only devices, not partitions

On Mar  3 16:32, Hashim Aziz wrote:
> Yes, this was what I expected you meant by elevated shell. I tried that earlier and got no luck (though I tried the link to the Cygwin terminal in my start menu
> not a desktop shortcut), and I just tried again after attempting several permissions fixes but still no luck.
>
> The permissions fixed I tried were:
>
> - Right-clicking and deselecting Read-Only on the cygwin64 folder
> - Resetting permissions with the CMD command: icacls c:\cygwin64 /reset /t /l /c
> - Taking control of the Cygwin folder with the following command (itself run from an elevated window):
> [...]

When I was talking about permissions, I was talking about permissions on
the native Windows devices, not any permissions on Cygwin files.

The strace output shows that you don't have permissions to call
DeviceIoControl(IOCTL_DISK_GET_PARTITION_INFO) or
DeviceIoControl(IOCTL_DISK_GET_PARTITION_INFO_EX) on the devices
representing the partitions in the native NT device namespace, i.e.,
\Device\Harddisk0\Partition0, etc.


Corinna

--
Corinna Vinschen
Cygwin Maintainer



More information about the Cygwin mailing list