Howtos / Articles

List all hard disks connected to a CentOS system

You often need to know what physical drives are attached to a system, how many drives are connected, or even what device names match up with which physical drive. There is a handy tool called ‘lshw’ which is used to extract detailed information on the hardware in the PC. Unfortunately this doesn’t come pre-installed on CentOS. The details below will go through installing lshw, and how to run it to list all the hard drives. Prerequisites This guide requires the…

Read more [...]

List all hard disks connected to a Ubuntu system

You often need to know what physical drives are attached to a system, how many drives are connected, or even what device names match up with which physical drive. Ubuntu comes with a handy tool called ‘lshw’ which is used to extract detailed information on the hardware in the PC. To view a listing of all disks in the system: $ sudo lshw -class disk -short This will list all disks and storage devices. This includes DVD drives, USB card…

Read more [...]