delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/12/07/21:05:51

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 263343857C78
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
header.from=optusnet.com.au
Authentication-Results: sourceware.org;
spf=none smtp.mailfrom=dunc AT dimstar DOT local DOT net
Date: Mon, 7 Dec 2020 13:59:30 +1100
From: Duncan Roe <duncan_roe AT optusnet DOT com DOT au>
To: cygwin AT cygwin DOT com
Subject: Re: blockdev.exe is missing in util-linux. How to determine block
device size in bash?
Message-ID: <20201207025930.GH24247@dimstar.local.net>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <e14f4842-1e5c-ced4-2f86-778630dfb15d AT gmail DOT com>
<18bf6c94-f3d1-d3da-a361-d6994472d0f3 AT SystematicSw DOT ab DOT ca>
<909f43ab-983a-ccda-3adb-1616f2b4c6d7 AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <909f43ab-983a-ccda-3adb-1616f2b4c6d7@gmail.com>
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Optus-CM-Score: 0
X-Optus-CM-Analysis: v=2.3 cv=F8MpiZpN c=1 sm=1 tr=0 cx=a_idp_d
a=sbL+hH6VwQ3/UK1YqpgsQA==:117 a=sbL+hH6VwQ3/UK1YqpgsQA==:17
a=kj9zAlcOel0A:10 a=zTNgK-yGK50A:10 a=RSmzAf-M6YYA:10
a=rjcERyEvfWo-jLrcnY0A:9 a=CjuIK1q_8ugA:10
X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,
HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY,
RCVD_IN_DNSWL_LOW, SPF_HELO_PASS, SPF_NONE,
TXREP autolearn=no 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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On Sat, Dec 05, 2020 at 12:43:25PM +0300, cygwin wrote:
> Strange. On Win7 this doesn't work:
>
>     il AT mar2 /cygdrive/c/Windows/System32
>     $ cat /proc/partitions
>     major minor  #blocks  name   win-mounts
>
>         8     0         0 sda
>         8    16         0 sdb
>
>     il AT 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.
--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019