W
W
weranda2020-07-05 07:18:38
linux
weranda, 2020-07-05 07:18:38

How to find out through the console what disks are installed in the system?

Greetings.
What are the ways to find out what drives (HDD or SSD and what models/characteristics) are installed in the system without physically opening the system, but having only access to it through the console?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2020-07-05
@weranda

For example like this:

sudo smartctl -a /dev/sda
smartctl 5.43 2016-09-28 r4347 [x86_64-linux-2.6.32-696.16.1.el6.x86_64] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

Vendor:               HP
Product:              LOGICAL VOLUME
Revision:             5.12
User Capacity:        1,500,222,873,600 bytes [1.50 TB]
Logical block size:   512 bytes
Logical Unit id:      0x600508b1001c9c339810c16fe6dec4b3
Serial number:        PACCRID113715F7
Device type:          disk
Local Time is:        Sun Jul  5 07:25:41 2020 MSK
Device does not support SMART

Error Counter logging not supported
Device does not support Self Test logging

About poppy I will add::
diskutil list
diskutil info disk1

E
Eugene, 2020-07-05
@zeond

With lshw. For the world of RedHat and CentOS, it is set like this:

yum -y install epel-release
yum -y install lshw

further a short list of disks:
lshw -short | grep disk
if in detail:
lshw | less

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question