Find device name for "ata5"
Hi there!
This is probably a horrendously stupid question, but I need to find what device "ata5" is on my computer. When booting my box today I noticed the following message in the dmesg log: Code:
ata5: softreset failed (timeout) Can anyone help me out? |
ATA-5 would be your HDD. (ATA-5 = Ultra DMA 3, 4 or UDMA66 or Ultra ATA/66)
|
Hi,
I used "dmesg | grep ata2" a couple days ago to figure out which HDD was on SATA 1. The relevant ouput was : Code:
ata1.00: ATA-8: WDC WD3200BEVT-22ZCT0, 11.01A11, max UDMA/133 Serafean |
don't bother about the message "ata5: softreset failed (timeout)".
if there is nothing more in the next line |
Thank you both for your replies, however I am still stuck.
1) First of all, I have a total of 6 hard drives in my box. I know that the message refers to an attached hdd, my problem is finding out which one it is. 2) The major problem is that "ata5" is never mentioned in dmesg besides the following lines: Code:
ata5: SATA max UDMA/100 host m128@0xe9004000 port 0xe9000000 irq 17 |
Quote:
Do you know why this error message is shown? I guess it might be the kernel config or perhaps RAID-related; but I haven't updated my kernel prior to this occurring, neither do I have a RAID set up. |
Look in /var/log/messages for ATA5. (E.g: grep -i ata5 /var/log/messages or just search for all ATA references in there.)
(I'd show you an example, but I'm on an XP system right now . . .) |
Quote:
Code:
ata5: hard resetting link |
Ah, well, look where the messages start, where you should see something like this (where the ID is in bold-face type):
Code:
May 23 13:43:19 Trenholme kernel: [ 3.651671] ata3: PATA max UDMA/100 cmd 0xa400 ctl 0xa800 bmdma 0xb400 irq 17 <edit> By the way, note the line preceding the one I highlighted. That tells me that my problem drive is the "slave" drive (ATA3.01) on the third PATA cable, where my DVD drive is in the "master" slot (ATA3.00) of that cable. So your ATA5.00 drive should be in the "master" slot of your fifth drive cable. (If you have SATA cables, that might be your fifth drive. My system is a decade old, and SATA drives weren't available when I built it.) </edit> |
Ladies and gents, I have been able to pin down the problem. After what I can see my backup drive has silently died. It stays unmounted by default - that is why I had the impression that all drives are working.
@PTrenholme: Nope, nothing. The only thing I did with the snippet from my messages log was to trim off the beginning of the line - indicating date and hostname (for safety reasons). I know it is very strange that no identifiers were printed anywhere - but that is perhaps because the hdd is so kaput that it is unable to identify itself properly? Otherwise I do not have any good explanation for this behavior - all my other hard drives identify themselves correctly. |
Everyone, thanks for the help! It's really appreciated!
|
Script to determine ataN...
This script will only work if you've booted relatively recently (and it's geared towards Debian; it writes the ataN information to /var/log/kern.log). If you have logrotate enabled there's a chance the relevant information has been rotated out, so be wary. You might have to change kern.log to messages depending on your distro of choice. As I said this works for me on Debian sid (or would have, if the relevant bits hadn't been rotated into oblivion ;-):
Code:
#!/bin/bash Code:
ata1 is /dev/hda |
This is a rather old thread, but, for what it's worth, most modern distributions using udev will have this command:
Code:
$ ls -l /dev/disk/by-id | sort -k 11 |
Quote:
|
Here's my script, based on a couple of posts above (this for current 7.3 Debian)
Code:
#!/bin/bash |
Sorry for the long delay (I'm 74 yr.s old so a "minor" cold, isn't). I'll need to look at your script a bit longer, but, to start with, a minor quibble:
The idiom you used to have awk print (i.e.: grep <re> | awk '{print ...}') involves an extra "pipe" step. A simple awk '/<re>/{print ...}' does the same thing and is, generally, much more flexible. More later. (I'm still coughing...) <edit> If you were to use gawk instead of mixing your languages, you might find life simplier. Here's simple a rewrite of the non-distro-specific part of your script to get you started, if you wish. (I don't have a Debian distro installed, so I don't have a /var/log/kern file with which to play.) Note the the uptime on my Fedora system accepts arguments: Code:
$ uptime -h Code:
#!/bin/gawk -f Code:
$ ./affinityvision.gawk |
All times are GMT -5. The time now is 04:32 AM. |