This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: /proc/partitions changed ?


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

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]