Command to find the harddisk information

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Command to find the harddisk information
# 1  
Old 01-14-2014
Command to find the harddisk information

I tried to find the harddisk information using the command hdparm -i /dev/sda. But I couldn't get the info. Is there any similar command to find the harddisk serial number.
# 2  
Old 01-15-2014
The uppercase -I switch yields much more information:

Code:
hdparm -I /dev/sda | awk '/Serial Number/{print $1" "$2" "$3}'

# 3  
Old 01-15-2014
The below error message I got.

Code:
hdparm -I /dev/sda | awk '/Serial Number/{print $1" "$2" "$3}'
 HDIO_DRIVE_CMD(identify) failed: Invalid argument

Also, I tried to install the sdparm though its a scsi disk and got the below output with no clue.
l] or <start_byte>:<start_bit>:<num_bits>[=val].
Code:
[root@smasitappl001 /]# sdparm -i /dev/sda
    /dev/sda: IBM  ServeRAID M5014  2.12
Device identification VPD page:
  Addressed logical unit:
    designator type: NAA,  code set: Binary
      0x600605b00421fea016dea3960da06464


Last edited by bartus11; 01-15-2014 at 01:39 AM.. Reason: Please use code tags.
# 4  
Old 01-15-2014
Usually you have to use something specific from the RAID manufacturer to see through the RAID to the individual drives. For example: Installing ServeRAID Manager
# 5  
Old 01-15-2014
You can also get some information from /sys in linux:

Code:
$ cat /sys/class/block/sda/device/model
ST3160812AS

$

That may not include the serial number however.
# 6  
Old 01-15-2014
I have a different /sys hierarchy than Corona688 and I see no serial number in /sys. I can get the serial with the hdparm command though.
Code:
#
# cat /sys/block/sda/device/model
WDC WD800JD-75MS
# hdparm -I /dev/sda | awk '/Serial Number/{print $1" "$2" "$3}'
Serial Number: WD-WMAM9TM63898
#

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Linux Command To Find the System Configuration And Hardware Information

Hello guys. I wanted to find the System Configuration and Hardware Information on one of my servers. Here is part of the cpu info: CPU core info: processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 44 model name : Intel(R) Xeon(R) CPU... (2 Replies)
Discussion started by: Ymir
2 Replies

2. UNIX for Dummies Questions & Answers

How do you find max filesize with inode information ?

How do you find the maximum file size with the following information -: A unix filesystem has 1024 bytes block size with 32-bit address. The i-node has 12 direct and 1 indirect, 1 double indirect, and 1 triple indirect addresses. What is the maximum file size it can access ? What is the... (1 Reply)
Discussion started by: sreyan32
1 Replies

3. UNIX for Dummies Questions & Answers

Where to find Kernel development Information

Hi, I would like to do some research on the Linux kernel. Where can I find information about the current kernel development, who is working on the kernel. I looked up the change log on the kernels main page, but that doesn't help either. My goal is to find out where the focus of the current... (3 Replies)
Discussion started by: Learn4Life
3 Replies

4. Programming

GDB - how to find interesting information?

Hi all, I was wondering how to find interesting information inside the assembly code. As example, I've been trying something at smashthestack wargame. After viewing the assembly code via disassemble main command, I'm not sure what else to do. Hopefully someone can guide me here. This is... (2 Replies)
Discussion started by: type8code0
2 Replies

5. Shell Programming and Scripting

find information about logins

Hi, all I want to make a bash script that print all users from a system using last command. I want to print the number of user's login in the format (descending order): 5 user1 address1 4 user2 address2 I am trying the command last | awk '{print $1 " " $3}' | sort | uniq ... (9 Replies)
Discussion started by: peter20
9 Replies

6. AIX

Find information for Host and SAN disconnect

Can someone point me in the right direction as to where I can find information on how to cleanly disconnect my AIX 5.3 host from our DS/4200 SAN. I have to do a firmware upgrade on the SAN. -Thanks (2 Replies)
Discussion started by: tfort73
2 Replies

7. Shell Programming and Scripting

Find information from complicated strings

Hi experts, I have the file with these lines: var1=thu_13:12:32,var2=Microsoft,var3=240ms,var4=Mozilla/4.0_(sun;_MSIR_3-4;_windows.;_NET_1.1323.53 var1=thu_13:13:32,var2=Microsoft,var3=213ms,var4=Mozilla/4.0_(sun;_MSIR_3-4;_windows.;_NET_1.1323.53... (9 Replies)
Discussion started by: lalelle
9 Replies

8. UNIX for Dummies Questions & Answers

How do I find route table information

I am trying to install a new AIX server and I am migrating off of an older AIX server. Does anyone have a quick and easy method for getting the static route information from the old server so I can just maybe copy a file over to the new server ? (1 Reply)
Discussion started by: Docboyeee
1 Replies

9. UNIX for Dummies Questions & Answers

How do I find information about the hardware?

Hello I used to Red Hat and the common Linux commands, but now I have to deal with a SCO-Unix (Unix Ware 7). I have to find information about the hardware. What networkcard is installed? What graphiccard is installed? Which SCSI-Adapter and what kind of harddisks? What software is... (3 Replies)
Discussion started by: Fwurm
3 Replies

10. UNIX for Dummies Questions & Answers

Please help me find out system information

I'm just getting started with unix and would like to know 1) how to tell how big the harddrive is 2) how to tell if there are multiple harddrive installed on the machine 3) a relitavely easy way to tell what programs are installed on the machine. I'm using Sun OS 5.6 Thanks (3 Replies)
Discussion started by: ViperD
3 Replies
Login or Register to Ask a Question