LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-31-2011, 07:56 PM   #1
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: Debian, Ubuntu
Posts: 400

Rep: Reputation: 39
ata8 = ??


Hi all,

Spent some time searching for this. I figured there must be an easy way to work this out.

I have mentions of ata1 and ata8 in my messages log, like "ata8: hard resetting link"
How does one map ata8 to a real disk?

I can not find anything in /dev/disk, not fdisk or lshw.
The only way I found was grepping through dmesg and you get a serial which you can then use lshw to find out. But is this the only way?

Thanks for any info.
 
Old 06-01-2011, 03:18 AM   #2
LaughingBoy
Member
 
Registered: May 2006
Location: Adelaide, South Australia
Distribution: Fedora 6-17 x64 / Ubuntu 10.x x64
Posts: 95

Rep: Reputation: 16
I had a similar problem with a squizillion ata4 error messages along the same lines. The trouble was that I had 6 identical disks in the system, so model numbers were useless.

When the disk eventually "died" (and I use that term loosely, because it didn't actually die - the SATA cable was dodgy), the activity light was permanently on for that disk - which turned out to be /dev/sdb. Amusingly, with a different kernel version (or maybe it was a distro update, I forget specifically) the disks were /dev/sdb-/dev/sdg instead of /dev/sda-/dev/sdf. <shrugs>

I only just found the use of using dmesg and smartctl to correlate the data myself. Wish I knew some logic behind the ataX numbering...
 
Old 06-01-2011, 04:59 AM   #3
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: Debian, Ubuntu
Posts: 400

Original Poster
Rep: Reputation: 39
Frustrating indeed.

I was hoping for a symlink mapping like what is found in /dev/disk.
 
1 members found this post helpful.
Old 07-03-2012, 08:59 PM   #4
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: Debian, Ubuntu
Posts: 400

Original Poster
Rep: Reputation: 39
I have since worked this out.

It turns out that these devices are Device Mapper (DM) devices.

To work them out you need to run

Code:
lvdisplay
And look for line

Code:
Block Device
There you will see

Code:
253:3
for example. So that equates to

Code:
ata3
There is a awk like one liner for this out on the web to show them all in a concise manner, but really, just use lvdisplay and manually parse it with your eyes.
 
  


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



LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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