public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: basinilya@gmail.com
To: cygwin@cygwin.com, Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
Subject: Re: blockdev.exe is missing in util-linux. How to determine block device size in bash?
Date: Sat, 5 Dec 2020 12:43:25 +0300	[thread overview]
Message-ID: <909f43ab-983a-ccda-3adb-1616f2b4c6d7@gmail.com> (raw)
In-Reply-To: <18bf6c94-f3d1-d3da-a361-d6994472d0f3@SystematicSw.ab.ca>

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

  reply	other threads:[~2020-12-05  9:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-28  8:08 Basin Ilya
2020-11-28 17:04 ` Brian Inglis
2020-12-05  9:43   ` basinilya [this message]
2020-12-07  2:59     ` Duncan Roe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=909f43ab-983a-ccda-3adb-1616f2b4c6d7@gmail.com \
    --to=basinilya@gmail.com \
    --cc=Brian.Inglis@SystematicSw.ab.ca \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).