/proc/partitions changed ?

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Jan 21 17:16:00 GMT 2019


On Jan 21 16:03, Marco Atzeri wrote:
> Am 21.01.2019 um 09:39 schrieb Corinna Vinschen:
> > Hi Marco,
> > 
> > On Jan 20 20:48, Marco Atzeri wrote:
> > > Am 20.01.2019 um 19:36 schrieb Eliot Moss:
> > > > On 1/20/2019 1:05 PM, Marco Atzeri wrote:
> > > > > Am 20.01.2019 um 18:51 schrieb Henry S. Thompson:
> > > > > > Marco Atzeri writes:
> > > > > > 
> > > > > > > In the past I saw
> > > > > > > ...
> > > > > > > but now the win-mounts version are missing
> > > > > > > 
> > > > > > > $ cat /proc/partitions
> > > > > > > major minor  #blocks  name   win-mounts
> > > > > > > 
> > > > > > >       8     0         0 sda
> > > > > > >       8    16         0 sdb
> > > > > > > 
> > > Windows 10 Home
> > > Version 1803
> > > 
> > > so or it is Windows or is a BLODA effect
> > 
> > As for the others, WFFM on W10 Enterprise 1809 with the latest
> > Cygwin snapshot code.  I'd bet on BLODA.  Alternatively this may be
> > permission problem of some sort.
> > 
> > Can you please run this command under strace and send the strace output?
> > 
> > 
> > Thanks,
> > Corinna
> 
> attached the strace of  cat /proc/partitions
> 
> I guess my AV is blocking access to the partitions, also when
> I am running as Administrator.
> 
> format_proc_partitions: DeviceIoControl (Harddisk0\Partition0,
> IOCTL_DISK_GET_PARTITION_INFO{_EX}) Win32 error 5

That's the problem.  Due to this, the info for the partition isn't
printed at all.

> However the info is available in other way
> 
> $ cygpath -w /dev/sda
> \\.\Disk{ba1707c6-547e-6b0e-d636-d2fa8ccffbf6}
> 
> $ cygpath -w /dev/sda1
> \\.\D:

That's not the same thing.  This information *would* be available, but
it's only fetched if the partition info could be fetched.  What's
actually missing is access to the partitions and their size, not access
to the mount points to partitions.  That's why you only see sda and sdb,
but not any one of the partitions.  I don't see how to print
/proc/partitions correctly without this info.


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20190121/7c4cedaa/attachment.sig>


More information about the Cygwin mailing list