public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* blockdev.exe is missing in util-linux. How to determine block device size in bash?
@ 2020-11-28  8:08 Basin Ilya
  2020-11-28 17:04 ` Brian Inglis
  0 siblings, 1 reply; 4+ messages in thread
From: Basin Ilya @ 2020-11-28  8:08 UTC (permalink / raw)
  To: 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?

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

* Re: blockdev.exe is missing in util-linux. How to determine block device size in bash?
  2020-11-28  8:08 blockdev.exe is missing in util-linux. How to determine block device size in bash? Basin Ilya
@ 2020-11-28 17:04 ` Brian Inglis
  2020-12-05  9:43   ` basinilya
  0 siblings, 1 reply; 4+ messages in thread
From: Brian Inglis @ 2020-11-28 17:04 UTC (permalink / raw)
  To: cygwin


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 976744448 sda2   C:\
     8    16 976762584 sdb
     8    17    131072 sdb1
     8    18    102400 sdb2
     8    19 975482161 sdb3   D:\
     8    20    577536 sdb4
     8    21    465920 sdb5
     8    32         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.]

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

* Re: blockdev.exe is missing in util-linux. How to determine block device size in bash?
  2020-11-28 17:04 ` Brian Inglis
@ 2020-12-05  9:43   ` basinilya
  2020-12-07  2:59     ` Duncan Roe
  0 siblings, 1 reply; 4+ messages in thread
From: basinilya @ 2020-12-05  9:43 UTC (permalink / raw)
  To: cygwin, Brian Inglis

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
        8    16         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 976744448 sda2   C:\
>     8    16 976762584 sdb
>     8    17    131072 sdb1
>     8    18    102400 sdb2
>     8    19 975482161 sdb3   D:\
>     8    20    577536 sdb4
>     8    21    465920 sdb5
>     8    32         0 sdc

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

* Re: blockdev.exe is missing in util-linux. How to determine block device size in bash?
  2020-12-05  9:43   ` basinilya
@ 2020-12-07  2:59     ` Duncan Roe
  0 siblings, 0 replies; 4+ messages in thread
From: Duncan Roe @ 2020-12-07  2:59 UTC (permalink / raw)
  To: cygwin

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
>         8    16         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 976744448 sda2   C:\
> >     8    16 976762584 sdb
> >     8    17    131072 sdb1
> >     8    18    102400 sdb2
> >     8    19 975482161 sdb3   D:\
> >     8    20    577536 sdb4
> >     8    21    465920 sdb5
> >     8    32         0 sdc

WFFM with Win7 Home

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

    8     0 488386584 sda
    8     1    203776 sda1
    8     2 467246080 sda2   C:\
    8     3  20829184 sda3   D:\
    8     4    105472 sda4   F:\

Cheers ... Duncan.

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

end of thread, other threads:[~2020-12-07  2:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-28  8:08 blockdev.exe is missing in util-linux. How to determine block device size in bash? Basin Ilya
2020-11-28 17:04 ` Brian Inglis
2020-12-05  9:43   ` basinilya
2020-12-07  2:59     ` Duncan Roe

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