public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: cat /proc/partitions shows only devices, not partitions
@ 2020-03-03  0:55 Hashim Aziz
  2020-03-03 10:44 ` Corinna Vinschen
  0 siblings, 1 reply; 12+ messages in thread
From: Hashim Aziz @ 2020-03-03  0:55 UTC (permalink / raw)
  To: cygwin

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

Hey Corinna, thanks for your quick reply.

Regarding the elevated shell - I'm unsure of exactly how to run an elevated Cygwin shell?

I have attached the requested strace file.

Thanks,
Hashim
         

            


From: Corinna Vinschen
Sent: Monday, March 02, 2020 4:56 PM
To: Hashim Aziz
Cc: cygwin
Subject: Re: cat /proc/partitions shows only devices, not partitions
            


            
On Mar  1 21:16, Hashim Aziz wrote:

> This was an issue that I had previously in September of last year and

> sent the issue to this mailing list ("win-mounts no longer displays

> anything when doing "cat /proc/partitions") but the issue stopped

> occurring before I could get around to diagnosing it. This issue has

> now re-occurred and this time it seems permanent. When I run:

> 

> $ cat /proc/partitions

> major minor  #blocks  name   win-mounts

> 

>     8     0         0 sda

>     8    16         0 sdb

>     8    32         0 sdc

>     8    48         0 sdd

>     8    64         0 sde

>     8    80         0 sdf

> 

> ...I see nothing at all in the win-mounts column. This makes it

> impossible for me to see which Windows drive letter maps to which

> /dev/sdX entry. On closer inspection, this seems to be because I'm not

> actually seeing any partitions of my drives, even though there are

> many - for example, I see /dev/sda but no /dev/sda1 or /dev/sda2, and

> because it's the partitions that are mounted, it's this that seems to

> result in me seeing nothing in the win-mounts column. I'm running

> Cygwin on Windows 7 (yes I'm aware it's EOL).



Fortunately I just started Windows 7 for another thread here, so I

gave it a try myself:



  $ uname -a

  CYGWIN_NT-6.1 vmbert764 3.1.4(0.340/5/3) 2020-02-19 08:49 x86_64 Cygwin

  $ id -G | grep -Eq '\<544\>' && echo elevated || echo non-elevated

  non-elevated

  $ cat /proc/partitions

  major minor  #blocks  name   win-mounts



      8     0  54525952 sda

      8     1    102400 sda1

      8     2  54420480 sda2   C:\



So, https://cygwin.com/acronyms/#WJFFM



This appears to be a local phenomenon only, either some permission

problem, or some BLODA, a life virus scanner or something.



Two questions come to mind:



- Does it work in an elevated shell?



- If you run this under strace, does it show anything unusual?

  We could take a look if you call



    strace -o cat.trace cat /proc/partitions



  and send the cat.trace file here (assuming it still doesn't work).





Corinna



-- 

Corinna Vinschen

Cygwin Maintainer


[-- Attachment #2: cat.trace --]
[-- Type: application/octet-stream, Size: 42019 bytes --]

--- Process 4284 created
--- Process 4284 loaded C:\Windows\System32\ntdll.dll at 0000000077bb0000
--- Process 4284 loaded C:\Windows\System32\kernel32.dll at 0000000077990000
--- Process 4284 loaded C:\Program Files\AVAST Software\Avast\aswhook.dll at 000007fef3500000
--- Process 4284 loaded C:\Windows\System32\KernelBase.dll at 000007fefd720000
--- Process 4284 loaded C:\cygwin64\bin\cygwin1.dll at 0000000180040000
--- Process 4284 loaded C:\cygwin64\bin\cygintl-8.dll at 00000003c8030000
--- Process 4284 loaded C:\cygwin64\bin\cygiconv-2.dll at 00000003d8c40000
    0       0 [main] cat (4284) **********************************************
  160     160 [main] cat (4284) Program name: C:\cygwin64\bin\cat.exe (windows pid 4284)
   50     210 [main] cat (4284) OS version:   Windows NT-6.1
   46     256 [main] cat (4284) **********************************************
--- Process 4284 loaded C:\Windows\System32\advapi32.dll at 000007fefe280000
--- Process 4284 loaded C:\Windows\System32\msvcrt.dll at 000007fefdae0000
--- Process 4284 loaded C:\Windows\System32\sechost.dll at 000007fefdac0000
--- Process 4284 loaded C:\Windows\System32\rpcrt4.dll at 000007feffc90000
--- Process 4284 loaded C:\Windows\System32\cryptbase.dll at 000007fefd5a0000
 2295    2551 [main] cat (4284) sigprocmask: 0 = sigprocmask (0, 0x0, 0x180320DD0)
  354    2905 [main] cat (4284) open_shared: name shared.5, n 5, shared 0x180030000 (wanted 0x180030000), h 0x84, *m 6
   32    2937 [main] cat (4284) user_heap_info::init: heap base 0x800000000, heap top 0x800000000, heap size 0x20000000 (536870912)
   28    2965 [main] cat (4284) open_shared: name S-1-5-21-3433665796-288219753-4175593165-1001.1, n 1, shared 0x180020000 (wanted 0x180020000), h 0x80, *m 6
   16    2981 [main] cat (4284) user_info::create: opening user shared for 'S-1-5-21-3433665796-288219753-4175593165-1001' at 0x180020000
   15    2996 [main] cat (4284) user_info::create: user shared version AB1FCCE8
   49    3045 [main] cat (4284) fhandler_pipe::create: name \\.\pipe\cygwin-e022582115c10879-4284-sigwait, size 11440, mode PIPE_TYPE_MESSAGE
   50    3095 [main] cat (4284) fhandler_pipe::create: pipe read handle 0x9C
   15    3110 [main] cat (4284) fhandler_pipe::create: CreateFile: name \\.\pipe\cygwin-e022582115c10879-4284-sigwait
   29    3139 [main] cat (4284) fhandler_pipe::create: pipe write handle 0xA0
   40    3179 [main] cat (4284) dll_crt0_0: finished dll_crt0_0 initialization
--- Process 4284 thread 5752 created
  254    3433 [sig] cat (4284) wait_sig: entering ReadFile loop, my_readsig 0x9C, my_sendsig 0xA0
  126    3559 [main] cat (4284) time: 1583185594 = time(0x0)
   68    3627 [main] cat (4284) mount_info::conv_to_posix_path: conv_to_posix_path (B:\Users\Hashim\Desktop, 0x0, no-add-slash)
   35    3662 [main] cat (4284) normalize_win32_path: B:\Users\Hashim\Desktop = normalize_win32_path (B:\Users\Hashim\Desktop)
   25    3687 [main] cat (4284) mount_info::conv_to_posix_path: /cygdrive/b/Users/Hashim/Desktop = conv_to_posix_path (B:\Users\Hashim\Desktop)
   34    3721 [main] cat (4284) sigprocmask: 0 = sigprocmask (0, 0x0, 0x800018130)
  105    3826 [main] cat (4284) _cygwin_istext_for_stdio: fd 0: not open
   22    3848 [main] cat (4284) _cygwin_istext_for_stdio: fd 1: not open
   17    3865 [main] cat (4284) _cygwin_istext_for_stdio: fd 2: not open
   68    3933 [main] cat (4284) open_shared: name cygpid.553, n 553, shared 0x180010000 (wanted 0x180010000), h 0xC8, *m 2
   22    3955 [main] cat (4284) time: 1583185594 = time(0x0)
   32    3987 [main] cat 553 pinfo::thisproc: myself dwProcessId 4284
   32    4019 [main] cat 553 environ_init: GetEnvironmentStrings returned 0x392130
   66    4085 [main] cat 553 win32env_to_cygenv: 0x8000284F0: !::=::\
   30    4115 [main] cat 553 win32env_to_cygenv: 0x800028510: ALLUSERSPROFILE=C:\ProgramData
   26    4141 [main] cat 553 win32env_to_cygenv: 0x800028540: ANDROID_SDK_HOME=C:\Android
   25    4166 [main] cat 553 win32env_to_cygenv: 0x800028570: APPDATA=B:\Users\Hashim\AppData\Roaming
   29    4195 [main] cat 553 win32env_to_cygenv: 0x8000285A0: COMMONPROGRAMFILES=C:\Program Files\Common Files
   69    4264 [main] cat 553 win32env_to_cygenv: 0x8000285E0: COMPUTERNAME=PROMETHEUS
   31    4295 [main] cat 553 win32env_to_cygenv: 0x800028600: COMSPEC=C:\Windows\system32\cmd.exe
   32    4327 [main] cat 553 win32env_to_cygenv: 0x800028630: CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
   31    4358 [main] cat 553 win32env_to_cygenv: 0x800028680: CommonProgramW6432=C:\Program Files\Common Files
   31    4389 [main] cat 553 parse_options: glob (called func)
   33    4422 [main] cat 553 parse_options: returning
   16    4438 [main] cat 553 win32env_to_cygenv: 0x8000286C0: CYGWIN=noglob
   27    4465 [main] cat 553 win32env_to_cygenv: 0x800028700: DBug=No
   29    4494 [main] cat 553 win32env_to_cygenv: 0x800028720: DrvType=SSD
   26    4520 [main] cat 553 win32env_to_cygenv: 0x800028740: EXECIGNORE=*.dll
   28    4548 [main] cat 553 win32env_to_cygenv: 0x800028760: FP_NO_HOST_CHECK=NO
   31    4579 [main] cat 553 getwinenv: can't set native for HOME= since no environ yet
   20    4599 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin64\home\Hashim, 0x10000000, no-add-slash)
   17    4616 [main] cat 553 normalize_win32_path: C:\cygwin64\home\Hashim = normalize_win32_path (C:\cygwin64\home\Hashim)
   17    4633 [main] cat 553 mount_info::conv_to_posix_path: /home/Hashim = conv_to_posix_path (C:\cygwin64\home\Hashim)
   42    4675 [main] cat 553 win_env::add_cache: posix /home/Hashim
   16    4691 [main] cat 553 win_env::add_cache: native HOME=C:\cygwin64\home\Hashim
   16    4707 [main] cat 553 posify_maybe: env var converted to HOME=/home/Hashim
   44    4751 [main] cat 553 win32env_to_cygenv: 0x800028800: HOME=/home/Hashim
   30    4781 [main] cat 553 win32env_to_cygenv: 0x800028780: HOMEDRIVE=B:
   26    4807 [main] cat 553 win32env_to_cygenv: 0x800028820: HOMEPATH=\Users\Hashim
   26    4833 [main] cat 553 win32env_to_cygenv: 0x800028840: HOSTNAME=Prometheus
   29    4862 [main] cat 553 win32env_to_cygenv: 0x800028860: HiLiteCol=Default
   32    4894 [main] cat 553 win32env_to_cygenv: 0x800028880: INFOPATH=/usr/local/info:/usr/share/info:/usr/info
   25    4919 [main] cat 553 win32env_to_cygenv: 0x8000288C0: LANG=en_US.UTF-8
   30    4949 [main] cat 553 win32env_to_cygenv: 0x8000288E0: LOCALAPPDATA=B:\Users\Hashim\AppData\Local
   29    4978 [main] cat 553 win32env_to_cygenv: 0x800028920: LOGONSERVER=\\PROMETHEUS
   26    5004 [main] cat 553 win32env_to_cygenv: 0x800028950: LV2_PATH=/usr/lib/lv2
   29    5033 [main] cat 553 win32env_to_cygenv: 0x800028970: MINTTY_SHORTCUT=/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/Programs/Cygwin/Cygwin64 Terminal.lnk
   28    5061 [main] cat 553 win32env_to_cygenv: 0x8000289F0: NUMBER_OF_PROCESSORS=4
   27    5088 [main] cat 553 win32env_to_cygenv: 0x800028A10: NoMD=0
   31    5119 [main] cat 553 win32env_to_cygenv: 0x800028A30: OEMsOK=Yes
   27    5146 [main] cat 553 win32env_to_cygenv: 0x800028A50: OLDPWD=/home/Hashim
   34    5180 [main] cat 553 win32env_to_cygenv: 0x800028A70: ORIGINAL_PATH=%SystemRoot%/system32:%SystemRoot%:%SystemRoot%/System32/Wbem:%SYSTEMROOT%/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/Microsoft VS Code/bin:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64:/cygdrive/c/Program Files/FileBot:/cygdrive/c/Android:/cygdrive/c/Windows/System32
   37    5217 [main] cat 553 win32env_to_cygenv: 0x800028C70: OS=Windows_NT
   25    5242 [main] cat 553 win32env_to_cygenv: 0x800028C90: OSEd=Ultimate
   35    5277 [main] cat 553 getwinenv: can't set native for PATH= since no environ yet
   34    5311 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (B:\Users\Hashim\Desktop\Mosque Website\XAMPP\php, 0x10000100, no-add-slash)
   17    5328 [main] cat 553 normalize_win32_path: B:\Users\Hashim\Desktop\Mosque Website\XAMPP\php = normalize_win32_path (B:\Users\Hashim\Desktop\Mosque Website\XAMPP\php)
   19    5347 [main] cat 553 mount_info::conv_to_posix_path: /cygdrive/b/Users/Hashim/Desktop/Mosque Website/XAMPP/php = conv_to_posix_path (B:\Users\Hashim\Desktop\Mosque Website\XAMPP\php)
   18    5365 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin64\usr\sbin, 0x10000100, no-add-slash)
   14    5379 [main] cat 553 normalize_win32_path: C:\cygwin64\usr\sbin = normalize_win32_path (C:\cygwin64\usr\sbin)
   18    5397 [main] cat 553 mount_info::conv_to_posix_path: /usr/sbin = conv_to_posix_path (C:\cygwin64\usr\sbin)
   16    5413 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin64\sbin, 0x10000100, no-add-slash)
   20    5433 [main] cat 553 normalize_win32_path: C:\cygwin64\sbin = normalize_win32_path (C:\cygwin64\sbin)
   16    5449 [main] cat 553 mount_info::conv_to_posix_path: /sbin = conv_to_posix_path (C:\cygwin64\sbin)
   17    5466 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin64\usr\local\bin, 0x10000100, no-add-slash)
   17    5483 [main] cat 553 normalize_win32_path: C:\cygwin64\usr\local\bin = normalize_win32_path (C:\cygwin64\usr\local\bin)
   15    5498 [main] cat 553 mount_info::conv_to_posix_path: /usr/local/bin = conv_to_posix_path (C:\cygwin64\usr\local\bin)
   16    5514 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin64\bin, 0x10000100, no-add-slash)
   17    5531 [main] cat 553 normalize_win32_path: C:\cygwin64\bin = normalize_win32_path (C:\cygwin64\bin)
   18    5549 [main] cat 553 mount_info::conv_to_posix_path: /usr/bin = conv_to_posix_path (C:\cygwin64\bin)
   17    5566 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (%SystemRoot%\system32, 0x10000100, no-add-slash)
   17    5583 [main] cat 553 mount_info::conv_to_posix_path: %SystemRoot%/system32 = conv_to_posix_path (%SystemRoot%\system32)
   15    5598 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (%SystemRoot%, 0x10000100, no-add-slash)
   15    5613 [main] cat 553 mount_info::conv_to_posix_path: %SystemRoot% = conv_to_posix_path (%SystemRoot%)
   16    5629 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (%SystemRoot%\System32\Wbem, 0x10000100, no-add-slash)
   15    5644 [main] cat 553 mount_info::conv_to_posix_path: %SystemRoot%/System32/Wbem = conv_to_posix_path (%SystemRoot%\System32\Wbem)
   19    5663 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (%SYSTEMROOT%\System32\WindowsPowerShell\v1.0, 0x10000100, no-add-slash)
   17    5680 [main] cat 553 mount_info::conv_to_posix_path: %SYSTEMROOT%/System32/WindowsPowerShell/v1.0 = conv_to_posix_path (%SYSTEMROOT%\System32\WindowsPowerShell\v1.0)
   15    5695 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Program Files\Microsoft VS Code\bin, 0x10000100, no-add-slash)
   17    5712 [main] cat 553 normalize_win32_path: C:\Program Files\Microsoft VS Code\bin = normalize_win32_path (C:\Program Files\Microsoft VS Code\bin)
   17    5729 [main] cat 553 mount_info::conv_to_posix_path: /cygdrive/c/Program Files/Microsoft VS Code/bin = conv_to_posix_path (C:\Program Files\Microsoft VS Code\bin)
   16    5745 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86, 0x10000100, no-add-slash)
   17    5762 [main] cat 553 normalize_win32_path: C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86 = normalize_win32_path (C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86)
   15    5777 [main] cat 553 mount_info::conv_to_posix_path: /cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86 = conv_to_posix_path (C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86)
   17    5794 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64, 0x10000100, no-add-slash)
   14    5808 [main] cat 553 normalize_win32_path: C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64 = normalize_win32_path (C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64)
   19    5827 [main] cat 553 mount_info::conv_to_posix_path: /cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64 = conv_to_posix_path (C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64)
   18    5845 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86, 0x10000100, no-add-slash)
   18    5863 [main] cat 553 normalize_win32_path: C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86 = normalize_win32_path (C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86)
   17    5880 [main] cat 553 mount_info::conv_to_posix_path: /cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86 = conv_to_posix_path (C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86)
   17    5897 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64, 0x10000100, no-add-slash)
   17    5914 [main] cat 553 normalize_win32_path: C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64 = normalize_win32_path (C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64)
   14    5928 [main] cat 553 mount_info::conv_to_posix_path: /cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64 = conv_to_posix_path (C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64)
   17    5945 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Program Files\FileBot, 0x10000100, no-add-slash)
   17    5962 [main] cat 553 normalize_win32_path: C:\Program Files\FileBot = normalize_win32_path (C:\Program Files\FileBot)
   15    5977 [main] cat 553 mount_info::conv_to_posix_path: /cygdrive/c/Program Files/FileBot = conv_to_posix_path (C:\Program Files\FileBot)
   14    5991 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Android, 0x10000100, no-add-slash)
   15    6006 [main] cat 553 normalize_win32_path: C:\Android = normalize_win32_path (C:\Android)
   16    6022 [main] cat 553 mount_info::conv_to_posix_path: /cygdrive/c/Android = conv_to_posix_path (C:\Android)
   16    6038 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Windows\System32, 0x10000100, no-add-slash)
   19    6057 [main] cat 553 normalize_win32_path: C:\Windows\System32 = normalize_win32_path (C:\Windows\System32)
   17    6074 [main] cat 553 mount_info::conv_to_posix_path: /cygdrive/c/Windows/System32 = conv_to_posix_path (C:\Windows\System32)
   17    6091 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin64\lib\lapack, 0x10000100, no-add-slash)
   17    6108 [main] cat 553 normalize_win32_path: C:\cygwin64\lib\lapack = normalize_win32_path (C:\cygwin64\lib\lapack)
   15    6123 [main] cat 553 mount_info::conv_to_posix_path: /usr/lib/lapack = conv_to_posix_path (C:\cygwin64\lib\lapack)
   16    6139 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (B:\users\Hashim\Desktop\Mosque Website\XAMPP\mysql\bin, 0x10000100, no-add-slash)
   16    6155 [main] cat 553 normalize_win32_path: B:\users\Hashim\Desktop\Mosque Website\XAMPP\mysql\bin = normalize_win32_path (B:\users\Hashim\Desktop\Mosque Website\XAMPP\mysql\bin)
   18    6173 [main] cat 553 mount_info::conv_to_posix_path: /cygdrive/b/users/Hashim/Desktop/Mosque Website/XAMPP/mysql/bin = conv_to_posix_path (B:\users\Hashim\Desktop\Mosque Website\XAMPP\mysql\bin)
   46    6219 [main] cat 553 win_env::add_cache: posix /cygdrive/b/Users/Hashim/Desktop/Mosque Website/XAMPP/php:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:%SystemRoot%/system32:%SystemRoot%:%SystemRoot%/System32/Wbem:%SYSTEMROOT%/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/Microsoft VS Code/bin:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64:/cygdrive/c/Program Files/FileBot:/cygdrive/c/Android:/cygdrive/c/Windows/System32:/usr/lib/lapack:/cygdrive/b/users/Hashim/Desktop/Mosque Website/XAMPP/mysql/bin
   20    6239 [main] cat 553 win_env::add_cache: native PATH=B:\Users\Hashim\Desktop\Mosque Website\XAMPP\php;C:\cygwin64\usr\sbin;C:\cygwin64\sbin;C:\cygwin64\usr\local\bin;C:\cygwin64\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0;C:\Program Files\Microsoft VS Code\bin;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\FileBot;C:\Android;C:\Windows\System32;C:\cygwin64\lib\lapack;B:\users\Hashim\Desktop\Mosque Website\XAMPP\mysql\bin
   39    6278 [main] cat 553 posify_maybe: env var converted to PATH=/cygdrive/b/Users/Hashim/Desktop/Mosque Website/XAMPP/php:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:%SystemRoot%/system32:%SystemRoot%:%SystemRoot%/System32/Wbem:%SYSTEMROOT%/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/Microsoft VS Code/bin:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64:/cygdrive/c/Program Files/FileBot:/cygdrive/c/Android:/cygdrive/c/Windows/System32:/usr/lib/lapack:/cygdrive/b/users/Hashim/Desktop/Mosque Website/XAMPP/mysql/bin
   46    6324 [main] cat 553 win32env_to_cygenv: 0x800039460: PATH=/cygdrive/b/Users/Hashim/Desktop/Mosque Website/XAMPP/php:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:%SystemRoot%/system32:%SystemRoot%:%SystemRoot%/System32/Wbem:%SYSTEMROOT%/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/Microsoft VS Code/bin:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64:/cygdrive/c/Program Files/FileBot:/cygdrive/c/Android:/cygdrive/c/Windows/System32:/usr/lib/lapack:/cygdrive/b/users/Hashim/Desktop/Mosque Website/XAMPP/mysql/bin
   37    6361 [main] cat 553 win32env_to_cygenv: 0x800028CB0: PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
   28    6389 [main] cat 553 win32env_to_cygenv: 0x800028D00: PRINTER=EPSON XP-312 313 315 Series
   29    6418 [main] cat 553 win32env_to_cygenv: 0x800028D30: PROCESSOR_ARCHITECTURE=AMD64
   31    6449 [main] cat 553 win32env_to_cygenv: 0x800028D60: PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
   27    6476 [main] cat 553 win32env_to_cygenv: 0x800028DB0: PROCESSOR_LEVEL=6
   30    6506 [main] cat 553 win32env_to_cygenv: 0x800028DD0: PROCESSOR_REVISION=2a07
   28    6534 [main] cat 553 win32env_to_cygenv: 0x800028DF0: PROFILEREAD=true
   27    6561 [main] cat 553 win32env_to_cygenv: 0x800028E10: PROG27B48B2C051=1
   29    6590 [main] cat 553 win32env_to_cygenv: 0x800028E30: PROGRAMFILES=C:\Program Files
   28    6618 [main] cat 553 win32env_to_cygenv: 0x800028E60: PS1=\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ 
   30    6648 [main] cat 553 win32env_to_cygenv: 0x800028EB0: PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
   28    6676 [main] cat 553 win32env_to_cygenv: 0x800028F00: PUBLIC=B:\Users\Public
   27    6703 [main] cat 553 win32env_to_cygenv: 0x800039710: PWD=/cygdrive/b/Users/Hashim/Desktop
   30    6733 [main] cat 553 win32env_to_cygenv: 0x800039740: ProgramData=C:\ProgramData
   28    6761 [main] cat 553 win32env_to_cygenv: 0x800039770: ProgramFiles(x86)=C:\Program Files (x86)
   30    6791 [main] cat 553 win32env_to_cygenv: 0x8000397B0: ProgramW6432=C:\Program Files
   27    6818 [main] cat 553 win32env_to_cygenv: 0x8000397E0: QUOTING_STYLE=literal
   28    6846 [main] cat 553 win32env_to_cygenv: 0x800039800: SESSIONNAME=Console
   32    6878 [main] cat 553 win32env_to_cygenv: 0x800039820: SHELL=/bin/bash
   28    6906 [main] cat 553 win32env_to_cygenv: 0x800039840: SHLVL=1
   29    6935 [main] cat 553 win32env_to_cygenv: 0x800039860: SYSTEMDRIVE=C:
   28    6963 [main] cat 553 win32env_to_cygenv: 0x800039880: SYSTEMROOT=C:\Windows
   29    6992 [main] cat 553 win32env_to_cygenv: 0x8000398A0: ShowExts=No
   30    7022 [main] cat 553 getwinenv: can't set native for TEMP= since no environ yet
   16    7038 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin64\tmp, 0x10000000, no-add-slash)
   17    7055 [main] cat 553 normalize_win32_path: C:\cygwin64\tmp = normalize_win32_path (C:\cygwin64\tmp)
   16    7071 [main] cat 553 mount_info::conv_to_posix_path: /tmp = conv_to_posix_path (C:\cygwin64\tmp)
   41    7112 [main] cat 553 win_env::add_cache: posix /tmp
   17    7129 [main] cat 553 win_env::add_cache: native TEMP=C:\cygwin64\tmp
   16    7145 [main] cat 553 posify_maybe: env var converted to TEMP=/tmp
   40    7185 [main] cat 553 win32env_to_cygenv: 0x800039920: TEMP=/tmp
   31    7216 [main] cat 553 win32env_to_cygenv: 0x8000398C0: TERM=xterm
   28    7244 [main] cat 553 getwinenv: can't set native for TMP= since no environ yet
   16    7260 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin64\tmp, 0x10000000, no-add-slash)
   15    7275 [main] cat 553 normalize_win32_path: C:\cygwin64\tmp = normalize_win32_path (C:\cygwin64\tmp)
   16    7291 [main] cat 553 mount_info::conv_to_posix_path: /tmp = conv_to_posix_path (C:\cygwin64\tmp)
   42    7333 [main] cat 553 win_env::add_cache: posix /tmp
   15    7348 [main] cat 553 win_env::add_cache: native TMP=C:\cygwin64\tmp
   16    7364 [main] cat 553 posify_maybe: env var converted to TMP=/tmp
   43    7407 [main] cat 553 win32env_to_cygenv: 0x8000399A0: TMP=/tmp
   30    7437 [main] cat 553 win32env_to_cygenv: 0x800039940: TZ=Europe/London
   27    7464 [main] cat 553 win32env_to_cygenv: 0x8000399C0: USER=Hashim
   29    7493 [main] cat 553 win32env_to_cygenv: 0x8000399E0: USERDOMAIN=Prometheus
   25    7518 [main] cat 553 win32env_to_cygenv: 0x800039A00: USERNAME=Hashim
   29    7547 [main] cat 553 win32env_to_cygenv: 0x800039A20: USERPROFILE=B:\Users\Hashim
   26    7573 [main] cat 553 win32env_to_cygenv: 0x800039A50: WCDHOME=/home/Hashim/.wcd
   29    7602 [main] cat 553 win32env_to_cygenv: 0x800039A80: WINDIR=C:\Windows
   27    7629 [main] cat 553 win32env_to_cygenv: 0x800039AA0: _=/usr/bin/strace
   27    7656 [main] cat 553 win32env_to_cygenv: 0x800039AC0: windows_tracing_flags=3
   32    7688 [main] cat 553 win32env_to_cygenv: 0x800039AE0: windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log
   18    7706 [main] cat 553 pinfo_init: Set nice to 0
   17    7723 [main] cat 553 pinfo_init: pid 553, pgid 553, process_state 0x41
   15    7738 [main] cat 553 App version:  2007.0, api: 0.306
   16    7754 [main] cat 553 DLL version:  3001.4, api: 0.340
   17    7771 [main] cat 553 DLL build:    2020-02-19 08:49
   24    7795 [main] cat 553 dtable::extend: size 32, fds 0x18034A0C0
   79    7874 [main] cat 553 __get_lcid_from_locale: LCID=0x0409
  307    8181 [main] cat 553 transport_layer_pipes::connect: Try to connect to named pipe: \\.\pipe\cygwin-e022582115c10879-lpc
   39    8220 [main] cat 553 transport_layer_pipes::connect: Error opening the pipe (2)
   34    8254 [main] cat 553 client_request::make_request: cygserver un-available
--- Process 4284 (pid: 553) thread 4904 created
--- Process 4284 (pid: 553) loaded C:\Windows\System32\netapi32.dll at 000007fefb450000
--- Process 4284 (pid: 553) loaded C:\Windows\System32\netutils.dll at 000007fefbab0000
--- Process 4284 (pid: 553) loaded C:\Windows\System32\srvcli.dll at 000007fefd1b0000
--- Process 4284 (pid: 553) loaded C:\Windows\System32\wkscli.dll at 000007fefb430000
--- Process 4284 (pid: 553) loaded C:\Windows\System32\samcli.dll at 000007fef8be0000
--- Process 4284 (pid: 553) loaded C:\Windows\System32\samlib.dll at 000007fefc100000
 5036   13290 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <Hashim:*:197609:197121:U-Prometheus\Hashim,S-1-5-21-3433665796-288219753-4175593165-1001:/home/Hashim:/bin/bash>
 1034   14324 [main] cat 553 pwdgrp::fetch_account_from_windows: NetLocalGroupGetInfo(None) 1376
   59   14383 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <None:S-1-5-21-3433665796-288219753-4175593165-513:197121:>
  307   14690 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <Local account and member of Administrators group:S-1-5-114:114:>
  529   15219 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <Administrators:S-1-5-32-544:544:>
  502   15721 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <Users:S-1-5-32-545:545:>
   41   15762 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <INTERACTIVE:S-1-5-4:4:>
   32   15794 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <CONSOLE LOGON:S-1-2-1:66049:>
   20   15814 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <Authenticated Users:S-1-5-11:11:>
   18   15832 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <This Organization:S-1-5-15:15:>
   18   15850 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <Local account:S-1-5-113:113:>
   54   15904 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <CurrentSession:S-1-5-5-0-338483:4095:>
   18   15922 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <LOCAL:S-1-2-0:66048:>
   18   15940 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <NTLM Authentication:S-1-5-64-10:262154:>
   23   15963 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <High Mandatory Level:S-1-16-12288:405504:>
   21   15984 [main] cat 553 cygheap_user::ontherange: what 2, pw 0x18034A3D0
   17   16001 [main] cat 553 cygheap_user::ontherange: HOME is already in the environment /home/Hashim
   75   16076 [main] cat 553 build_argv: argv[0] = 'cat'
   18   16094 [main] cat 553 build_argv: argv[1] = '/proc/partitions'
   16   16110 [main] cat 553 build_argv: argc 2
  157   16267 [main] cat 553 build_fh_pc: created an archetype (0x18034C430) for /dev/pty0(136/0)
   27   16294 [main] cat 553 build_fh_pc: fh 0x18034C0C0, dev 00880000
   23   16317 [main] cat 553 fhandler_pipe::create: name \\.\pipe\cygwin-e022582115c10879-pty0-from-master, size 131072, mode PIPE_TYPE_MESSAGE
   56   16373 [main] cat 553 fhandler_pipe::create: pipe busy
   20   16393 [main] cat 553 tty::exists: exists 1
   98   16491 [main] cat 553 set_posix_access: ACL-Size: 124
   47   16538 [main] cat 553 set_posix_access: Created SD-Size: 200
   16   16554 [main] cat 553 fhandler_pty_slave::open: (800): pty output_mutex (0x148): waiting -1 ms
   31   16585 [main] cat 553 fhandler_pty_slave::open: (800): pty output_mutex: acquired
   37   16622 [main] cat 553 tty::create_inuse: cygtty.slave_alive.0 0x154
   21   16643 [main] cat 553 fhandler_pty_slave::open: (803): pty output_mutex(0x148) released
   42   16685 [main] cat 553 open_shared: name cygpid.530, n 530, shared 0x2E0000 (wanted 0x0), h 0x158, *m 6
   30   16715 [main] cat 553 fhandler_pty_slave::open: dup handles directly since I'm the owner
   35   16750 [main] cat 553 fhandler_pty_slave::open: duplicated from_master 0x258->0x158 from pty_owner
   19   16769 [main] cat 553 fhandler_pty_slave::open: duplicated from_master_cyg 0x258->0x160 from pty_owner
   16   16785 [main] cat 553 fhandler_pty_slave::open: duplicated to_master 0x268->0x164 from pty_owner
   16   16801 [main] cat 553 fhandler_pty_slave::open: duplicated to_master_cyg 0x270->0x168 from pty_owner
  286   17087 [main] cat 553 fhandler_console::need_invisible: invisible_console 0
   39   17126 [main] cat 553 fhandler_base::open_with_arch: line 470:  /dev/pty0<0x18034C430> usecount + 1 = 1
   22   17148 [main] cat 553 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0
   16   17164 [main] cat 553 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   15   17179 [main] cat 553 fhandler_base::set_flags: filemode set to binary
   15   17194 [main] cat 553 _pinfo::set_ctty: old no ctty, ctty device number 0xFFFFFFFF, tc.ntty device number 0x880000 flags & O_NOCTTY 0x0
   16   17210 [main] cat 553 _pinfo::set_ctty: cygheap->ctty 0x0, archetype 0x18034C430
   14   17224 [main] cat 553 _pinfo::set_ctty: ctty was NULL
   15   17239 [main] cat 553 _pinfo::set_ctty: line 541:  /dev/pty0<0x18034C430> usecount + 1 = 2
   20   17259 [main] cat 553 _pinfo::set_ctty: /dev/pty0 ctty, usecount 2
   20   17279 [main] cat 553 _pinfo::set_ctty: attaching ctty /dev/pty0 sid 553, pid 553, pgid 553, tty->pgid 551, tty->sid 531
   17   17296 [main] cat 553 _pinfo::set_ctty: cygheap->ctty now 0x18034C430, archetype 0x18034C430
   46   17342 [main] cat 553 fhandler_pty_slave::open_setup: /dev/pty0 opened, usecount 2
   20   17362 [main] cat 553 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0
   16   17378 [main] cat 553 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   16   17394 [main] cat 553 fhandler_base::set_flags: filemode set to binary
   16   17410 [main] cat 553 _pinfo::set_ctty: old ctty /dev/pty0, ctty device number 0x880000, tc.ntty device number 0x880000 flags & O_NOCTTY 0x0
   17   17427 [main] cat 553 _pinfo::set_ctty: attaching ctty /dev/pty0 sid 531, pid 553, pgid 553, tty->pgid 553, tty->sid 531
   18   17445 [main] cat 553 _pinfo::set_ctty: cygheap->ctty now 0x18034C430, archetype 0x18034C430
   16   17461 [main] cat 553 fhandler_pty_slave::open_setup: /dev/pty0 opened, usecount 2
   78   17539 [main] cat 553 build_fh_pc: found an archetype for (null)(136/0) io_handle 0x158
   45   17584 [main] cat 553 build_fh_pc: fh 0x18034C810, dev 00880000
   27   17611 [main] cat 553 fhandler_base::open_with_arch: line 490:  /dev/pty0<0x18034C430> usecount + 1 = 3
--- Process 4284 (pid: 553) thread 2344 created
   18   17629 [main] cat 553 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0
   55   17684 [main] cat 553 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   17   17701 [main] cat 553 fhandler_base::set_flags: filemode set to binary
   17   17718 [main] cat 553 _pinfo::set_ctty: old ctty /dev/pty0, ctty device number 0x880000, tc.ntty device number 0x880000 flags & O_NOCTTY 0x0
   17   17735 [main] cat 553 _pinfo::set_ctty: attaching ctty /dev/pty0 sid 531, pid 553, pgid 553, tty->pgid 553, tty->sid 531
   21   17756 [main] cat 553 _pinfo::set_ctty: cygheap->ctty now 0x18034C430, archetype 0x18034C430
   19   17775 [main] cat 553 fhandler_pty_slave::open_setup: /dev/pty0 opened, usecount 3
   17   17792 [main] cat 553 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0
   16   17808 [main] cat 553 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   16   17824 [main] cat 553 fhandler_base::set_flags: filemode set to binary
   17   17841 [main] cat 553 _pinfo::set_ctty: old ctty /dev/pty0, ctty device number 0x880000, tc.ntty device number 0x880000 flags & O_NOCTTY 0x0
   17   17858 [main] cat 553 _pinfo::set_ctty: attaching ctty /dev/pty0 sid 531, pid 553, pgid 553, tty->pgid 553, tty->sid 531
   16   17874 [main] cat 553 _pinfo::set_ctty: cygheap->ctty now 0x18034C430, archetype 0x18034C430
   17   17891 [main] cat 553 fhandler_pty_slave::open_setup: /dev/pty0 opened, usecount 3
   56   17947 [main] cat 553 build_fh_pc: found an archetype for (null)(136/0) io_handle 0x158
   21   17968 [main] cat 553 build_fh_pc: fh 0x18034CB80, dev 00880000
   19   17987 [main] cat 553 fhandler_base::open_with_arch: line 490:  /dev/pty0<0x18034C430> usecount + 1 = 4
   17   18004 [main] cat 553 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0
   16   18020 [main] cat 553 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   15   18035 [main] cat 553 fhandler_base::set_flags: filemode set to binary
   16   18051 [main] cat 553 _pinfo::set_ctty: old ctty /dev/pty0, ctty device number 0x880000, tc.ntty device number 0x880000 flags & O_NOCTTY 0x0
   18   18069 [main] cat 553 _pinfo::set_ctty: attaching ctty /dev/pty0 sid 531, pid 553, pgid 553, tty->pgid 553, tty->sid 531
   17   18086 [main] cat 553 _pinfo::set_ctty: cygheap->ctty now 0x18034C430, archetype 0x18034C430
   16   18102 [main] cat 553 fhandler_pty_slave::open_setup: /dev/pty0 opened, usecount 4
   17   18119 [main] cat 553 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0
   16   18135 [main] cat 553 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   68   18203 [main] cat 553 fhandler_base::set_flags: filemode set to binary
   24   18227 [main] cat 553 _pinfo::set_ctty: old ctty /dev/pty0, ctty device number 0x880000, tc.ntty device number 0x880000 flags & O_NOCTTY 0x0
   18   18245 [main] cat 553 _pinfo::set_ctty: attaching ctty /dev/pty0 sid 531, pid 553, pgid 553, tty->pgid 553, tty->sid 531
   17   18262 [main] cat 553 _pinfo::set_ctty: cygheap->ctty now 0x18034C430, archetype 0x18034C430
   16   18278 [main] cat 553 fhandler_pty_slave::open_setup: /dev/pty0 opened, usecount 4
  185   18463 [main] cat 553 __set_errno: void dll_crt0_1(void*):989 setting errno 0
  269   18732 [main] cat 553 __get_lcid_from_locale: LCID=0x0409
   82   18814 [main] cat 553 __get_lcid_from_locale: LCID=0x0409
   67   18881 [main] cat 553 __get_lcid_from_locale: LCID=0x0409
   71   18952 [main] cat 553 __get_lcid_from_locale: LCID=0x0409
   53   19005 [main] cat 553 __get_lcid_from_locale: LCID=0x0409
   62   19067 [main] cat 553 __get_lcid_from_locale: LCID=0x0409
  266   19333 [main] cat 553 time: 1583185594 = time(0x0)
   54   19387 [main] cat 553 stat64: entering
   18   19405 [main] cat 553 normalize_posix_path: src /dev
   16   19421 [main] cat 553 normalize_posix_path: /dev = normalize_posix_path (/dev)
   16   19437 [main] cat 553 mount_info::conv_to_win32_path: conv_to_win32_path (/dev)
   19   19456 [main] cat 553 mount_info::conv_to_win32_path: src_path /dev, dst C:\cygwin64\dev, flags 0x30008, rc 0
   70   19526 [main] cat 553 symlink_info::check: 0x0 = NtCreateFile (\??\C:\cygwin64\dev)
   40   19566 [main] cat 553 symlink_info::check: not a symlink
   17   19583 [main] cat 553 symlink_info::check: 0 = symlink.check(C:\cygwin64\dev, 0xFFFFB790) (mount_flags 0x30008, path_flags 0x0)
   24   19607 [main] cat 553 build_fh_pc: fh 0x18034D178, dev 000000C1
   16   19623 [main] cat 553 stat_worker: (\??\C:\cygwin64\dev, 0x180320C40, 0x18034D178), file_attributes 16
  271   19894 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <SYSTEM:S-1-5-18:18:>
--- Process 4284 (pid: 553) loaded C:\Windows\System32\authz.dll at 000007fefd0c0000
  610   20504 [main] cat 553 fhandler_base::fstat_helper: 0 = fstat (\??\C:\cygwin64\dev, 0x180320C40) st_size=0, st_mode=040770, st_ino=281474976832178st_atim=5CAE464A.34C73E20 st_ctim=5E5D5DD7.117F6118 st_mtim=5CAE464A.34C73E20 st_birthtim=5CAE4639.1E6BF33C
   38   20542 [main] cat 553 stat_worker: 0 = (\??\C:\cygwin64\dev,0x180320C40)
   31   20573 [main] cat 553 fstat64: 0 = fstat(1, 0xFFFFCB30)
   17   20590 [main] cat 553 isatty: 1 = isatty(1)
   19   20609 [main] cat 553 open: open(/proc/partitions, 0x10000)
   17   20626 [main] cat 553 normalize_posix_path: src /proc/partitions
   15   20641 [main] cat 553 normalize_posix_path: /proc/partitions = normalize_posix_path (/proc/partitions)
   16   20657 [main] cat 553 mount_info::conv_to_win32_path: conv_to_win32_path (/proc/partitions)
   18   20675 [main] cat 553 fhandler_proc::get_proc_fhandler: get_proc_fhandler(/proc/partitions)
   17   20692 [main] cat 553 mount_info::conv_to_win32_path: src_path /proc/partitions, dst /proc/partitions, flags 0x0, rc 0
   22   20714 [main] cat 553 build_fh_pc: fh 0x18034D178, dev 000000FF
   17   20731 [main] cat 553 fhandler_proc::exists: exists (/proc/partitions)
   20   20751 [main] cat 553 build_fh_pc: fh 0x18034D178, dev 000000FF
   17   20768 [main] cat 553 fhandler_base::set_flags: flags 0x18000, supplied_bin 0x0
   15   20783 [main] cat 553 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   16   20799 [main] cat 553 fhandler_base::set_flags: filemode set to binary
  460   21259 [main] cat 553 format_proc_partitions: DeviceIoControl (Harddisk0\Partition0, IOCTL_DISK_GET_PARTITION_INFO{_EX}) Win32 error 5
   29   21288 [main] cat 553 format_proc_partitions: DeviceIoControl(Harddisk0\Partition0, IOCTL_DISK_GET_DRIVE_LAYOUT{_EX}): Win32 error 5
   70   21358 [main] cat 553 format_proc_partitions: DeviceIoControl (Harddisk1\Partition0, IOCTL_DISK_GET_PARTITION_INFO{_EX}) Win32 error 5
   26   21384 [main] cat 553 format_proc_partitions: DeviceIoControl(Harddisk1\Partition0, IOCTL_DISK_GET_DRIVE_LAYOUT{_EX}): Win32 error 5
   70   21454 [main] cat 553 format_proc_partitions: DeviceIoControl (Harddisk2\Partition0, IOCTL_DISK_GET_PARTITION_INFO{_EX}) Win32 error 5
   28   21482 [main] cat 553 format_proc_partitions: DeviceIoControl(Harddisk2\Partition0, IOCTL_DISK_GET_DRIVE_LAYOUT{_EX}): Win32 error 5
   63   21545 [main] cat 553 format_proc_partitions: DeviceIoControl (Harddisk3\Partition0, IOCTL_DISK_GET_PARTITION_INFO{_EX}) Win32 error 5
   26   21571 [main] cat 553 format_proc_partitions: DeviceIoControl(Harddisk3\Partition0, IOCTL_DISK_GET_DRIVE_LAYOUT{_EX}): Win32 error 5
   67   21638 [main] cat 553 format_proc_partitions: DeviceIoControl (Harddisk4\Partition0, IOCTL_DISK_GET_PARTITION_INFO{_EX}) Win32 error 5
   26   21664 [main] cat 553 format_proc_partitions: DeviceIoControl(Harddisk4\Partition0, IOCTL_DISK_GET_DRIVE_LAYOUT{_EX}): Win32 error 5
  474   22138 [main] cat 553 format_proc_partitions: DeviceIoControl (Harddisk5\Partition0, IOCTL_DISK_GET_PARTITION_INFO{_EX}) Win32 error 5
   39   22177 [main] cat 553 format_proc_partitions: DeviceIoControl(Harddisk5\Partition0, IOCTL_DISK_GET_DRIVE_LAYOUT{_EX}): Win32 error 5
  330   22507 [main] cat 553 fhandler_base::set_flags: flags 0x18000, supplied_bin 0x0
   19   22526 [main] cat 553 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   16   22542 [main] cat 553 fhandler_base::set_flags: filemode set to binary
   16   22558 [main] cat 553 fhandler_proc::open: 1 = fhandler_proc::open(0x18000, 00)
   16   22574 [main] cat 553 open: 3 = open(/proc/partitions, 0x18000)
   16   22590 [main] cat 553 fhandler_proc::fstat: fstat (/proc/partitions)
   16   22606 [main] cat 553 time: 1583185594 = time(0x0)
   17   22623 [main] cat 553 fstat64: 0 = fstat(3, 0xFFFFCB30)
   16   22639 [main] cat 553 __set_errno: virtual int fhandler_base::fadvise(off_t, off_t, int):1829 setting errno 22
   15   22654 [main] cat 553 posix_fadvise: -1 = posix_fadvice(3, 0, 0, 1), errno 22
   41   22695 [main] cat 553 read: read(3, 0x800050000, 131072) blocking
   17   22712 [main] cat 553 read: 197 = read(3, 0x800050000, 197)
   30   22742 [main] cat 553 fhandler_pty_slave::write: pty0, write(0x800050000, 197)
   25   22767 [main] cat 553 fhandler_pty_slave::write: (1507): pty output_mutex (0x148): waiting -1 ms
   17   22784 [main] cat 553 fhandler_pty_slave::write: (1507): pty output_mutex: acquired
   21   22805 [main] cat 553 fhandler_pty_slave::write: (1522): pty output_mutex(0x148) released
   17   22822 [main] cat 553 write: 197 = write(1, 0x800050000, 197)
   16   22838 [main] cat 553 read: read(3, 0x800050000, 131072) blocking
   16   22854 [main] cat 553 read: 0 = read(3, 0x800050000, 0)
   28   22882 [main] cat 553 close: close(3)
   16   22898 [main] cat 553 close: 0 = close(3)
   95   22993 [main] cat 553 close: close(1)
   15   23008 [main] cat 553 fhandler_base::close_with_arch: line 1183:  /dev/pty0<0x18034C430> usecount + -1 = 3
   16   23024 [main] cat 553 fhandler_base::close_with_arch: not closing archetype
   17   23041 [main] cat 553 close: 0 = close(1)
  171   23212 [main] cat 553 close: close(2)
   16   23228 [main] cat 553 fhandler_base::close_with_arch: line 1183:  /dev/pty0<0x18034C430> usecount + -1 = 2
   15   23243 [main] cat 553 fhandler_base::close_with_arch: not closing archetype
   16   23259 [main] cat 553 close: 0 = close(2)
  123   23382 [main] cat 553 do_exit: do_exit (0), exit_state 1
   17   23399 [main] cat 553 void: 0x0 = signal (20, 0x1)
   15   23414 [main] cat 553 void: 0x0 = signal (1, 0x1)
   15   23429 [main] cat 553 void: 0x0 = signal (2, 0x1)
   15   23444 [main] cat 553 void: 0x0 = signal (3, 0x1)
   17   23461 [main] cat 553 fhandler_base::close_with_arch: line 1183:  /dev/pty0<0x18034C430> usecount + -1 = 1
   16   23477 [main] cat 553 fhandler_base::close_with_arch: not closing archetype
   16   23493 [main] cat 553 init_cygheap::close_ctty: closing cygheap->ctty 0x18034C430
   16   23509 [main] cat 553 fhandler_base::close_with_arch: closing passed in archetype 0x0, usecount 0
   17   23526 [main] cat 553 fhandler_pty_slave::cleanup: /dev/pty0 closed, usecount 0
   17   23543 [main] cat 553 fhandler_pty_slave::close: closing last open /dev/pty0 handle
   74   23617 [main] cat 553 fhandler_console::free_console: freed console, res 1
   27   23644 [main] cat 553 fhandler_pty_common::close: pty0 <0x158,0x164> closing
   24   23668 [main] cat 553 dtable::delete_archetype: deleting element 0 for /dev/pty0(136/0)
   20   23688 [main] cat 553 getpid: 553 = getpid()
   16   23704 [main] cat 553 proc_terminate: nprocs 0
   15   23719 [main] cat 553 proc_terminate: leaving
   46   23765 [main] cat 553 pinfo::exit: Calling dlls.cleanup_forkables n 0x0, exitcode 0x0
   21   23786 [main] cat 553 pinfo::exit: Calling ExitProcess n 0x0, exitcode 0x0
--- Process 4284 (pid: 553) thread 5752 exited with status 0x0
--- Process 4284 (pid: 553) thread 3792 exited with status 0x0
--- Process 4284 (pid: 553) thread 4904 exited with status 0x0
--- Process 4284 (pid: 553) exited with status 0x0

[-- Attachment #3: Type: text/plain, Size: 219 bytes --]


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: cat /proc/partitions shows only devices, not partitions
  2020-03-03  0:55 cat /proc/partitions shows only devices, not partitions Hashim Aziz
@ 2020-03-03 10:44 ` Corinna Vinschen
  0 siblings, 0 replies; 12+ messages in thread
From: Corinna Vinschen @ 2020-03-03 10:44 UTC (permalink / raw)
  To: Hashim Aziz; +Cc: cygwin

[-- 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 --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: cat /proc/partitions shows only devices, not partitions
  2020-03-09 15:47 Hashim Aziz
@ 2020-03-09 15:59 ` Bill Stewart
  0 siblings, 0 replies; 12+ messages in thread
From: Bill Stewart @ 2020-03-09 15:59 UTC (permalink / raw)
  To: cygwin

On Mon, Mar 9, 2020 at 9:47 AM Hashim Aziz wrote:

> 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.

As a side point: It is important to understand that "logging on using
an account that's a member of the Administrators group" is not the
same as "running elevated" when UAC (User Account Control) is enabled.
(It is not recommended to disable UAC.)

If you don't launch your Cygwin shell using the "Run as administrator"
option, the Administrator group is not enabled in the process token,
and thus actually does not have administrator permissions. (Using the
"Run as administrator" option is often referred to as "running
elevated.")

Bill

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: cat /proc/partitions shows only devices, not partitions
@ 2020-03-09 15:47 Hashim Aziz
  2020-03-09 15:59 ` Bill Stewart
  0 siblings, 1 reply; 12+ messages in thread
From: Hashim Aziz @ 2020-03-09 15:47 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: cat /proc/partitions shows only devices, not partitions
  2020-03-07 20:36 ` Hashim Aziz
@ 2020-03-09  3:11   ` Andrey Repin
  0 siblings, 0 replies; 12+ messages in thread
From: Andrey Repin @ 2020-03-09  3:11 UTC (permalink / raw)
  To: Hashim Aziz, cygwin

Greetings, Hashim Aziz!

Please no top posting on the list.

> An update to this, I resorted to nuking and then re-installing Cygwin from
> scratch, and the problem STILL persists. This seems to suggest that
> something is wrong with Windows itself that is responsible for Cygwin no
> longer being able to see the the drive letters that partitions are mounted
> at, but what that something could be I have no idea anymore.

Look at the list of your installed software and ask yourself, which of them
could impose additional restrictions on low-level API's?

Various would-be-"antiviruses", "antihacking" and "firewall" applications are
ready candidates for investigation.

P.S.
If you have an hour to spare, you could try installing your OS in a VM and
check in there.


-- 
With best regards,
Andrey Repin
Monday, March 9, 2020 6:08:37

Sorry for my terrible english...


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: cat /proc/partitions shows only devices, not partitions
  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
  1 sibling, 1 reply; 12+ messages in thread
From: Hashim Aziz @ 2020-03-07 20:36 UTC (permalink / raw)
  To: cygwin

An update to this, I resorted to nuking and then re-installing Cygwin from scratch, and the problem STILL persists. This seems to suggest that something is wrong with Windows itself that is responsible for Cygwin no longer being able to see the the drive letters that partitions are mounted at, but what that something could be I have no idea anymore.
________________________________
From: Hashim Aziz <hashaziz@hotmail.com>
Sent: 03 March 2020 4:32 PM
To: cygwin@cygwin.com <cygwin@cygwin.com>
Subject: Re: cat /proc/partitions shows only devices, not partitions

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):

