Show hard drive setup in linux

Here is a list of commands that provide disk, partition, and other related info (like LVM):

  • cat /etc/fstab
  • cat /etc/mtab
  • cat /proc/mdstat
  • cat /proc/partitions
  • cat /proc/scsi/scsi
  • df
  • fdisk -l
  • mdadm --examine --scan
  • dmraid -r
  • dmraid -b
  • pvs
  • vgs
  • lvs

I have made this a wiki, so please feel free to add more to the list. Also, some explanation for each of the commands might be nice.


You seem to be running a HP smart array. Might be a hardware raid. Check the hardware setup with cat /proc/driver/cciss/cciss0. http://cciss.sourceforge.net/