LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-30-2006, 07:08 PM   #1
RajRed
Member
 
Registered: Mar 2005
Posts: 66

Rep: Reputation: 15
how to find the disk info like model, rpm,...


How do I find out the disk info such as the speed of disk (rpm), model, what level of RAID was configured?

Thanks.
 
Old 05-30-2006, 07:35 PM   #2
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Everything you should need to know about your harddrive(s):

Code:
hdparm -Ii /dev/hda[1-4]
More about hdparm:

Code:
man hdparm
Regards,

Alunduil

EDIT: Fixed tags; I think I have them down now...
 
Old 05-31-2006, 02:36 PM   #3
RajRed
Member
 
Registered: Mar 2005
Posts: 66

Original Poster
Rep: Reputation: 15
It seems like hdparm does not operate on SCSI disks?
 
Old 05-31-2006, 03:07 PM   #4
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
I believe there is a tool, sdparm, that works on scsi disks, but I'm not sure. Try googling for scsi & hdparm.

Regards,

Alunduil
 
Old 05-31-2006, 03:34 PM   #5
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Quote:
Originally Posted by RajRed
It seems like hdparm does not operate on SCSI disks?
You can always go digging around in /proc and /sys filesystems (provided you're running an up-to-date kernel). In my system (one ide harddrive hda), there's a lot of information in
Code:
/proc/ide/hda
I'm sure there's something similar for scsi disks.
 
Old 04-12-2016, 04:33 PM   #6
intelstar83
LQ Newbie
 
Registered: Apr 2016
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by RajRed View Post
How do I find out the disk info such as the speed of disk (rpm), model, what level of RAID was configured?

Thanks.
hdparm doesn't work well in my case : Fedora 22 on VM
 
Old 04-12-2016, 04:56 PM   #7
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
VMs don't have access to the raw device unless you explicitly pass it in (rendering it unusable on the host). The VM only sees an emulated drive controlled by the VM software.
 
Old 04-12-2016, 05:26 PM   #8
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
As noted above, this won't work from a VM. But for future reference, you can install the smartmontools package if it is not already installed and get very detailed disk info by running as root or admin:
Code:
# smartctl -i /dev/<insert device file, eg sda, hda, etc>
This will work for any smart capable hard drive which is pretty much everything manufactured in the last 10 years. For example, here's the output I get on my WD 1TB hard drive:
Code:
$ sudo smartctl -i /dev/sdd
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.13.0-85-generic] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Caviar Black
Device Model:     WDC WD1001FALS-00J7B0
Serial Number:    WD-WMATV7270748
LU WWN Device Id: 5 0014ee 0ace4fa7b
Firmware Version: 05.00K05
User Capacity:    1,000,204,886,016 bytes [1.00 TB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 2.5, 3.0 Gb/s
Local Time is:    Tue Apr 12 17:22:26 2016 CDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
 
Old 04-12-2016, 05:31 PM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Hi:

Code:
cat /proc/cpuinfo
Should give you all the info. you need about your cpu. Not sure if that will work in a VM-

https://linuxconfig.org/hard-drive-s...ine-and-hdparm
http://www.shellhacks.com/en/HowTo-T...-Disk-in-Linux
 
  


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
Command returns info on motherboard make, model? hpladd Linux - Newbie 3 01-27-2006 07:33 AM
Find Monitor Model etc yongtin Linux - General 11 08-22-2005 08:33 PM
How do I find out the model of my network card? Ryle Linux - Newbie 3 08-13-2005 06:22 PM
find out make and model of pc from command line? box_l Programming 7 02-13-2005 01:34 PM
need to get a hd's info model # etc absolutal Linux - Newbie 2 08-26-2003 10:09 PM

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

All times are GMT -5. The time now is 01:28 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