X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 72F00383F841
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1607161412;
	bh=FfMBW6PGztJwkFcT48SGDDPxupaqVPUhMiHAFL+JPqk=;
	h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=JejD1DjQZTNFb/nb6euB9vFuPmV93CNVFhdKL+LTB4v2Zbvtgc3ZsZOaC3RnDvPup
	 kvQEP+Axb94rJ8qdtK2yohnQ1Ul7WXr0Yw+BjddNFldx5x7KrJTtYg9taNmiBXxtBf
	 Vru0VUvxfGNgPi/gMkx+Tnhd/DjE/UpM8dMnborc=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 801063857804
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=xR9DW14uYz0G3DkGGH2N/WvKbW+yougggq+YxYAXbms=;
 b=QJ2q7kUAYHA+78dxq3jnv1YP1C4ZpJOpAzm98T9+fMvBkPLZUvmHFc/x4rbbZzX+YQ
 xb9AJcXpOw3sYiyONoTxn6OLq915aRzkN7F/3yLDdqsp9qO3qnvTauIc9qu3ej9lvt6o
 1Ue/O8EiL1tTBLXp+eAST99hS8uImVhwBihNqv1GSny/WkafOEVHtPYDxo7F08jee/6C
 KvXCa/Gv9UAMOJjQGWeejOyKHj5+Xzyq75wzWIb97adhXwEdvvkS+mM5+23GHwD/+QoZ
 CnxvrSR/GWi8gG3axwxbHACn4loXkYP4ogeInLiLAfhbL4Xdhq3685ONHpqLwBesNh7x
 VjEA==
X-Gm-Message-State: AOAM530vCqLh4hpqES+KDL7VrhQrGcw2+jTvxpLvmfKSVN0TVe4r3BV8
 huUfDyzbmEEq2YiNnKdT9MjFebHwOc0=
X-Google-Smtp-Source: ABdhPJzc57h0g174t7iBTwMVBUlrx33t031d4QMxe7OjMuj52Wmq7plMKeuKGsP13zNE350cpKUHYg==
X-Received: by 2002:a19:6759:: with SMTP id e25mr4952553lfj.25.1607161409165; 
 Sat, 05 Dec 2020 01:43:29 -0800 (PST)
Subject: Re: blockdev.exe is missing in util-linux. How to determine block
 device size in bash?
To: cygwin@cygwin.com, Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
References: <e14f4842-1e5c-ced4-2f86-778630dfb15d@gmail.com>
 <18bf6c94-f3d1-d3da-a361-d6994472d0f3@SystematicSw.ab.ca>
Message-ID: <909f43ab-983a-ccda-3adb-1616f2b4c6d7@gmail.com>
Date: Sat, 5 Dec 2020 12:43:25 +0300
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
 Thunderbird/78.5.0
MIME-Version: 1.0
In-Reply-To: <18bf6c94-f3d1-d3da-a361-d6994472d0f3@SystematicSw.ab.ca>
Content-Language: en-US
X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00, BODY_8BITS,
 DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM,
 NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
 TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Ilya Basin via Cygwin <cygwin@cygwin.com>
Reply-To: basinilya@gmail.com
Content-Type: text/plain; charset="utf-8"
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 0B59hunZ009781

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

