LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-19-2011, 03:52 PM   #1
Avirup
LQ Newbie
 
Registered: Aug 2011
Posts: 5

Rep: Reputation: Disabled
Linux HDD serial number from logical drive names sda sdb etc


Trying to find a way to get the particular hard drive serial number from the linux logical drive name ex sda sdb etc . Need to do this in driver space, so utilities like lshw or hdparm is of no use. Need Kernel API info to get the info
 
Old 08-19-2011, 03:57 PM   #2
Avirup
LQ Newbie
 
Registered: Aug 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
any help would be much appreciated
 
Old 08-19-2011, 04:11 PM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292
The HDD serial number can be seen using 'smartctl -i /dev/sda'.
 
1 members found this post helpful.
Old 08-19-2011, 04:27 PM   #4
Avirup
LQ Newbie
 
Registered: Aug 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
That is again an utility similar lshw/hdparm I need to do this in driver space .... so need info about the Kernel API's to use
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Grub: If exists sdb, then boot sdb, else sda defaultyeti Linux - Desktop 6 06-28-2011 02:38 AM
How to get Drive letter and serial number of thumb drive in linux? manucng Linux - Newbie 3 02-05-2010 02:25 AM
FC6 drive/partitions reconfig question sda sdb swap CaptainInsane Fedora 6 02-02-2007 03:00 PM
cannot find sda or sdb for mounting pen drive in RH9 sakal_woman Linux - Hardware 3 11-20-2006 09:41 PM
zip drive alternately mounts on /sda and /sdb timsch75 Linux - Hardware 6 09-26-2004 10:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration