util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Dr. David Alan Gilbert" <dave@treblig.org>
To: L A Walsh <lkml@tlinx.org>
Cc: util-linux@vger.kernel.org
Subject: Re: does util-linux have a 'report sector size' util?
Date: Mon, 11 Mar 2019 21:21:04 +0000	[thread overview]
Message-ID: <20190311212104.edekhgctqto37tn7@gallifrey> (raw)
In-Reply-To: <5C86CBA1.40802@tlinx.org>

* 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. 
> 
> I just checked with MegaCLI, and it can still display all
> the data (harddisk manuf. in each bah, and physical sector size).
> 
> So I'm wonder if util-linux has something in its blk library
> about this?

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

Dave

> 
-- 
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/

  reply	other threads:[~2019-03-11 22:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-11 20:57 does util-linux have a 'report sector size' util? L A Walsh
2019-03-11 21:21 ` Dr. David Alan Gilbert [this message]
2019-03-11 21:34   ` L A Walsh
2019-03-12  8:21     ` Karel Zak
2019-03-12 15:02       ` L A Walsh
2019-03-12 18:11         ` Dr. David Alan Gilbert
2019-03-15 14:05           ` Re:why would 4k size for phys sector size read in kernel, go away? L A Walsh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190311212104.edekhgctqto37tn7@gallifrey \
    --to=dave@treblig.org \
    --cc=lkml@tlinx.org \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).