From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.139]) by sourceware.org (Postfix) with ESMTPS id 0D4E93858C27 for ; Sat, 28 Nov 2020 17:04:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0D4E93858C27 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=SystematicSw.ab.ca Authentication-Results: sourceware.org; spf=none smtp.mailfrom=brian.inglis@systematicsw.ab.ca Received: from [192.168.1.104] ([24.64.172.44]) by shaw.ca with ESMTP id j3eakEmHGktFkj3ebkl3lY; Sat, 28 Nov 2020 10:04:57 -0700 X-Authority-Analysis: v=2.4 cv=NYRYa0P4 c=1 sm=1 tr=0 ts=5fc28339 a=kiZT5GMN3KAWqtYcXc+/4Q==:117 a=kiZT5GMN3KAWqtYcXc+/4Q==:17 a=IkcTkHD0fZMA:10 a=iMpC6L0jGsNNbTZxuiUA:9 a=QEXdDO2ut3YA:10 Reply-To: cygwin@cygwin.com Subject: Re: blockdev.exe is missing in util-linux. How to determine block device size in bash? To: cygwin@cygwin.com References: From: Brian Inglis Organization: Systematic Software Message-ID: <18bf6c94-f3d1-d3da-a361-d6994472d0f3@SystematicSw.ab.ca> Date: Sat, 28 Nov 2020 10:04:55 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfNTBBfsIaaQNHstT7+M0ZPHtZM2S99cNJzUWaNvViwkjLvAw2cxWj+c6LCMXEgnAHM4dpaMSV11H/BQ4m3om1L4hgcc8f6UVyvvyBVZwXbzBgJGvd8wp gd0HoO3Q6aN9bVJy+XNmk/76Sqxo2ORZrksLolxoYSKgI1VEbIkPhaZgDMdE153bq34zVZfW/qdyeB9Q7tLHziwwKOZSmY9k//M= X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, 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@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, 28 Nov 2020 17:04:59 -0000 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.]