LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-17-2012, 12:02 PM   #1
Lou898989
LQ Newbie
 
Registered: Jul 2012
Posts: 1

Rep: Reputation: Disabled
Smile Hard drive serial Numbers.


Is there a command to list the hard drive serial numbers for the OS drives and an array? This is usefull for organizations who track serial numbers.
 
Old 07-17-2012, 12:04 PM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
hdparm, sdparm, gsmartctl, smartctl
 
Old 07-17-2012, 12:09 PM   #3
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
I cant remember the exact syntax, but you can use the smartctl command.

I checked the man page and it looks like the command is:

Code:
smartctl --info /dev/hda
I didnt test it though, you may want to read over the man page to make sure the syntax is good.
 
1 members found this post helpful.
Old 07-17-2012, 12:10 PM   #4
etech3
Senior Member
 
Registered: Jul 2009
Location: Virginia
Distribution: Debian Stable Testing Sid Slackware CentOS
Posts: 1,055
Blog Entries: 2

Rep: Reputation: 45
Thumbs up Try

You can try:
Code:
apt-get install lshw
Then run
Code:
lshw
That will give all kinds of info about the hardware

Hope this helps
 
Old 07-17-2012, 12:11 PM   #5
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Oh yea, you can also just run the dmidecode command.
 
Old 07-17-2012, 12:24 PM   #6
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
@Kustom42 dmidecode does not provide the info.
@etech3, lshw is overkill
while the ones suggested by me are more specific.
 
Old 07-17-2012, 12:25 PM   #7
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Quote:
Originally Posted by amani View Post
@Kustom42 dmidecode does not provide the info.
.
Funny, it shows the serial number on my system when I run it..
 
Old 07-17-2012, 12:31 PM   #8
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
I think it may be showing my serial number due to it being a VM? I don't ever check for this info so I'm just trying to clarify here...
 
Old 07-18-2012, 02:46 PM   #9
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Quote:
Originally Posted by Kustom42 View Post
I think it may be showing my serial number due to it being a VM? I don't ever check for this info so I'm just trying to clarify here...
Your bios must be reporting more, so dmidecode must be reporting that way. It does not scan h/w.
 
Old 07-18-2012, 04:20 PM   #10
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Rep: Reputation: 23
Quote:
Originally Posted by amani View Post
Your bios must be reporting more, so dmidecode must be reporting that way. It does not scan h/w.

I edited my reply, I did mistake. Rather than serial no. I answered for UUID

For this Answer is

sdparm /dev/sdX

or

ls /dev/disk/by-id

Last edited by sharadchhetri; 07-21-2012 at 04:14 AM.
 
Old 07-19-2012, 09:33 AM   #11
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Quote:
Originally Posted by sharadchhetri View Post
ls -l /dev/disk/by-uuid
Irrelevant. Read before posting.
 
  


Reply



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
Changing the System Volume Serial Number on the Hard drive ElMastermind Linux - Hardware 4 08-15-2008 10:30 PM
Serial ATA Hard Drive Configuration decious Linux - Hardware 2 09-10-2005 08:21 PM
Hard Drive Serial Number? daver Linux - Hardware 4 03-17-2004 09:57 AM
command to show the hard drive serial #? AoiSora Linux - Newbie 1 02-17-2004 10:01 AM
How do I find out my Hard Drive usage numbers? Huddlebum Linux - Newbie 3 11-08-2003 09:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:27 AM.

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
Open Source Consulting | Domain Registration