<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://gigatux.com/wiki/index.php?action=history&amp;feed=atom&amp;title=ATA_Errors</id>
	<title>ATA Errors - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://gigatux.com/wiki/index.php?action=history&amp;feed=atom&amp;title=ATA_Errors"/>
	<link rel="alternate" type="text/html" href="https://gigatux.com/wiki/index.php?title=ATA_Errors&amp;action=history"/>
	<updated>2026-11-06T13:40:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://gigatux.com/wiki/index.php?title=ATA_Errors&amp;diff=326&amp;oldid=prev</id>
		<title>Cocodude: Created page with &quot;You may notice errors in &#039;&#039;dmesg&#039;&#039; or &#039;&#039;/var/log/kern*&#039;&#039; which say that something is going wrong on something like &#039;&#039;ata4.0&#039;&#039;. It is non-trivial to translate this to a device map...&quot;</title>
		<link rel="alternate" type="text/html" href="https://gigatux.com/wiki/index.php?title=ATA_Errors&amp;diff=326&amp;oldid=prev"/>
		<updated>2012-12-14T13:05:32Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;You may notice errors in &amp;#039;&amp;#039;dmesg&amp;#039;&amp;#039; or &amp;#039;&amp;#039;/var/log/kern*&amp;#039;&amp;#039; which say that something is going wrong on something like &amp;#039;&amp;#039;ata4.0&amp;#039;&amp;#039;. It is non-trivial to translate this to a device map...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;You may notice errors in &amp;#039;&amp;#039;dmesg&amp;#039;&amp;#039; or &amp;#039;&amp;#039;/var/log/kern*&amp;#039;&amp;#039; which say that something is going wrong on something like &amp;#039;&amp;#039;ata4.0&amp;#039;&amp;#039;. It is non-trivial to translate this to a device mapping like &amp;#039;&amp;#039;/dev/sda&amp;#039;&amp;#039; so code from [http://serverfault.com/questions/244944/linux-ata-errors-translating-to-a-device-name this page] helps determine what ata devices corresponds to what device:&lt;br /&gt;
&lt;br /&gt;
  #!/bin/bash&lt;br /&gt;
  # note: inspired by Peter&lt;br /&gt;
  ls -l /sys/block/sd* \&lt;br /&gt;
  \&lt;br /&gt;
   | sed -e &amp;#039;s^.*-&amp;gt; \.\.^/sys^&amp;#039; \&lt;br /&gt;
         -e &amp;#039;s^/host[0-9]\{1,2\}/target^ ^&amp;#039; \&lt;br /&gt;
         -e &amp;#039;s^/[0-9]\{1,2\}\(:[0-9]\)\{3\}/block/^ ^&amp;#039; \&lt;br /&gt;
  \&lt;br /&gt;
   |  while read Path HostFull ID&lt;br /&gt;
      do&lt;br /&gt;
  &lt;br /&gt;
        # this nifty line will tokenize HostFull into named substrings ( = host numbers)&lt;br /&gt;
        IFS=: read HostMain HostMid HostSub &amp;lt;&amp;lt;&amp;lt; &amp;quot;$HostFull&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
        if grep -q &amp;#039;/usb[0-9]*/&amp;#039; &amp;lt;&amp;lt;&amp;lt; $Path; then&lt;br /&gt;
          echo &amp;quot;(Device $ID is not an ATA device, but a USB device [e. g. a pen drive])&amp;quot;&lt;br /&gt;
        else&lt;br /&gt;
          echo $ID: ata$(cat $Path/host$HostMain/scsi_host/host$HostMain/unique_id).$HostMid$HostSub&lt;br /&gt;
        fi&lt;br /&gt;
  &lt;br /&gt;
       done&lt;/div&gt;</summary>
		<author><name>Cocodude</name></author>
	</entry>
</feed>