Duplicates in /proc/partitions
Lavrentiev, Anton (NIH/NLM/NCBI) [C]
lavr@ncbi.nlm.nih.gov
Tue Aug 17 12:57:10 GMT 2021
> $ gcc -g -O2 -o proc_partition_O2 proc_partition.c -lntdll
I ran the program (without gdb yet, can't doit right away)... Its output is a bit different from /proc/partitions (w.r.t. drive names), but I still see the duplicates:
$ ./proc_partition
major minor #blocks name win-mounts
8 0 500107608 sda
8 1 102400 sda1
8 2 488280064 sda2 C:\
8 16 1000204632 sdb
8 17 1000202240 sdb1 D:\
8 32 1000204632 sdc
8 33 1000202240 sdc1 G:\
8 48 1000204632 sdd
8 49 1000202240 sdd1 I:\
8 64 1000204632 sde
8 65 1000202240 sde1 I:\
8 80 234431064 sdf
8 81 234428416 sdf1 F:\
8 96 234431064 sdg
8 97 234428416 sdg1 F:\
DeviceIoControl (Harddisk5\Partition0, IOCTL_DISK_GET_PARTITION_INFO{_EX}) 5 8 112 0 sdh
$ cat /proc/partitions
major minor #blocks name win-mounts
8 0 500107608 sda
8 1 102400 sda1
8 2 488280064 sda2 C:\
8 16 1000204632 sdb
8 17 1000202240 sdb1 D:\
8 16 1000204632 sdb
8 17 1000202240 sdb1 D:\
8 32 1000204632 sdc
8 33 1000202240 sdc1 G:\
8 32 1000204632 sdc
8 33 1000202240 sdc1 G:\
8 48 1000204632 sdd
8 49 1000202240 sdd1 I:\
8 48 1000204632 sdd
8 49 1000202240 sdd1 I:\
8 64 234431064 sde
8 65 234428416 sde1 F:\
8 64 234431064 sde
8 65 234428416 sde1 F:\
8 80 0 sdf
Anton Lavrentiev
Contractor NIH/NLM/NCBI
More information about the Cygwin
mailing list