Re: blockdev.exe is missing in util-linux. How to determine block device size in bash?

2020-12-06 Thread Duncan Roe
On Sat, Dec 05, 2020 at 12:43:25PM +0300, cygwin wrote:
> Strange. On Win7 this doesn't work:
>
> il@mar2 /cygdrive/c/Windows/System32
> $ cat /proc/partitions
> major minor  #blocks  name   win-mounts
>
> 8 0 0 sda
> 816 0 sdb
>
> il@mar2 /cygdrive/c/Windows/System32
> $ dd of=/dev/null if=/dev/sda bs=1M count=100
> 100+0 records in
> 100+0 records out
> 104857600 bytes (105 MB, 100 MiB) copied, 0.215181 s, 487 MB/s
>
>
> On 28.11.2020 20:04, Brian Inglis wrote:
> > $ cat /proc/partitions
> > major minor  #blocks  name   win-mounts
> >
> > 8 0 976762584 sda
> > 8 1 16384 sda1
> > 8 2 97678 sda2   C:\
> > 816 976762584 sdb
> > 817131072 sdb1
> > 818102400 sdb2
> > 819 975482161 sdb3   D:\
> > 820577536 sdb4
> > 821465920 sdb5
> > 832 0 sdc

WFFM with Win7 Home

12:34:05$ cat /proc/partitions
major minor  #blocks  name   win-mounts

8 0 488386584 sda
8 1203776 sda1
8 2 467246080 sda2   C:\
8 3  20829184 sda3   D:\
8 4105472 sda4   F:\

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


Re: blockdev.exe is missing in util-linux. How to determine block device size in bash?

2020-12-05 Thread Ilya Basin via Cygwin
Strange. On Win7 this doesn't work:

il@mar2 /cygdrive/c/Windows/System32
$ cat /proc/partitions
major minor  #blocks  name   win-mounts

8 0 0 sda
816 0 sdb

il@mar2 /cygdrive/c/Windows/System32
$ dd of=/dev/null if=/dev/sda bs=1M count=100
100+0 records in
100+0 records out
104857600 bytes (105 MB, 100 MiB) copied, 0.215181 s, 487 MB/s


On 28.11.2020 20:04, Brian Inglis wrote:
> $ cat /proc/partitions
> major minor  #blocks  name   win-mounts
> 
> 8 0 976762584 sda
> 8 1 16384 sda1
> 8 2 97678 sda2   C:\
> 816 976762584 sdb
> 817131072 sdb1
> 818102400 sdb2
> 819 975482161 sdb3   D:\
> 820577536 sdb4
> 821465920 sdb5
> 832 0 sdc
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: blockdev.exe is missing in util-linux. How to determine block device size in bash?

2020-11-28 Thread Brian Inglis



On 2020-11-28 01:08, Basin Ilya via Cygwin wrote:
Actually I have nothing to add to the subject. blockdev.exe missing in 
util-linux. How to determine block device size in bash?

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

8 0 976762584 sda
8 1 16384 sda1
8 2 97678 sda2   C:\
816 976762584 sdb
817131072 sdb1
818102400 sdb2
819 975482161 sdb3   D:\
820577536 sdb4
821465920 sdb5
832 0 sdc

--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


blockdev.exe is missing in util-linux. How to determine block device size in bash?

2020-11-28 Thread Basin Ilya via Cygwin
Hi list. 
Actually I have nothing to add to the subject. blockdev.exe missing in 
util-linux. How to determine block device size in bash?
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple