<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jontas &#187; hdparm</title>
	<atom:link href="http://www.f15ijp.com/tag/hdparm/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.f15ijp.com</link>
	<description>My digital notepad (notes etc)</description>
	<lastBuildDate>Wed, 28 Dec 2011 18:24:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Linux: Finding the serial number of a hard drive</title>
		<link>http://www.f15ijp.com/2010/07/23/linux-finding-the-serial-number-of-a-hard-driv/</link>
		<comments>http://www.f15ijp.com/2010/07/23/linux-finding-the-serial-number-of-a-hard-driv/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 20:33:22 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[hd]]></category>
		<category><![CDATA[hdparm]]></category>
		<category><![CDATA[sd]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=557</guid>
		<description><![CDATA[Finding the serial number of a hard drive on a Linux console (as root) is simple with the right tool. The right tool in this case is hdparm (using the -i option). -i will query the device directly for the details. Example: themachine:/proc# hdparm -i /dev/sda &#160; /dev/sda: &#160; Model=ST31500341AS , FwRev=CC1H , SerialNo= 9VS21ZXM [...]]]></description>
			<content:encoded><![CDATA[<p>Finding the serial number of a hard drive on a Linux console (as root) is simple with the right tool.<br />
The right tool in this case is hdparm (using the -i option).<br />
-i will query the device directly for the details.</p>
<p>Example:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">themachine:<span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #666666; font-style: italic;"># hdparm -i /dev/sda</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda:
&nbsp;
 <span style="color: #007800;">Model</span>=ST31500341AS                            , <span style="color: #007800;">FwRev</span>=CC1H    , <span style="color: #007800;">SerialNo</span>=            9VS21ZXM
 <span style="color: #007800;">Config</span>=<span style="color: #7a0874; font-weight: bold;">&#123;</span> HardSect NotMFM HdSw<span style="color: #000000; font-weight: bold;">&gt;</span>15uSec Fixed DTR<span style="color: #000000; font-weight: bold;">&gt;</span>10Mbs RotSpdTol<span style="color: #000000; font-weight: bold;">&gt;</span>.5<span style="color: #000000; font-weight: bold;">%</span> <span style="color: #7a0874; font-weight: bold;">&#125;</span>
 <span style="color: #007800;">RawCHS</span>=<span style="color: #000000;">16383</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">16</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">63</span>, <span style="color: #007800;">TrkSize</span>=<span style="color: #000000;">0</span>, <span style="color: #007800;">SectSize</span>=<span style="color: #000000;">0</span>, <span style="color: #007800;">ECCbytes</span>=<span style="color: #000000;">4</span>
 <span style="color: #007800;">BuffType</span>=unknown, <span style="color: #007800;">BuffSize</span>=0kB, <span style="color: #007800;">MaxMultSect</span>=<span style="color: #000000;">16</span>, <span style="color: #007800;">MultSect</span>=?<span style="color: #000000;">16</span>?
 <span style="color: #007800;">CurCHS</span>=<span style="color: #000000;">16383</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">16</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">63</span>, <span style="color: #007800;">CurSects</span>=<span style="color: #000000;">16514064</span>, <span style="color: #007800;">LBA</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span>, <span style="color: #007800;">LBAsects</span>=<span style="color: #000000;">18446744072344861488</span>
 <span style="color: #007800;">IORDY</span>=on<span style="color: #000000; font-weight: bold;">/</span>off, <span style="color: #007800;">tPIO</span>=<span style="color: #7a0874; font-weight: bold;">&#123;</span>min:<span style="color: #000000;">120</span>,w<span style="color: #000000; font-weight: bold;">/</span>IORDY:<span style="color: #000000;">120</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>, <span style="color: #007800;">tDMA</span>=<span style="color: #7a0874; font-weight: bold;">&#123;</span>min:<span style="color: #000000;">120</span>,rec:<span style="color: #000000;">120</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>
 PIO modes:  pio0 pio1 pio2 pio3 pio4 
 DMA modes:  mdma0 mdma1 mdma2 
 UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 <span style="color: #000000; font-weight: bold;">*</span>udma6 
 <span style="color: #007800;">AdvancedPM</span>=no <span style="color: #007800;">WriteCache</span>=enabled
 Drive conforms to: unknown:  ATA<span style="color: #000000; font-weight: bold;">/</span>ATAPI-<span style="color: #000000;">4</span>,<span style="color: #000000;">5</span>,<span style="color: #000000;">6</span>,<span style="color: #000000;">7</span>
&nbsp;
 <span style="color: #000000; font-weight: bold;">*</span> signifies the current active mode</pre></div></div>

<p>Using the option -I instead gives even more information:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">themachine:<span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #666666; font-style: italic;"># hdparm -I /dev/sda</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda:
&nbsp;
ATA device, with non-removable media
        Model Number:       ST31500341AS                            
        Serial Number:      9VS21ZXM
        Firmware Revision:  CC1H    
        Transport:          Serial
Standards:
        Used: unknown <span style="color: #7a0874; font-weight: bold;">&#40;</span>minor revision code 0x0029<span style="color: #7a0874; font-weight: bold;">&#41;</span> 
        Supported: <span style="color: #000000;">8</span> <span style="color: #000000;">7</span> <span style="color: #000000;">6</span> <span style="color: #000000;">5</span> 
        Likely used: <span style="color: #000000;">8</span>
Configuration:
        Logical         max     current
        cylinders       <span style="color: #000000;">16383</span>   <span style="color: #000000;">16383</span>
        heads           <span style="color: #000000;">16</span>      <span style="color: #000000;">16</span>
        sectors<span style="color: #000000; font-weight: bold;">/</span>track   <span style="color: #000000;">63</span>      <span style="color: #000000;">63</span>
        <span style="color: #660033;">--</span>
        CHS current addressable sectors:   <span style="color: #000000;">16514064</span>
        LBA    user addressable sectors:  <span style="color: #000000;">268435455</span>
        LBA48  user addressable sectors: <span style="color: #000000;">2930277168</span>
        device <span style="color: #c20cb9; font-weight: bold;">size</span> with M = <span style="color: #000000;">1024</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1024</span>:     <span style="color: #000000;">1430799</span> MBytes
        device <span style="color: #c20cb9; font-weight: bold;">size</span> with M = <span style="color: #000000;">1000</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1000</span>:     <span style="color: #000000;">1500301</span> MBytes <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1500</span> GB<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Capabilities:
        LBA, IORDY<span style="color: #7a0874; font-weight: bold;">&#40;</span>can be disabled<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        Queue depth: <span style="color: #000000;">32</span>
        Standby timer values: spec<span style="color: #ff0000;">'d by Standard, no device specific minimum
        R/W multiple sector transfer: Max = 16  Current = ?
        Recommended acoustic management value: 254, current value: 0
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4 
             Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    SMART feature set
                Security Mode feature set
           *    Power Management feature set
           *    Write cache
           *    Look-ahead
           *    Host Protected Area feature set
           *    WRITE_BUFFER command
           *    READ_BUFFER command
           *    DOWNLOAD_MICROCODE
                SET_MAX security extension
           *    Automatic Acoustic Management feature set
           *    48-bit Address feature set
           *    Device Configuration Overlay feature set
           *    Mandatory FLUSH_CACHE
           *    FLUSH_CACHE_EXT
           *    SMART error logging
           *    SMART self-test
           *    General Purpose Logging feature set
           *    WRITE_{DMA|MULTIPLE}_FUA_EXT
           *    64-bit World wide name
                Write-Read-Verify feature set
           *    WRITE_UNCORRECTABLE_EXT command
           *    {READ,WRITE}_DMA_EXT_GPL commands
           *    Segmented DOWNLOAD_MICROCODE
           *    SATA-I signaling speed (1.5Gb/s)
           *    SATA-II signaling speed (3.0Gb/s)
           *    Native Command Queueing (NCQ)
           *    Phy event counters
                Device-initiated interface power management
           *    Software settings preservation
           *    SMART Command Transport (SCT) feature set
           *    SCT Long Sector Access (AC1)
           *    SCT LBA Segment Access (AC2)
           *    SCT Error Recovery Control (AC3)
           *    SCT Features Control (AC4)
           *    SCT Data Tables (AC5)
                unknown 206[12] (vendor specific)
Security: 
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
                supported: enhanced erase
        240min for SECURITY ERASE UNIT. 240min for ENHANCED SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 5000c50014ec1f60
        NAA             : 5
        IEEE OUI        : c50
        Unique ID       : 014ec1f60
Checksum: correct</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/07/23/linux-finding-the-serial-number-of-a-hard-driv/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

