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.
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.
2
lshw
will help you! See the dev site
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.
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
...