How do I find hard drive details in Red Had Linux?

1

Can anybody please tell me the command to find the hard disk details in Red Hat Enterprise Linux? I have a bad hard disk on the server and I want to replace it with new one of same kind.

Basavaraj

Posted 2011-04-25T09:44:28.337

Reputation:

Answers

2

lshw will help you! See the dev site

binfalse

Posted 2011-04-25T09:44:28.337

Reputation: 1 426

0

Try hdparm.

hdparm provides a command line interface to various kernel interfaces supported by the Linux SATA/PATA/SAS "libata" subsystem and the older IDE driver subsystem. Many newer (2008 and later) USB drive enclosures now also support "SAT" (SCSI-ATA Command Translation) and therefore may also work with hdparm. Eg. recent WD "Passport" models and recent NexStar-3 enclosures. Some options may work correctly only with the latest kernels.

Hello71

Posted 2011-04-25T09:44:28.337

Reputation: 7 636

0

# cat /proc/scsi/scsi

will usually give you drive model numbers, i.e.

Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: INTEL SSDSC2CT06 Rev: 300i

You could also use smartctl -i to print drive information:

# smartctl -i /dev/sda
...
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family:     Intel 330 Series SSDs
Device Model:     INTEL SSDSC2CT060A3
...

Eric Sandeen

Posted 2011-04-25T09:44:28.337

Reputation: 66