Find the answer to your Linux question:
Results 1 to 10 of 10
How do I check my hard disk Revolutions Per Minute (RPM) speed from a Linux shell prompt without opening my server case? any other third party utility please let me ...
  1. #1
    Just Joined!
    Join Date
    Dec 2010
    Posts
    1

    How To Find Hard Disk (RPM) speed

    How do I check my hard disk Revolutions Per Minute (RPM) speed from a Linux shell prompt without opening my server case? any other third party utility please let me know.
    I referenced some other articles. they give only model number, serial number and disk space.
    But i need Hard disk RPM speed using shell script.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    I'm not sure you can. At least I'm not aware of any way to test for the rotational speed of a drive. I looked and so far have come up empty handed.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,100
    At least it's possible to get some fodder for google:

    Like this:
    Code:
    # find /sys/ -type f -name "model"
    /sys/devices/pci0000:00/0000:00:0b.0/host0/target0:0:0/0:0:0:0/model
    /sys/module/snd_hda_intel/parameters/model
    
    #cat /sys/devices/pci0000:00/0000:00:0b.0/host0/target0:0:0/0:0:0:0/model
    HITACHI HTS54502
    You must always face the curtain with a bow.

  4. #4
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Pecos, Texas
    Posts
    2,944
    Like ithori says, You can run lshw as root and get the model number of hardrive and google the rpm specs.

    description: ATA Disk
    product: ST380815AS
    vendor: Seagate
    Edit. Mine is 7200 rpm
    ST380815AS Barracuda 7200.10 SATA 3.0Gb/s 80-GB Hard Drive | Seagate
    Linux Registered User # 475019
    Lead,Follow, or get the heck out of the way
    AntiX,Puppy,Ubuntu,Windows 7=(cuz of scooters)
    Open CourseWare for Linux Geeks

  5. #5
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Quote Originally Posted by Irithori View Post
    At least it's possible to get some fodder for google:

    Like this:
    Code:
    # find /sys/ -type f -name "model"
    /sys/devices/pci0000:00/0000:00:0b.0/host0/target0:0:0/0:0:0:0/model
    /sys/module/snd_hda_intel/parameters/model
    
    #cat /sys/devices/pci0000:00/0000:00:0b.0/host0/target0:0:0/0:0:0:0/model
    HITACHI HTS54502
    Yeah. Myself, I use the "open case, remove drive, read label on drive" approach. Doesn't work well with a shell script though...
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  6. #6
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Quote Originally Posted by rokytnji View Post
    Like ithori says, You can run lshw as root and get the model number of hardrive and google the rpm specs.
    Unfortunately, not all systems have that. I know that my CentOS system doesn't by default, though it seems to be available from the rpmforge repository. Hmmm. I'll install that and check it out. Thanks for the clue Roky.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  7. #7
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    BTW, does anyone know if there is a command-line means of doing a google search? That would be kewl so you could get the results of a search to use in a shell or other script.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  8. #8
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,100
    Yeah. Myself, I use the "open case, remove drive, read label on drive" approach. Doesn't work well with a shell script though...
    Hmm, my machines are in dublin, I am in munich.
    Let's see what my manager says if I want to travel there to look at a disc :P

    More seriously:
    If the disks are connected to a (decent) raidcontroller with userland tools,
    it is possible to get about any information about the disks from them.
    You must always face the curtain with a bow.

  9. #9
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Ok. I installed and ran lshw and lshw -short. One can certainly get the make+model information that way, as well as file system info of sorts. Unfortunately, there is nothing about rotational speed and such.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  10. #10
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,100
    Another way to find the model:

    Code:
    # smartctl -i /dev/sda
    smartctl 5.40 2010-03-16 r3077 [i686-pc-linux-gnu] (local build)
    Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
    
    === START OF INFORMATION SECTION ===
    Device Model:     HITACHI HTS545025B9A300
    Serial Number:    091028PB42041SH15Z1G
    Firmware Version: PB2ZC61H
    User Capacity:    250.059.350.016 bytes
    Device is:        Not in smartctl database [for details use: -P showall]
    ATA Version is:   8
    ATA Standard is:  ATA-8-ACS revision 6
    Local Time is:    Tue Dec 14 20:59:03 2010 CET
    SMART support is: Available - device has SMART capability.
    SMART support is: Enabled
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...