Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

migrated from stackoverflow.com Apr 25 '11 at 12:26

This question came from our site for professional and enthusiast programmers.

3 Answers 3

lshw will help you! See the dev site

share|improve this answer

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.

share|improve this answer
# 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
...
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.