From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7447EC43381 for ; Mon, 11 Mar 2019 21:34:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4B48620657 for ; Mon, 11 Mar 2019 21:34:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727996AbfCKVew (ORCPT ); Mon, 11 Mar 2019 17:34:52 -0400 Received: from ishtar.tlinx.org ([173.164.175.65]:47110 "EHLO Ishtar.sc.tlinx.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727559AbfCKVew (ORCPT ); Mon, 11 Mar 2019 17:34:52 -0400 Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id x2BLYk8A083552; Mon, 11 Mar 2019 14:34:48 -0700 Message-ID: <5C86D476.6060807@tlinx.org> Date: Mon, 11 Mar 2019 14:34:46 -0700 From: L A Walsh User-Agent: Thunderbird MIME-Version: 1.0 To: "Dr. David Alan Gilbert" CC: util-linux@vger.kernel.org Subject: Re: does util-linux have a 'report sector size' util? References: <5C86CBA1.40802@tlinx.org> <20190311212104.edekhgctqto37tn7@gallifrey> In-Reply-To: <20190311212104.edekhgctqto37tn7@gallifrey> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: util-linux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: util-linux@vger.kernel.org On 3/11/2019 2:21 PM, Dr. David Alan Gilbert wrote: > * L A Walsh (lkml@tlinx.org) wrote: >> Trying to track down why my 4K drives no longer display 4K >> in sysfs (/sys) and don't seem to show individual disk >> drive information. When I first got the drives, linux displayed >> the correct physical disk size, but when I look now, I only >> see 512. > > Is this one of the PHY-SEC or LOG-SEC fields that lsblk can print? > > [dg@major ~]$ lsblk -o "NAME,PHY-SEC,LOG-SEC" > NAME PHY-SEC LOG-SEC > sda 512 512 --- It would be, if it was correct. Megacli displays: Sector Size: 512 Logical Sector Size: 512 Physical Sector Size: 4096 But lsblk displays 512 for everything. The disk says it uses a 512e format with the 'e' meaning it emulates 512 even if not 512. --- I'm also seeing the linkspeed, NCQ setting, drive temperature and Manufacturers serial number -- all things I would expect out of the kernel. I thought I remembered seeing temps displayed in linux as well. Hmmmm. Thanks for the pointer & response! > > Dave >