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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-17-2012, 01:02 PM
|
#1
|
LQ Newbie
Registered: Jul 2012
Posts: 1
Rep:
|
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.
|
|
|
07-17-2012, 01:04 PM
|
#2
|
Senior Member
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766
Rep:
|
hdparm, sdparm, gsmartctl, smartctl
|
|
|
07-17-2012, 01:09 PM
|
#3
|
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604
|
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.
|
07-17-2012, 01:10 PM
|
#4
|
Senior Member
Registered: Jul 2009
Location: Virginia
Distribution: Debian Stable Testing Sid Slackware CentOS
Posts: 1,055
Rep:
|
Try
You can try:
Code:
apt-get install lshw
Then run That will give all kinds of info about the hardware
Hope this helps
|
|
|
07-17-2012, 01:11 PM
|
#5
|
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604
|
Oh yea, you can also just run the dmidecode command.
|
|
|
07-17-2012, 01:24 PM
|
#6
|
Senior Member
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766
Rep:
|
@Kustom42 dmidecode does not provide the info.
@etech3, lshw is overkill
while the ones suggested by me are more specific.
|
|
|
07-17-2012, 01:25 PM
|
#7
|
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604
|
Quote:
Originally Posted by amani
@Kustom42 dmidecode does not provide the info.
.
|
Funny, it shows the serial number on my system when I run it..
|
|
|
07-17-2012, 01:31 PM
|
#8
|
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604
|
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...
|
|
|
07-18-2012, 03:46 PM
|
#9
|
Senior Member
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766
Rep:
|
Quote:
Originally Posted by Kustom42
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.
|
|
|
07-18-2012, 05:20 PM
|
#10
|
Member
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179
Rep:
|
Quote:
Originally Posted by amani
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 05:14 AM.
|
|
|
07-19-2012, 10:33 AM
|
#11
|
Senior Member
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766
Rep:
|
Quote:
Originally Posted by sharadchhetri
ls -l /dev/disk/by-uuid
|
Irrelevant. Read before posting.
|
|
|
All times are GMT -5. The time now is 05:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|