$ chown $USER /* -v
ownership of '/bin' retained as Hashim
chown: changing ownership of '/cygdrive': Permission denied
failed to change ownership of '/cygdrive' from Hashim to Hashim
chown: changing ownership of '/Cygwin.bat': Permission denied
failed to change ownership of '/Cygwin.bat' from Hashim to Hashim
chown: changing ownership of '/Cygwin.ico': Permission denied
failed to change ownership of '/Cygwin.ico' from Hashim to Hashim
chown: changing ownership of '/Cygwin-Terminal.ico': Permission denied
failed to change ownership of '/Cygwin-Terminal.ico' from Hashim to Hashim
ownership of '/dev' retained as Hashim
ownership of '/etc' retained as Hashim
ownership of '/home' retained as Hashim
ownership of '/lib' retained as Hashim
ownership of '/opt' retained as Hashim
chown: changing ownership of '/proc': Operation not permitted
failed to change ownership of '/proc' from Hashim to Hashim
ownership of '/sbin' retained as Hashim
ownership of '/srv' retained as Hashim
ownership of '/tmp' retained as Hashim
ownership of '/usr' retained as Hashim
ownership of '/var' retained as Hashim

Whether the above output is normal or not I'm unsure.



From: Corinna Vinschen
Sent: Tuesday, March 03, 2020 10:44 AM
To: Hashim Aziz
Cc: cygwin@cygwin.com
Subject: Re: cat /proc/partitions shows only devices, not partitions




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 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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: cat /proc/partitions shows only devices, not partitions
  2020-03-01 21:16 Hashim Aziz
  2020-03-02 16:56 ` Corinna Vinschen
@ 2020-03-04 19:35 ` Andrey Repin
  1 sibling, 0 replies; 12+ messages in thread
From: Andrey Repin @ 2020-03-04 19:35 UTC (permalink / raw)
  To: Hashim Aziz, cygwin

Greetings, Hashim Aziz!

> This was an issue that I had previously in September of last year and sent
> the issue to this mailing list ("win-mounts no longer displays anything when
> doing "cat /proc/partitions") but the issue stopped occurring before I could
> get around to diagnosing it. This issue has now re-occurred and this time it seems permanent. When I run:

> $ cat /proc/partitions
> major minor  #blocks  name   win-mounts

>     8     0         0 sda
>     8    16         0 sdb
>     8    32         0 sdc
>     8    48         0 sdd
>     8    64         0 sde
>     8    80         0 sdf

$ cat /proc/partitions
major minor  #blocks  name   win-mounts

    8     0  78150744 sda
    8     1    102400 sda1
    8     2    131072 sda2
    8     3  77916160 sda3   C:\ C:\dev\sda1\
    8    16 488386584 sdb
    8    17 486615520 sdb1
    8    32 488386584 sdc
    8    33 488384512 sdc1
    8    48 312571224 sdd
    8    49 312568641 sdd1
    8    64         0 sde
    8    80         0 sdf
    8    96         0 sdg
    8   112         0 sdh

> ...I see nothing at all in the win-mounts column. This makes it impossible
> for me to see which Windows drive letter maps to which /dev/sdX entry.

This seems like a permissions issue.

> win-mounts column. I'm running Cygwin on Windows 7 (yes I'm aware it's EOL).

Same here. Win 7 Pro SP1.


-- 
With best regards,
Andrey Repin
Wednesday, March 4, 2020 22:00:31

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: cat /proc/partitions shows only devices, not partitions
  2020-03-03 17:21 Hashim Aziz
@ 2020-03-03 18:17 ` Corinna Vinschen
  2020-03-07 20:36 ` Hashim Aziz
  1 sibling, 0 replies; 12+ messages in thread
From: Corinna Vinschen @ 2020-03-03 18:17 UTC (permalink / raw)
  To: cygwin

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

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

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: cat /proc/partitions shows only devices, not partitions
@ 2020-03-03 17:21 Hashim Aziz
  2020-03-03 18:17 ` Corinna Vinschen
  2020-03-07 20:36 ` Hashim Aziz
  0 siblings, 2 replies; 12+ messages in thread
From: Hashim Aziz @ 2020-03-03 17:21 UTC (permalink / raw)
  To: cygwin

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):

$ chown $USER /* -v
ownership of '/bin' retained as Hashim
chown: changing ownership of '/cygdrive': Permission denied
failed to change ownership of '/cygdrive' from Hashim to Hashim
chown: changing ownership of '/Cygwin.bat': Permission denied
failed to change ownership of '/Cygwin.bat' from Hashim to Hashim
chown: changing ownership of '/Cygwin.ico': Permission denied
failed to change ownership of '/Cygwin.ico' from Hashim to Hashim
chown: changing ownership of '/Cygwin-Terminal.ico': Permission denied
failed to change ownership of '/Cygwin-Terminal.ico' from Hashim to Hashim
ownership of '/dev' retained as Hashim
ownership of '/etc' retained as Hashim
ownership of '/home' retained as Hashim
ownership of '/lib' retained as Hashim
ownership of '/opt' retained as Hashim
chown: changing ownership of '/proc': Operation not permitted
failed to change ownership of '/proc' from Hashim to Hashim
ownership of '/sbin' retained as Hashim
ownership of '/srv' retained as Hashim
ownership of '/tmp' retained as Hashim
ownership of '/usr' retained as Hashim
ownership of '/var' retained as Hashim
            
Whether the above output is normal or not I'm unsure.
            


From: Corinna Vinschen
Sent: Tuesday, March 03, 2020 10:44 AM
To: Hashim Aziz
Cc: cygwin@cygwin.com
Subject: Re: cat /proc/partitions shows only devices, not partitions
            


            
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 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


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: cat /proc/partitions shows only devices, not partitions
@ 2020-03-03  1:01 Hashim Aziz
  0 siblings, 0 replies; 12+ messages in thread
From: Hashim Aziz @ 2020-03-03  1:01 UTC (permalink / raw)
  To: cygwin

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


Hey Corinna, thanks for your quick reply.

Regarding the elevated shell - I'm unsure of exactly how to run an elevated Cygwin shell?

I have attached the requested strace file.

Thanks,
Hashim
         

            


From: Corinna Vinschen
Sent: Monday, March 02, 2020 4:56 PM
To: Hashim Aziz
Cc: cygwin
Subject: Re: cat /proc/partitions shows only devices, not partitions
            


            
On Mar  1 21:16, Hashim Aziz wrote:

> This was an issue that I had previously in September of last year and

> sent the issue to this mailing list ("win-mounts no longer displays

> anything when doing "cat /proc/partitions") but the issue stopped

> occurring before I could get around to diagnosing it. This issue has

> now re-occurred and this time it seems permanent. When I run:

> 

> $ cat /proc/partitions

> major minor  #blocks  name   win-mounts

> 

>     8     0         0 sda

>     8    16         0 sdb

>     8    32         0 sdc

>     8    48         0 sdd

>     8    64         0 sde

>     8    80         0 sdf

> 

> ...I see nothing at all in the win-mounts column. This makes it

> impossible for me to see which Windows drive letter maps to which

> /dev/sdX entry. On closer inspection, this seems to be because I'm not

> actually seeing any partitions of my drives, even though there are

> many - for example, I see /dev/sda but no /dev/sda1 or /dev/sda2, and

> because it's the partitions that are mounted, it's this that seems to

> result in me seeing nothing in the win-mounts column. I'm running

> Cygwin on Windows 7 (yes I'm aware it's EOL).



Fortunately I just started Windows 7 for another thread here, so I

gave it a try myself:



  $ uname -a

  CYGWIN_NT-6.1 vmbert764 3.1.4(0.340/5/3) 2020-02-19 08:49 x86_64 Cygwin

  $ id -G | grep -Eq '\<544\>' && echo elevated || echo non-elevated

  non-elevated

  $ cat /proc/partitions

  major minor  #blocks  name   win-mounts



      8     0  54525952 sda

      8     1    102400 sda1

      8     2  54420480 sda2   C:\



So, https://cygwin.com/acronyms/#WJFFM



This appears to be a local phenomenon only, either some permission

problem, or some BLODA, a life virus scanner or something.



Two questions come to mind:



- Does it work in an elevated shell?



- If you run this under strace, does it show anything unusual?

  We could take a look if you call



    strace -o cat.trace cat /proc/partitions



  and send the cat.trace file here (assuming it still doesn't work).





Corinna



-- 

Corinna Vinschen

Cygwin Maintainer


[-- Attachment #2: cat.trace --]
[-- Type: application/octet-stream, Size: 42019 bytes --]

--- Process 4284 created
--- Process 4284 loaded C:\Windows\System32\ntdll.dll at 0000000077bb0000
--- Process 4284 loaded C:\Windows\System32\kernel32.dll at 0000000077990000
--- Process 4284 loaded C:\Program Files\AVAST Software\Avast\aswhook.dll at 000007fef3500000
--- Process 4284 loaded C:\Windows\System32\KernelBase.dll at 000007fefd720000
--- Process 4284 loaded C:\cygwin64\bin\cygwin1.dll at 0000000180040000
--- Process 4284 loaded C:\cygwin64\bin\cygintl-8.dll at 00000003c8030000
--- Process 4284 loaded C:\cygwin64\bin\cygiconv-2.dll at 00000003d8c40000
    0       0 [main] cat (4284) **********************************************
  160     160 [main] cat (4284) Program name: C:\cygwin64\bin\cat.exe (windows pid 4284)
   50     210 [main] cat (4284) OS version:   Windows NT-6.1
   46     256 [main] cat (4284) **********************************************
--- Process 4284 loaded C:\Windows\System32\advapi32.dll at 000007fefe280000
--- Process 4284 loaded C:\Windows\System32\msvcrt.dll at 000007fefdae0000
--- Process 4284 loaded C:\Windows\System32\sechost.dll at 000007fefdac0000
--- Process 4284 loaded C:\Windows\System32\rpcrt4.dll at 000007feffc90000
--- Process 4284 loaded C:\Windows\System32\cryptbase.dll at 000007fefd5a0000
 2295    2551 [main] cat (4284) sigprocmask: 0 = sigprocmask (0, 0x0, 0x180320DD0)
  354    2905 [main] cat (4284) open_shared: name shared.5, n 5, shared 0x180030000 (wanted 0x180030000), h 0x84, *m 6
   32    2937 [main] cat (4284) user_heap_info::init: heap base 0x800000000, heap top 0x800000000, heap size 0x20000000 (536870912)
   28    2965 [main] cat (4284) open_shared: name S-1-5-21-3433665796-288219753-4175593165-1001.1, n 1, shared 0x180020000 (wanted 0x180020000), h 0x80, *m 6
   16    2981 [main] cat (4284) user_info::create: opening user shared for 'S-1-5-21-3433665796-288219753-4175593165-1001' at 0x180020000
   15    2996 [main] cat (4284) user_info::create: user shared version AB1FCCE8
   49    3045 [main] cat (4284) fhandler_pipe::create: name \\.\pipe\cygwin-e022582115c10879-4284-sigwait, size 11440, mode PIPE_TYPE_MESSAGE
   50    3095 [main] cat (4284) fhandler_pipe::create: pipe read handle 0x9C
   15    3110 [main] cat (4284) fhandler_pipe::create: CreateFile: name \\.\pipe\cygwin-e022582115c10879-4284-sigwait
   29    3139 [main] cat (4284) fhandler_pipe::create: pipe write handle 0xA0
   40    3179 [main] cat (4284) dll_crt0_0: finished dll_crt0_0 initialization
--- Process 4284 thread 5752 created
  254    3433 [sig] cat (4284) wait_sig: entering ReadFile loop, my_readsig 0x9C, my_sendsig 0xA0
  126    3559 [main] cat (4284) time: 1583185594 = time(0x0)
   68    3627 [main] cat (4284) mount_info::conv_to_posix_path: conv_to_posix_path (B:\Users\Hashim\Desktop, 0x0, no-add-slash)
   35    3662 [main] cat (4284) normalize_win32_path: B:\Users\Hashim\Desktop = normalize_win32_path (B:\Users\Hashim\Desktop)
   25    3687 [main] cat (4284) mount_info::conv_to_posix_path: /cygdrive/b/Users/Hashim/Desktop = conv_to_posix_path (B:\Users\Hashim\Desktop)
   34    3721 [main] cat (4284) sigprocmask: 0 = sigprocmask (0, 0x0, 0x800018130)
  105    3826 [main] cat (4284) _cygwin_istext_for_stdio: fd 0: not open
   22    3848 [main] cat (4284) _cygwin_istext_for_stdio: fd 1: not open
   17    3865 [main] cat (4284) _cygwin_istext_for_stdio: fd 2: not open
   68    3933 [main] cat (4284) open_shared: name cygpid.553, n 553, shared 0x180010000 (wanted 0x180010000), h 0xC8, *m 2
   22    3955 [main] cat (4284) time: 1583185594 = time(0x0)
   32    3987 [main] cat 553 pinfo::thisproc: myself dwProcessId 4284
   32    4019 [main] cat 553 environ_init: GetEnvironmentStrings returned 0x392130
   66    4085 [main] cat 553 win32env_to_cygenv: 0x8000284F0: !::=::\
   30    4115 [main] cat 553 win32env_to_cygenv: 0x800028510: ALLUSERSPROFILE=C:\ProgramData
   26    4141 [main] cat 553 win32env_to_cygenv: 0x800028540: ANDROID_SDK_HOME=C:\Android
   25    4166 [main] cat 553 win32env_to_cygenv: 0x800028570: APPDATA=B:\Users\Hashim\AppData\Roaming
   29    4195 [main] cat 553 win32env_to_cygenv: 0x8000285A0: COMMONPROGRAMFILES=C:\Program Files\Common Files
   69    4264 [main] cat 553 win32env_to_cygenv: 0x8000285E0: COMPUTERNAME=PROMETHEUS
   31    4295 [main] cat 553 win32env_to_cygenv: 0x800028600: COMSPEC=C:\Windows\system32\cmd.exe
   32    4327 [main] cat 553 win32env_to_cygenv: 0x800028630: CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
   31    4358 [main] cat 553 win32env_to_cygenv: 0x800028680: CommonProgramW6432=C:\Program Files\Common Files
   31    4389 [main] cat 553 parse_options: glob (called func)
   33    4422 [main] cat 553 parse_options: returning
   16    4438 [main] cat 553 win32env_to_cygenv: 0x8000286C0: CYGWIN=noglob
   27    4465 [main] cat 553 win32env_to_cygenv: 0x800028700: DBug=No
   29    4494 [main] cat 553 win32env_to_cygenv: 0x800028720: DrvType=SSD
   26    4520 [main] cat 553 win32env_to_cygenv: 0x800028740: EXECIGNORE=*.dll
   28    4548 [main] cat 553 win32env_to_cygenv: 0x800028760: FP_NO_HOST_CHECK=NO
   31    4579 [main] cat 553 getwinenv: can't set native for HOME= since no environ yet
   20    4599 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin64\home\Hashim, 0x10000000, no-add-slash)
   17    4616 [main] cat 553 normalize_win32_path: C:\cygwin64\home\Hashim = normalize_win32_path (C:\cygwin64\home\Hashim)
   17    4633 [main] cat 553 mount_info::conv_to_posix_path: /home/Hashim = conv_to_posix_path (C:\cygwin64\home\Hashim)
   42    4675 [main] cat 553 win_env::add_cache: posix /home/Hashim
   16    4691 [main] cat 553 win_env::add_cache: native HOME=C:\cygwin64\home\Hashim
   16    4707 [main] cat 553 posify_maybe: env var converted to HOME=/home/Hashim
   44    4751 [main] cat 553 win32env_to_cygenv: 0x800028800: HOME=/home/Hashim
   30    4781 [main] cat 553 win32env_to_cygenv: 0x800028780: HOMEDRIVE=B:
   26    4807 [main] cat 553 win32env_to_cygenv: 0x800028820: HOMEPATH=\Users\Hashim
   26    4833 [main] cat 553 win32env_to_cygenv: 0x800028840: HOSTNAME=Prometheus
   29    4862 [main] cat 553 win32env_to_cygenv: 0x800028860: HiLiteCol=Default
   32    4894 [main] cat 553 win32env_to_cygenv: 0x800028880: INFOPATH=/usr/local/info:/usr/share/info:/usr/info
   25    4919 [main] cat 553 win32env_to_cygenv: 0x8000288C0: LANG=en_US.UTF-8
   30    4949 [main] cat 553 win32env_to_cygenv: 0x8000288E0: LOCALAPPDATA=B:\Users\Hashim\AppData\Local
   29    4978 [main] cat 553 win32env_to_cygenv: 0x800028920: LOGONSERVER=\\PROMETHEUS
   26    5004 [main] cat 553 win32env_to_cygenv: 0x800028950: LV2_PATH=/usr/lib/lv2
   29    5033 [main] cat 553 win32env_to_cygenv: 0x800028970: MINTTY_SHORTCUT=/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/Programs/Cygwin/Cygwin64 Terminal.lnk
   28    5061 [main] cat 553 win32env_to_cygenv: 0x8000289F0: NUMBER_OF_PROCESSORS=4
   27    5088 [main] cat 553 win32env_to_cygenv: 0x800028A10: NoMD=0
   31    5119 [main] cat 553 win32env_to_cygenv: 0x800028A30: OEMsOK=Yes
   27    5146 [main] cat 553 win32env_to_cygenv: 0x800028A50: OLDPWD=/home/Hashim
   34    5180 [main] cat 553 win32env_to_cygenv: 0x800028A70: ORIGINAL_PATH=%SystemRoot%/system32:%SystemRoot%:%SystemRoot%/System32/Wbem:%SYSTEMROOT%/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/Microsoft VS Code/bin:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64:/cygdrive/c/Program Files/FileBot:/cygdrive/c/Android:/cygdrive/c/Windows/System32
   37    5217 [main] cat 553 win32env_to_cygenv: 0x800028C70: OS=Windows_NT
   25    5242 [main] cat 553 win32env_to_cygenv: 0x800028C90: OSEd=Ultimate
   35    5277 [main] cat 553 getwinenv: can't set native for PATH= since no environ yet
   34    5311 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (B:\Users\Hashim\Desktop\Mosque Website\XAMPP\php, 0x10000100, no-add-slash)
   17    5328 [main] cat 553 normalize_win32_path: B:\Users\Hashim\Desktop\Mosque Website\XAMPP\php = normalize_win32_path (B:\Users\Hashim\Desktop\Mosque Website\XAMPP\php)
   19    5347 [main] cat 553 mount_info::conv_to_posix_path: /cygdrive/b/Users/Hashim/Desktop/Mosque Website/XAMPP/php = conv_to_posix_path (B:\Users\Hashim\Desktop\Mosque Website\XAMPP\php)
   18    5365 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin64\usr\sbin, 0x10000100, no-add-slash)
   14    5379 [main] cat 553 normalize_win32_path: C:\cygwin64\usr\sbin = normalize_win32_path (C:\cygwin64\usr\sbin)
   18    5397 [main] cat 553 mount_info::conv_to_posix_path: /usr/sbin = conv_to_posix_path (C:\cygwin64\usr\sbin)
   16    5413 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin64\sbin, 0x10000100, no-add-slash)
   20    5433 [main] cat 553 normalize_win32_path: C:\cygwin64\sbin = normalize_win32_path (C:\cygwin64\sbin)
   16    5449 [main] cat 553 mount_info::conv_to_posix_path: /sbin = conv_to_posix_path (C:\cygwin64\sbin)
   17    5466 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin64\usr\local\bin, 0x10000100, no-add-slash)
   17    5483 [main] cat 553 normalize_win32_path: C:\cygwin64\usr\local\bin = normalize_win32_path (C:\cygwin64\usr\local\bin)
   15    5498 [main] cat 553 mount_info::conv_to_posix_path: /usr/local/bin = conv_to_posix_path (C:\cygwin64\usr\local\bin)
   16    5514 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin64\bin, 0x10000100, no-add-slash)
   17    5531 [main] cat 553 normalize_win32_path: C:\cygwin64\bin = normalize_win32_path (C:\cygwin64\bin)
   18    5549 [main] cat 553 mount_info::conv_to_posix_path: /usr/bin = conv_to_posix_path (C:\cygwin64\bin)
   17    5566 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (%SystemRoot%\system32, 0x10000100, no-add-slash)
   17    5583 [main] cat 553 mount_info::conv_to_posix_path: %SystemRoot%/system32 = conv_to_posix_path (%SystemRoot%\system32)
   15    5598 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (%SystemRoot%, 0x10000100, no-add-slash)
   15    5613 [main] cat 553 mount_info::conv_to_posix_path: %SystemRoot% = conv_to_posix_path (%SystemRoot%)
   16    5629 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (%SystemRoot%\System32\Wbem, 0x10000100, no-add-slash)
   15    5644 [main] cat 553 mount_info::conv_to_posix_path: %SystemRoot%/System32/Wbem = conv_to_posix_path (%SystemRoot%\System32\Wbem)
   19    5663 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (%SYSTEMROOT%\System32\WindowsPowerShell\v1.0, 0x10000100, no-add-slash)
   17    5680 [main] cat 553 mount_info::conv_to_posix_path: %SYSTEMROOT%/System32/WindowsPowerShell/v1.0 = conv_to_posix_path (%SYSTEMROOT%\System32\WindowsPowerShell\v1.0)
   15    5695 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Program Files\Microsoft VS Code\bin, 0x10000100, no-add-slash)
   17    5712 [main] cat 553 normalize_win32_path: C:\Program Files\Microsoft VS Code\bin = normalize_win32_path (C:\Program Files\Microsoft VS Code\bin)
   17    5729 [main] cat 553 mount_info::conv_to_posix_path: /cygdrive/c/Program Files/Microsoft VS Code/bin = conv_to_posix_path (C:\Program Files\Microsoft VS Code\bin)
   16    5745 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86, 0x10000100, no-add-slash)
   17    5762 [main] cat 553 normalize_win32_path: C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86 = normalize_win32_path (C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86)
   15    5777 [main] cat 553 mount_info::conv_to_posix_path: /cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86 = conv_to_posix_path (C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86)
   17    5794 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64, 0x10000100, no-add-slash)
   14    5808 [main] cat 553 normalize_win32_path: C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64 = normalize_win32_path (C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64)
   19    5827 [main] cat 553 mount_info::conv_to_posix_path: /cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64 = conv_to_posix_path (C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64)
   18    5845 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86, 0x10000100, no-add-slash)
   18    5863 [main] cat 553 normalize_win32_path: C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86 = normalize_win32_path (C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86)
   17    5880 [main] cat 553 mount_info::conv_to_posix_path: /cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86 = conv_to_posix_path (C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86)
   17    5897 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64, 0x10000100, no-add-slash)
   17    5914 [main] cat 553 normalize_win32_path: C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64 = normalize_win32_path (C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64)
   14    5928 [main] cat 553 mount_info::conv_to_posix_path: /cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64 = conv_to_posix_path (C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64)
   17    5945 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Program Files\FileBot, 0x10000100, no-add-slash)
   17    5962 [main] cat 553 normalize_win32_path: C:\Program Files\FileBot = normalize_win32_path (C:\Program Files\FileBot)
   15    5977 [main] cat 553 mount_info::conv_to_posix_path: /cygdrive/c/Program Files/FileBot = conv_to_posix_path (C:\Program Files\FileBot)
   14    5991 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Android, 0x10000100, no-add-slash)
   15    6006 [main] cat 553 normalize_win32_path: C:\Android = normalize_win32_path (C:\Android)
   16    6022 [main] cat 553 mount_info::conv_to_posix_path: /cygdrive/c/Android = conv_to_posix_path (C:\Android)
   16    6038 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Windows\System32, 0x10000100, no-add-slash)
   19    6057 [main] cat 553 normalize_win32_path: C:\Windows\System32 = normalize_win32_path (C:\Windows\System32)
   17    6074 [main] cat 553 mount_info::conv_to_posix_path: /cygdrive/c/Windows/System32 = conv_to_posix_path (C:\Windows\System32)
   17    6091 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin64\lib\lapack, 0x10000100, no-add-slash)
   17    6108 [main] cat 553 normalize_win32_path: C:\cygwin64\lib\lapack = normalize_win32_path (C:\cygwin64\lib\lapack)
   15    6123 [main] cat 553 mount_info::conv_to_posix_path: /usr/lib/lapack = conv_to_posix_path (C:\cygwin64\lib\lapack)
   16    6139 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (B:\users\Hashim\Desktop\Mosque Website\XAMPP\mysql\bin, 0x10000100, no-add-slash)
   16    6155 [main] cat 553 normalize_win32_path: B:\users\Hashim\Desktop\Mosque Website\XAMPP\mysql\bin = normalize_win32_path (B:\users\Hashim\Desktop\Mosque Website\XAMPP\mysql\bin)
   18    6173 [main] cat 553 mount_info::conv_to_posix_path: /cygdrive/b/users/Hashim/Desktop/Mosque Website/XAMPP/mysql/bin = conv_to_posix_path (B:\users\Hashim\Desktop\Mosque Website\XAMPP\mysql\bin)
   46    6219 [main] cat 553 win_env::add_cache: posix /cygdrive/b/Users/Hashim/Desktop/Mosque Website/XAMPP/php:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:%SystemRoot%/system32:%SystemRoot%:%SystemRoot%/System32/Wbem:%SYSTEMROOT%/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/Microsoft VS Code/bin:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64:/cygdrive/c/Program Files/FileBot:/cygdrive/c/Android:/cygdrive/c/Windows/System32:/usr/lib/lapack:/cygdrive/b/users/Hashim/Desktop/Mosque Website/XAMPP/mysql/bin
   20    6239 [main] cat 553 win_env::add_cache: native PATH=B:\Users\Hashim\Desktop\Mosque Website\XAMPP\php;C:\cygwin64\usr\sbin;C:\cygwin64\sbin;C:\cygwin64\usr\local\bin;C:\cygwin64\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0;C:\Program Files\Microsoft VS Code\bin;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\FileBot;C:\Android;C:\Windows\System32;C:\cygwin64\lib\lapack;B:\users\Hashim\Desktop\Mosque Website\XAMPP\mysql\bin
   39    6278 [main] cat 553 posify_maybe: env var converted to PATH=/cygdrive/b/Users/Hashim/Desktop/Mosque Website/XAMPP/php:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:%SystemRoot%/system32:%SystemRoot%:%SystemRoot%/System32/Wbem:%SYSTEMROOT%/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/Microsoft VS Code/bin:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64:/cygdrive/c/Program Files/FileBot:/cygdrive/c/Android:/cygdrive/c/Windows/System32:/usr/lib/lapack:/cygdrive/b/users/Hashim/Desktop/Mosque Website/XAMPP/mysql/bin
   46    6324 [main] cat 553 win32env_to_cygenv: 0x800039460: PATH=/cygdrive/b/Users/Hashim/Desktop/Mosque Website/XAMPP/php:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:%SystemRoot%/system32:%SystemRoot%:%SystemRoot%/System32/Wbem:%SYSTEMROOT%/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/Microsoft VS Code/bin:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64:/cygdrive/c/Program Files/FileBot:/cygdrive/c/Android:/cygdrive/c/Windows/System32:/usr/lib/lapack:/cygdrive/b/users/Hashim/Desktop/Mosque Website/XAMPP/mysql/bin
   37    6361 [main] cat 553 win32env_to_cygenv: 0x800028CB0: PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
   28    6389 [main] cat 553 win32env_to_cygenv: 0x800028D00: PRINTER=EPSON XP-312 313 315 Series
   29    6418 [main] cat 553 win32env_to_cygenv: 0x800028D30: PROCESSOR_ARCHITECTURE=AMD64
   31    6449 [main] cat 553 win32env_to_cygenv: 0x800028D60: PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
   27    6476 [main] cat 553 win32env_to_cygenv: 0x800028DB0: PROCESSOR_LEVEL=6
   30    6506 [main] cat 553 win32env_to_cygenv: 0x800028DD0: PROCESSOR_REVISION=2a07
   28    6534 [main] cat 553 win32env_to_cygenv: 0x800028DF0: PROFILEREAD=true
   27    6561 [main] cat 553 win32env_to_cygenv: 0x800028E10: PROG27B48B2C051=1
   29    6590 [main] cat 553 win32env_to_cygenv: 0x800028E30: PROGRAMFILES=C:\Program Files
   28    6618 [main] cat 553 win32env_to_cygenv: 0x800028E60: PS1=\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ 
   30    6648 [main] cat 553 win32env_to_cygenv: 0x800028EB0: PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
   28    6676 [main] cat 553 win32env_to_cygenv: 0x800028F00: PUBLIC=B:\Users\Public
   27    6703 [main] cat 553 win32env_to_cygenv: 0x800039710: PWD=/cygdrive/b/Users/Hashim/Desktop
   30    6733 [main] cat 553 win32env_to_cygenv: 0x800039740: ProgramData=C:\ProgramData
   28    6761 [main] cat 553 win32env_to_cygenv: 0x800039770: ProgramFiles(x86)=C:\Program Files (x86)
   30    6791 [main] cat 553 win32env_to_cygenv: 0x8000397B0: ProgramW6432=C:\Program Files
   27    6818 [main] cat 553 win32env_to_cygenv: 0x8000397E0: QUOTING_STYLE=literal
   28    6846 [main] cat 553 win32env_to_cygenv: 0x800039800: SESSIONNAME=Console
   32    6878 [main] cat 553 win32env_to_cygenv: 0x800039820: SHELL=/bin/bash
   28    6906 [main] cat 553 win32env_to_cygenv: 0x800039840: SHLVL=1
   29    6935 [main] cat 553 win32env_to_cygenv: 0x800039860: SYSTEMDRIVE=C:
   28    6963 [main] cat 553 win32env_to_cygenv: 0x800039880: SYSTEMROOT=C:\Windows
   29    6992 [main] cat 553 win32env_to_cygenv: 0x8000398A0: ShowExts=No
   30    7022 [main] cat 553 getwinenv: can't set native for TEMP= since no environ yet
   16    7038 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin64\tmp, 0x10000000, no-add-slash)
   17    7055 [main] cat 553 normalize_win32_path: C:\cygwin64\tmp = normalize_win32_path (C:\cygwin64\tmp)
   16    7071 [main] cat 553 mount_info::conv_to_posix_path: /tmp = conv_to_posix_path (C:\cygwin64\tmp)
   41    7112 [main] cat 553 win_env::add_cache: posix /tmp
   17    7129 [main] cat 553 win_env::add_cache: native TEMP=C:\cygwin64\tmp
   16    7145 [main] cat 553 posify_maybe: env var converted to TEMP=/tmp
   40    7185 [main] cat 553 win32env_to_cygenv: 0x800039920: TEMP=/tmp
   31    7216 [main] cat 553 win32env_to_cygenv: 0x8000398C0: TERM=xterm
   28    7244 [main] cat 553 getwinenv: can't set native for TMP= since no environ yet
   16    7260 [main] cat 553 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin64\tmp, 0x10000000, no-add-slash)
   15    7275 [main] cat 553 normalize_win32_path: C:\cygwin64\tmp = normalize_win32_path (C:\cygwin64\tmp)
   16    7291 [main] cat 553 mount_info::conv_to_posix_path: /tmp = conv_to_posix_path (C:\cygwin64\tmp)
   42    7333 [main] cat 553 win_env::add_cache: posix /tmp
   15    7348 [main] cat 553 win_env::add_cache: native TMP=C:\cygwin64\tmp
   16    7364 [main] cat 553 posify_maybe: env var converted to TMP=/tmp
   43    7407 [main] cat 553 win32env_to_cygenv: 0x8000399A0: TMP=/tmp
   30    7437 [main] cat 553 win32env_to_cygenv: 0x800039940: TZ=Europe/London
   27    7464 [main] cat 553 win32env_to_cygenv: 0x8000399C0: USER=Hashim
   29    7493 [main] cat 553 win32env_to_cygenv: 0x8000399E0: USERDOMAIN=Prometheus
   25    7518 [main] cat 553 win32env_to_cygenv: 0x800039A00: USERNAME=Hashim
   29    7547 [main] cat 553 win32env_to_cygenv: 0x800039A20: USERPROFILE=B:\Users\Hashim
   26    7573 [main] cat 553 win32env_to_cygenv: 0x800039A50: WCDHOME=/home/Hashim/.wcd
   29    7602 [main] cat 553 win32env_to_cygenv: 0x800039A80: WINDIR=C:\Windows
   27    7629 [main] cat 553 win32env_to_cygenv: 0x800039AA0: _=/usr/bin/strace
   27    7656 [main] cat 553 win32env_to_cygenv: 0x800039AC0: windows_tracing_flags=3
   32    7688 [main] cat 553 win32env_to_cygenv: 0x800039AE0: windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log
   18    7706 [main] cat 553 pinfo_init: Set nice to 0
   17    7723 [main] cat 553 pinfo_init: pid 553, pgid 553, process_state 0x41
   15    7738 [main] cat 553 App version:  2007.0, api: 0.306
   16    7754 [main] cat 553 DLL version:  3001.4, api: 0.340
   17    7771 [main] cat 553 DLL build:    2020-02-19 08:49
   24    7795 [main] cat 553 dtable::extend: size 32, fds 0x18034A0C0
   79    7874 [main] cat 553 __get_lcid_from_locale: LCID=0x0409
  307    8181 [main] cat 553 transport_layer_pipes::connect: Try to connect to named pipe: \\.\pipe\cygwin-e022582115c10879-lpc
   39    8220 [main] cat 553 transport_layer_pipes::connect: Error opening the pipe (2)
   34    8254 [main] cat 553 client_request::make_request: cygserver un-available
--- Process 4284 (pid: 553) thread 4904 created
--- Process 4284 (pid: 553) loaded C:\Windows\System32\netapi32.dll at 000007fefb450000
--- Process 4284 (pid: 553) loaded C:\Windows\System32\netutils.dll at 000007fefbab0000
--- Process 4284 (pid: 553) loaded C:\Windows\System32\srvcli.dll at 000007fefd1b0000
--- Process 4284 (pid: 553) loaded C:\Windows\System32\wkscli.dll at 000007fefb430000
--- Process 4284 (pid: 553) loaded C:\Windows\System32\samcli.dll at 000007fef8be0000
--- Process 4284 (pid: 553) loaded C:\Windows\System32\samlib.dll at 000007fefc100000
 5036   13290 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <Hashim:*:197609:197121:U-Prometheus\Hashim,S-1-5-21-3433665796-288219753-4175593165-1001:/home/Hashim:/bin/bash>
 1034   14324 [main] cat 553 pwdgrp::fetch_account_from_windows: NetLocalGroupGetInfo(None) 1376
   59   14383 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <None:S-1-5-21-3433665796-288219753-4175593165-513:197121:>
  307   14690 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <Local account and member of Administrators group:S-1-5-114:114:>
  529   15219 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <Administrators:S-1-5-32-544:544:>
  502   15721 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <Users:S-1-5-32-545:545:>
   41   15762 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <INTERACTIVE:S-1-5-4:4:>
   32   15794 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <CONSOLE LOGON:S-1-2-1:66049:>
   20   15814 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <Authenticated Users:S-1-5-11:11:>
   18   15832 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <This Organization:S-1-5-15:15:>
   18   15850 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <Local account:S-1-5-113:113:>
   54   15904 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <CurrentSession:S-1-5-5-0-338483:4095:>
   18   15922 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <LOCAL:S-1-2-0:66048:>
   18   15940 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <NTLM Authentication:S-1-5-64-10:262154:>
   23   15963 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <High Mandatory Level:S-1-16-12288:405504:>
   21   15984 [main] cat 553 cygheap_user::ontherange: what 2, pw 0x18034A3D0
   17   16001 [main] cat 553 cygheap_user::ontherange: HOME is already in the environment /home/Hashim
   75   16076 [main] cat 553 build_argv: argv[0] = 'cat'
   18   16094 [main] cat 553 build_argv: argv[1] = '/proc/partitions'
   16   16110 [main] cat 553 build_argv: argc 2
  157   16267 [main] cat 553 build_fh_pc: created an archetype (0x18034C430) for /dev/pty0(136/0)
   27   16294 [main] cat 553 build_fh_pc: fh 0x18034C0C0, dev 00880000
   23   16317 [main] cat 553 fhandler_pipe::create: name \\.\pipe\cygwin-e022582115c10879-pty0-from-master, size 131072, mode PIPE_TYPE_MESSAGE
   56   16373 [main] cat 553 fhandler_pipe::create: pipe busy
   20   16393 [main] cat 553 tty::exists: exists 1
   98   16491 [main] cat 553 set_posix_access: ACL-Size: 124
   47   16538 [main] cat 553 set_posix_access: Created SD-Size: 200
   16   16554 [main] cat 553 fhandler_pty_slave::open: (800): pty output_mutex (0x148): waiting -1 ms
   31   16585 [main] cat 553 fhandler_pty_slave::open: (800): pty output_mutex: acquired
   37   16622 [main] cat 553 tty::create_inuse: cygtty.slave_alive.0 0x154
   21   16643 [main] cat 553 fhandler_pty_slave::open: (803): pty output_mutex(0x148) released
   42   16685 [main] cat 553 open_shared: name cygpid.530, n 530, shared 0x2E0000 (wanted 0x0), h 0x158, *m 6
   30   16715 [main] cat 553 fhandler_pty_slave::open: dup handles directly since I'm the owner
   35   16750 [main] cat 553 fhandler_pty_slave::open: duplicated from_master 0x258->0x158 from pty_owner
   19   16769 [main] cat 553 fhandler_pty_slave::open: duplicated from_master_cyg 0x258->0x160 from pty_owner
   16   16785 [main] cat 553 fhandler_pty_slave::open: duplicated to_master 0x268->0x164 from pty_owner
   16   16801 [main] cat 553 fhandler_pty_slave::open: duplicated to_master_cyg 0x270->0x168 from pty_owner
  286   17087 [main] cat 553 fhandler_console::need_invisible: invisible_console 0
   39   17126 [main] cat 553 fhandler_base::open_with_arch: line 470:  /dev/pty0<0x18034C430> usecount + 1 = 1
   22   17148 [main] cat 553 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0
   16   17164 [main] cat 553 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   15   17179 [main] cat 553 fhandler_base::set_flags: filemode set to binary
   15   17194 [main] cat 553 _pinfo::set_ctty: old no ctty, ctty device number 0xFFFFFFFF, tc.ntty device number 0x880000 flags & O_NOCTTY 0x0
   16   17210 [main] cat 553 _pinfo::set_ctty: cygheap->ctty 0x0, archetype 0x18034C430
   14   17224 [main] cat 553 _pinfo::set_ctty: ctty was NULL
   15   17239 [main] cat 553 _pinfo::set_ctty: line 541:  /dev/pty0<0x18034C430> usecount + 1 = 2
   20   17259 [main] cat 553 _pinfo::set_ctty: /dev/pty0 ctty, usecount 2
   20   17279 [main] cat 553 _pinfo::set_ctty: attaching ctty /dev/pty0 sid 553, pid 553, pgid 553, tty->pgid 551, tty->sid 531
   17   17296 [main] cat 553 _pinfo::set_ctty: cygheap->ctty now 0x18034C430, archetype 0x18034C430
   46   17342 [main] cat 553 fhandler_pty_slave::open_setup: /dev/pty0 opened, usecount 2
   20   17362 [main] cat 553 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0
   16   17378 [main] cat 553 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   16   17394 [main] cat 553 fhandler_base::set_flags: filemode set to binary
   16   17410 [main] cat 553 _pinfo::set_ctty: old ctty /dev/pty0, ctty device number 0x880000, tc.ntty device number 0x880000 flags & O_NOCTTY 0x0
   17   17427 [main] cat 553 _pinfo::set_ctty: attaching ctty /dev/pty0 sid 531, pid 553, pgid 553, tty->pgid 553, tty->sid 531
   18   17445 [main] cat 553 _pinfo::set_ctty: cygheap->ctty now 0x18034C430, archetype 0x18034C430
   16   17461 [main] cat 553 fhandler_pty_slave::open_setup: /dev/pty0 opened, usecount 2
   78   17539 [main] cat 553 build_fh_pc: found an archetype for (null)(136/0) io_handle 0x158
   45   17584 [main] cat 553 build_fh_pc: fh 0x18034C810, dev 00880000
   27   17611 [main] cat 553 fhandler_base::open_with_arch: line 490:  /dev/pty0<0x18034C430> usecount + 1 = 3
--- Process 4284 (pid: 553) thread 2344 created
   18   17629 [main] cat 553 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0
   55   17684 [main] cat 553 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   17   17701 [main] cat 553 fhandler_base::set_flags: filemode set to binary
   17   17718 [main] cat 553 _pinfo::set_ctty: old ctty /dev/pty0, ctty device number 0x880000, tc.ntty device number 0x880000 flags & O_NOCTTY 0x0
   17   17735 [main] cat 553 _pinfo::set_ctty: attaching ctty /dev/pty0 sid 531, pid 553, pgid 553, tty->pgid 553, tty->sid 531
   21   17756 [main] cat 553 _pinfo::set_ctty: cygheap->ctty now 0x18034C430, archetype 0x18034C430
   19   17775 [main] cat 553 fhandler_pty_slave::open_setup: /dev/pty0 opened, usecount 3
   17   17792 [main] cat 553 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0
   16   17808 [main] cat 553 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   16   17824 [main] cat 553 fhandler_base::set_flags: filemode set to binary
   17   17841 [main] cat 553 _pinfo::set_ctty: old ctty /dev/pty0, ctty device number 0x880000, tc.ntty device number 0x880000 flags & O_NOCTTY 0x0
   17   17858 [main] cat 553 _pinfo::set_ctty: attaching ctty /dev/pty0 sid 531, pid 553, pgid 553, tty->pgid 553, tty->sid 531
   16   17874 [main] cat 553 _pinfo::set_ctty: cygheap->ctty now 0x18034C430, archetype 0x18034C430
   17   17891 [main] cat 553 fhandler_pty_slave::open_setup: /dev/pty0 opened, usecount 3
   56   17947 [main] cat 553 build_fh_pc: found an archetype for (null)(136/0) io_handle 0x158
   21   17968 [main] cat 553 build_fh_pc: fh 0x18034CB80, dev 00880000
   19   17987 [main] cat 553 fhandler_base::open_with_arch: line 490:  /dev/pty0<0x18034C430> usecount + 1 = 4
   17   18004 [main] cat 553 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0
   16   18020 [main] cat 553 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   15   18035 [main] cat 553 fhandler_base::set_flags: filemode set to binary
   16   18051 [main] cat 553 _pinfo::set_ctty: old ctty /dev/pty0, ctty device number 0x880000, tc.ntty device number 0x880000 flags & O_NOCTTY 0x0
   18   18069 [main] cat 553 _pinfo::set_ctty: attaching ctty /dev/pty0 sid 531, pid 553, pgid 553, tty->pgid 553, tty->sid 531
   17   18086 [main] cat 553 _pinfo::set_ctty: cygheap->ctty now 0x18034C430, archetype 0x18034C430
   16   18102 [main] cat 553 fhandler_pty_slave::open_setup: /dev/pty0 opened, usecount 4
   17   18119 [main] cat 553 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0
   16   18135 [main] cat 553 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   68   18203 [main] cat 553 fhandler_base::set_flags: filemode set to binary
   24   18227 [main] cat 553 _pinfo::set_ctty: old ctty /dev/pty0, ctty device number 0x880000, tc.ntty device number 0x880000 flags & O_NOCTTY 0x0
   18   18245 [main] cat 553 _pinfo::set_ctty: attaching ctty /dev/pty0 sid 531, pid 553, pgid 553, tty->pgid 553, tty->sid 531
   17   18262 [main] cat 553 _pinfo::set_ctty: cygheap->ctty now 0x18034C430, archetype 0x18034C430
   16   18278 [main] cat 553 fhandler_pty_slave::open_setup: /dev/pty0 opened, usecount 4
  185   18463 [main] cat 553 __set_errno: void dll_crt0_1(void*):989 setting errno 0
  269   18732 [main] cat 553 __get_lcid_from_locale: LCID=0x0409
   82   18814 [main] cat 553 __get_lcid_from_locale: LCID=0x0409
   67   18881 [main] cat 553 __get_lcid_from_locale: LCID=0x0409
   71   18952 [main] cat 553 __get_lcid_from_locale: LCID=0x0409
   53   19005 [main] cat 553 __get_lcid_from_locale: LCID=0x0409
   62   19067 [main] cat 553 __get_lcid_from_locale: LCID=0x0409
  266   19333 [main] cat 553 time: 1583185594 = time(0x0)
   54   19387 [main] cat 553 stat64: entering
   18   19405 [main] cat 553 normalize_posix_path: src /dev
   16   19421 [main] cat 553 normalize_posix_path: /dev = normalize_posix_path (/dev)
   16   19437 [main] cat 553 mount_info::conv_to_win32_path: conv_to_win32_path (/dev)
   19   19456 [main] cat 553 mount_info::conv_to_win32_path: src_path /dev, dst C:\cygwin64\dev, flags 0x30008, rc 0
   70   19526 [main] cat 553 symlink_info::check: 0x0 = NtCreateFile (\??\C:\cygwin64\dev)
   40   19566 [main] cat 553 symlink_info::check: not a symlink
   17   19583 [main] cat 553 symlink_info::check: 0 = symlink.check(C:\cygwin64\dev, 0xFFFFB790) (mount_flags 0x30008, path_flags 0x0)
   24   19607 [main] cat 553 build_fh_pc: fh 0x18034D178, dev 000000C1
   16   19623 [main] cat 553 stat_worker: (\??\C:\cygwin64\dev, 0x180320C40, 0x18034D178), file_attributes 16
  271   19894 [main] cat 553 pwdgrp::fetch_account_from_windows: line: <SYSTEM:S-1-5-18:18:>
--- Process 4284 (pid: 553) loaded C:\Windows\System32\authz.dll at 000007fefd0c0000
  610   20504 [main] cat 553 fhandler_base::fstat_helper: 0 = fstat (\??\C:\cygwin64\dev, 0x180320C40) st_size=0, st_mode=040770, st_ino=281474976832178st_atim=5CAE464A.34C73E20 st_ctim=5E5D5DD7.117F6118 st_mtim=5CAE464A.34C73E20 st_birthtim=5CAE4639.1E6BF33C
   38   20542 [main] cat 553 stat_worker: 0 = (\??\C:\cygwin64\dev,0x180320C40)
   31   20573 [main] cat 553 fstat64: 0 = fstat(1, 0xFFFFCB30)
   17   20590 [main] cat 553 isatty: 1 = isatty(1)
   19   20609 [main] cat 553 open: open(/proc/partitions, 0x10000)
   17   20626 [main] cat 553 normalize_posix_path: src /proc/partitions
   15   20641 [main] cat 553 normalize_posix_path: /proc/partitions = normalize_posix_path (/proc/partitions)
   16   20657 [main] cat 553 mount_info::conv_to_win32_path: conv_to_win32_path (/proc/partitions)
   18   20675 [main] cat 553 fhandler_proc::get_proc_fhandler: get_proc_fhandler(/proc/partitions)
   17   20692 [main] cat 553 mount_info::conv_to_win32_path: src_path /proc/partitions, dst /proc/partitions, flags 0x0, rc 0
   22   20714 [main] cat 553 build_fh_pc: fh 0x18034D178, dev 000000FF
   17   20731 [main] cat 553 fhandler_proc::exists: exists (/proc/partitions)
   20   20751 [main] cat 553 build_fh_pc: fh 0x18034D178, dev 000000FF
   17   20768 [main] cat 553 fhandler_base::set_flags: flags 0x18000, supplied_bin 0x0
   15   20783 [main] cat 553 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   16   20799 [main] cat 553 fhandler_base::set_flags: filemode set to binary
  460   21259 [main] cat 553 format_proc_partitions: DeviceIoControl (Harddisk0\Partition0, IOCTL_DISK_GET_PARTITION_INFO{_EX}) Win32 error 5
   29   21288 [main] cat 553 format_proc_partitions: DeviceIoControl(Harddisk0\Partition0, IOCTL_DISK_GET_DRIVE_LAYOUT{_EX}): Win32 error 5
   70   21358 [main] cat 553 format_proc_partitions: DeviceIoControl (Harddisk1\Partition0, IOCTL_DISK_GET_PARTITION_INFO{_EX}) Win32 error 5
   26   21384 [main] cat 553 format_proc_partitions: DeviceIoControl(Harddisk1\Partition0, IOCTL_DISK_GET_DRIVE_LAYOUT{_EX}): Win32 error 5
   70   21454 [main] cat 553 format_proc_partitions: DeviceIoControl (Harddisk2\Partition0, IOCTL_DISK_GET_PARTITION_INFO{_EX}) Win32 error 5
   28   21482 [main] cat 553 format_proc_partitions: DeviceIoControl(Harddisk2\Partition0, IOCTL_DISK_GET_DRIVE_LAYOUT{_EX}): Win32 error 5
   63   21545 [main] cat 553 format_proc_partitions: DeviceIoControl (Harddisk3\Partition0, IOCTL_DISK_GET_PARTITION_INFO{_EX}) Win32 error 5
   26   21571 [main] cat 553 format_proc_partitions: DeviceIoControl(Harddisk3\Partition0, IOCTL_DISK_GET_DRIVE_LAYOUT{_EX}): Win32 error 5
   67   21638 [main] cat 553 format_proc_partitions: DeviceIoControl (Harddisk4\Partition0, IOCTL_DISK_GET_PARTITION_INFO{_EX}) Win32 error 5
   26   21664 [main] cat 553 format_proc_partitions: DeviceIoControl(Harddisk4\Partition0, IOCTL_DISK_GET_DRIVE_LAYOUT{_EX}): Win32 error 5
  474   22138 [main] cat 553 format_proc_partitions: DeviceIoControl (Harddisk5\Partition0, IOCTL_DISK_GET_PARTITION_INFO{_EX}) Win32 error 5
   39   22177 [main] cat 553 format_proc_partitions: DeviceIoControl(Harddisk5\Partition0, IOCTL_DISK_GET_DRIVE_LAYOUT{_EX}): Win32 error 5
  330   22507 [main] cat 553 fhandler_base::set_flags: flags 0x18000, supplied_bin 0x0
   19   22526 [main] cat 553 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   16   22542 [main] cat 553 fhandler_base::set_flags: filemode set to binary
   16   22558 [main] cat 553 fhandler_proc::open: 1 = fhandler_proc::open(0x18000, 00)
   16   22574 [main] cat 553 open: 3 = open(/proc/partitions, 0x18000)
   16   22590 [main] cat 553 fhandler_proc::fstat: fstat (/proc/partitions)
   16   22606 [main] cat 553 time: 1583185594 = time(0x0)
   17   22623 [main] cat 553 fstat64: 0 = fstat(3, 0xFFFFCB30)
   16   22639 [main] cat 553 __set_errno: virtual int fhandler_base::fadvise(off_t, off_t, int):1829 setting errno 22
   15   22654 [main] cat 553 posix_fadvise: -1 = posix_fadvice(3, 0, 0, 1), errno 22
   41   22695 [main] cat 553 read: read(3, 0x800050000, 131072) blocking
   17   22712 [main] cat 553 read: 197 = read(3, 0x800050000, 197)
   30   22742 [main] cat 553 fhandler_pty_slave::write: pty0, write(0x800050000, 197)
   25   22767 [main] cat 553 fhandler_pty_slave::write: (1507): pty output_mutex (0x148): waiting -1 ms
   17   22784 [main] cat 553 fhandler_pty_slave::write: (1507): pty output_mutex: acquired
   21   22805 [main] cat 553 fhandler_pty_slave::write: (1522): pty output_mutex(0x148) released
   17   22822 [main] cat 553 write: 197 = write(1, 0x800050000, 197)
   16   22838 [main] cat 553 read: read(3, 0x800050000, 131072) blocking
   16   22854 [main] cat 553 read: 0 = read(3, 0x800050000, 0)
   28   22882 [main] cat 553 close: close(3)
   16   22898 [main] cat 553 close: 0 = close(3)
   95   22993 [main] cat 553 close: close(1)
   15   23008 [main] cat 553 fhandler_base::close_with_arch: line 1183:  /dev/pty0<0x18034C430> usecount + -1 = 3
   16   23024 [main] cat 553 fhandler_base::close_with_arch: not closing archetype
   17   23041 [main] cat 553 close: 0 = close(1)
  171   23212 [main] cat 553 close: close(2)
   16   23228 [main] cat 553 fhandler_base::close_with_arch: line 1183:  /dev/pty0<0x18034C430> usecount + -1 = 2
   15   23243 [main] cat 553 fhandler_base::close_with_arch: not closing archetype
   16   23259 [main] cat 553 close: 0 = close(2)
  123   23382 [main] cat 553 do_exit: do_exit (0), exit_state 1
   17   23399 [main] cat 553 void: 0x0 = signal (20, 0x1)
   15   23414 [main] cat 553 void: 0x0 = signal (1, 0x1)
   15   23429 [main] cat 553 void: 0x0 = signal (2, 0x1)
   15   23444 [main] cat 553 void: 0x0 = signal (3, 0x1)
   17   23461 [main] cat 553 fhandler_base::close_with_arch: line 1183:  /dev/pty0<0x18034C430> usecount + -1 = 1
   16   23477 [main] cat 553 fhandler_base::close_with_arch: not closing archetype
   16   23493 [main] cat 553 init_cygheap::close_ctty: closing cygheap->ctty 0x18034C430
   16   23509 [main] cat 553 fhandler_base::close_with_arch: closing passed in archetype 0x0, usecount 0
   17   23526 [main] cat 553 fhandler_pty_slave::cleanup: /dev/pty0 closed, usecount 0
   17   23543 [main] cat 553 fhandler_pty_slave::close: closing last open /dev/pty0 handle
   74   23617 [main] cat 553 fhandler_console::free_console: freed console, res 1
   27   23644 [main] cat 553 fhandler_pty_common::close: pty0 <0x158,0x164> closing
   24   23668 [main] cat 553 dtable::delete_archetype: deleting element 0 for /dev/pty0(136/0)
   20   23688 [main] cat 553 getpid: 553 = getpid()
   16   23704 [main] cat 553 proc_terminate: nprocs 0
   15   23719 [main] cat 553 proc_terminate: leaving
   46   23765 [main] cat 553 pinfo::exit: Calling dlls.cleanup_forkables n 0x0, exitcode 0x0
   21   23786 [main] cat 553 pinfo::exit: Calling ExitProcess n 0x0, exitcode 0x0
--- Process 4284 (pid: 553) thread 5752 exited with status 0x0
--- Process 4284 (pid: 553) thread 3792 exited with status 0x0
--- Process 4284 (pid: 553) thread 4904 exited with status 0x0
--- Process 4284 (pid: 553) exited with status 0x0

[-- Attachment #3: Type: text/plain, Size: 219 bytes --]


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: cat /proc/partitions shows only devices, not partitions
  2020-03-01 21:16 Hashim Aziz
@ 2020-03-02 16:56 ` Corinna Vinschen
  2020-03-04 19:35 ` Andrey Repin
  1 sibling, 0 replies; 12+ messages in thread
From: Corinna Vinschen @ 2020-03-02 16:56 UTC (permalink / raw)
  To: Hashim Aziz; +Cc: cygwin

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

On Mar  1 21:16, Hashim Aziz wrote:
> This was an issue that I had previously in September of last year and
> sent the issue to this mailing list ("win-mounts no longer displays
> anything when doing "cat /proc/partitions") but the issue stopped
> occurring before I could get around to diagnosing it. This issue has
> now re-occurred and this time it seems permanent. When I run:
> 
> $ cat /proc/partitions
> major minor  #blocks  name   win-mounts
> 
>     8     0         0 sda
>     8    16         0 sdb
>     8    32         0 sdc
>     8    48         0 sdd
>     8    64         0 sde
>     8    80         0 sdf
> 
> ...I see nothing at all in the win-mounts column. This makes it
> impossible for me to see which Windows drive letter maps to which
> /dev/sdX entry. On closer inspection, this seems to be because I'm not
> actually seeing any partitions of my drives, even though there are
> many - for example, I see /dev/sda but no /dev/sda1 or /dev/sda2, and
> because it's the partitions that are mounted, it's this that seems to
> result in me seeing nothing in the win-mounts column. I'm running
> Cygwin on Windows 7 (yes I'm aware it's EOL).

Fortunately I just started Windows 7 for another thread here, so I
gave it a try myself:

  $ uname -a
  CYGWIN_NT-6.1 vmbert764 3.1.4(0.340/5/3) 2020-02-19 08:49 x86_64 Cygwin
  $ id -G | grep -Eq '\<544\>' && echo elevated || echo non-elevated
  non-elevated
  $ cat /proc/partitions
  major minor  #blocks  name   win-mounts

      8     0  54525952 sda
      8     1    102400 sda1
      8     2  54420480 sda2   C:\

So, https://cygwin.com/acronyms/#WJFFM

This appears to be a local phenomenon only, either some permission
problem, or some BLODA, a life virus scanner or something.

Two questions come to mind:

- Does it work in an elevated shell?

- If you run this under strace, does it show anything unusual?
  We could take a look if you call

    strace -o cat.trace cat /proc/partitions

  and send the cat.trace file here (assuming it still doesn't work).


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* cat /proc/partitions shows only devices, not partitions
@ 2020-03-01 21:16 Hashim Aziz
  2020-03-02 16:56 ` Corinna Vinschen
  2020-03-04 19:35 ` Andrey Repin
  0 siblings, 2 replies; 12+ messages in thread
From: Hashim Aziz @ 2020-03-01 21:16 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 2090 bytes --]

This was an issue that I had previously in September of last year and sent the issue to this mailing list ("win-mounts no longer displays anything when doing "cat /proc/partitions") but the issue stopped occurring before I could get around to diagnosing it. This issue has now re-occurred and this time it seems permanent. When I run:

$ cat /proc/partitions
major minor  #blocks  name   win-mounts

    8     0         0 sda
    8    16         0 sdb
    8    32         0 sdc
    8    48         0 sdd
    8    64         0 sde
    8    80         0 sdf

...I see nothing at all in the win-mounts column. This makes it impossible for me to see which Windows drive letter maps to which /dev/sdX entry. On closer inspection, this seems to be because I'm not actually seeing any partitions of my drives, even though there are many - for example, I see /dev/sda but no /dev/sda1 or /dev/sda2, and because it's the partitions that are mounted, it's this that seems to result in me seeing nothing in the win-mounts column. I'm running Cygwin on Windows 7 (yes I'm aware it's EOL).

For testing purposes I also ran the following command (for obvious reasons I don't want to have run something like this to find my drive mappings):

$ for disk in /dev/sd*; do echo -n $disk$'\t'; cygpath -m $disk; done
/dev/sda        //./PhysicalDrive0
/dev/sda1       //./D:
/dev/sdb        //./PhysicalDrive1
/dev/sdc        //./PhysicalDrive2
/dev/sdc1       //./Volume{88cc26b4-e0e5-11e9-9cc4-806e6f6e6963}
/dev/sdc2       //./C:
/dev/sdd        //./PhysicalDrive3
/dev/sdd1       //./B:
/dev/sde        //./PhysicalDrive4
/dev/sde1       //./HarddiskVolume5
/dev/sde2       //./E:
/dev/sdf        //./PhysicalDrive5
/dev/sdf1       //./I:

​Thanks in advance for any help with this, it would be very much appreciated as I rely on Cygwin a lot.
\x03B‹KCB”\x1c›Ø›\x19[H\x1c™\^[ܝ\x1cΈ\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÜ\x1c›Ø›\x19[\Ëš\x1d^[[\x03B‘TNˆ\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÙ˜\KÃB‘^[ØÝ[Y[\x18]\x1a[ÛŽˆ\b\b\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÙ^[ØÜËš\x1d^[[\x03B•[œÝXœØÜšX™H\x1a[™›Îˆ\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÛ[\vÈÝ[œÝXœØÜšX™K\Ú[\^[\x19CBƒB

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-03-09 15:59 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-03  0:55 cat /proc/partitions shows only devices, not partitions Hashim Aziz
2020-03-03 10:44 ` Corinna Vinschen
  -- 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

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).