With sfdisk -s I can see the disk capacity as follows:

$ sfdisk -s
/dev/cciss/c0d0: 143338560
total: 143338560 blocks

How do I see disk details like disk manufacturer? I tried hdparm, but got an error:

$ hdparm -i  /dev/cciss/c0d0
HDIO_GET_IDENTITY failed: Inappropriate ioctl for device

Try these commands:

lshw -class disk  

hwinfo --disk

You may have to install hwinfo.

Concerning hdparm:
hdparm(8) says:

Although this utility is intended primarily for use with SATA/IDE hard disk 
devices, several of the options are also valid (and permitted) for use with 
SCSI hard disk devices and MFM/RLL hard disks with XT interfaces.


Some options (eg. -r for SCSI) may not work with old kernels as necessary 
ioctl()´s were not supported.
  • the command hwinfo & lshw are not installed in my linux – user3266 Dec 22 '10 at 13:36
  • can you provide some more information about your system? – wag Dec 22 '10 at 17:07
  • @jennifer: Install at least one of them! All the information they return is available elsewhere, but they have the advantage of collecting all that information from many different places. – Gilles Dec 22 '10 at 19:50
  • Running the command lshw -class disk as a regular user does not display information on disk (Ubuntu 15.04). Hopefully the bottom printed line says "WARNING: output may be incomplete or inaccurate, you should run this program as super-user." Running again using sudo fixes the issue :-) – olibre Oct 20 '15 at 21:13
  • I wonder why lshw simply did not show my SSD: unix.stackexchange.com/questions/5085/… – Ciro Santilli 新疆改造中心996ICU六四事件 Dec 24 '18 at 23:15

You could read the disk properties directly through sysfs, also check the other files/dirs in /sys/class/block/sda/device/ (replace sda with drive you need).

cat /sys/class/block/sda/device/{model,vendor} 
  • I dont have block directory – user3266 Dec 22 '10 at 13:36
  • 1
    Use a recent kernel maybe, what distro are you using? try dmesg | less, should see the disks get probed. – OneOfOne Dec 22 '10 at 14:20
  • @jennifer: cat /sys/block/sd?/device/{model,vendor} (/sys/class/block only appeared fairly recently, and your distribution is a little old). – Gilles Dec 22 '10 at 19:52

try running smartctl -a /dev/hda (could be sda in your case; cat /proc/partitions will show you the device type to use)

In your case it's behind a cciss controller, so the option should be -d cciss,0 or similar.


I know these answers are 3 years old, but for anyone looking around... In older versions you could find that under (? should be a number):


by doing this:

cat /sys/class/scsi_device/0\:0\:0\:0/device/{model,vendor}

(The backslashes next to zeros are for escaping special char :.)



Either gnome-disks or just "Disks" on the Ubuntu 18.10 dash:

enter image description here

This shows that I have a SAMSUNG MZVLB512HAJQ-000L7 in my Lenovo ThinkPad P51.

TODO why: for some reason, my SSD model was not showing clearly on either of:

sudo lshw -class disk
sudo hwinfo --disk
  • lshw did not how the SSD at all, only my hard disk

  • hwinfo did show both, but for the SSD said just:

    Model: "Samsung Electronics Disk"

    while for the HD it contains the actual model...

    Model: "ST1000LM035-1RK1"

This one from https://unix.stackexchange.com/a/5087/32558 worked though:

cat /sys/block/nvme0n1/device/model

lsblk (List Block)

You can use lsblk command:


NAME        FSTYPE LABEL   MOUNTPOINT                      SIZE MODEL
nvme0n1                                                  119.2G TS128GMTE110S                           
├─nvme0n1p1 vfat           /boot/efi                       512M 
└─nvme0n1p2 ext4           /                             118.8G 

Perfectly informed, my NVMe SSD is a Transced 110S 128GB (TS128GMTE110S)


The lssd command can also help you.

  • Can you provide some sample output or an explanation of where to find this tool? It's not available in my Fedora 20 system, for example. – slm Sep 9 '14 at 2:09
  • @slm That is part of the fibreutils package that originates/d from HP. – Anthon Sep 9 '14 at 3:18
  • @Anthon - so then it's not a standard linux package? – slm Sep 9 '14 at 3:25
  • @slm I'm pretty sure I have it from the RedHat machines I used to have access to. It is a bash script, but I haven't used it for many years. It calls scsi_info which I don't have on my Ubuntu system at all. – Anthon Sep 9 '14 at 3:32
  • @slm correction, I have the source for scsi_info, comes with the RPM. Just not compiled/installed. – Anthon Sep 9 '14 at 3:34

Try this command as root user.

hpacucli ctrl all show config detail
  • 2
    this is a command specific to hp raid controllers - so it is not useful here – geruetzel Oct 27 '16 at 15:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy