From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by sourceware.org (Postfix) with ESMTPS id 801063857804 for ; Sat, 5 Dec 2020 09:43:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 801063857804 Received: by mail-lf1-x129.google.com with SMTP id d20so11073753lfe.11 for ; Sat, 05 Dec 2020 01:43:30 -0800 (PST) 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) Received: from [192.168.1.152] ([94.229.108.206]) by smtp.googlemail.com with ESMTPSA id x10sm1517632lfn.307.2020.12.05.01.43.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 05 Dec 2020 01:43:28 -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 References: <18bf6c94-f3d1-d3da-a361-d6994472d0f3@SystematicSw.ab.ca> From: basinilya@gmail.com 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-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Dec 2020 09:43:31 -0000 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