-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lshw vs blockdev #5
Labels
Comments
PS, the natural language device model description can be snarfed directly,
|
Seems to work! |
Many thanks, @barak ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for writing this script, it is really quite useful.
One very minor suggestion. For Linux, the
lshw
utility is not always installed, and is also very slow. (The slowness is due to fetching all sorts of non-block-device-related info, which is then filtered out in this script bygrep /dev
.) The "approved" alternative would beblockdev
, which (at least on Debian and derivatives thereof like Ubuntu) is in an essential package and therefore guaranteed present. It is also about 200x faster.You can get a list of all available block devices with
blockdev --report
and you can get the physical sector size of a single device with, e.g.,blockdev --getpbsz /dev/sda
.The text was updated successfully, but these errors were encountered: