Canada  united states of america usa  linkedinfacebook   Call Us Today: 866.646.6461

Mapping ata2.00 (ataX.00) to a device

linux icon 19On occasion you may get a nasty error like this (BadCRC generally means bad sectors):

[4530467.649165] ata2.00: exception Emask 0x10 SAct 0x60000000 SErr 0x280100 action 0x6 frozen
[4530467.649608] ata2.00: irq_stat 0x08000000, interface fatal error
[4530467.650043] ata2: SError: { UnrecovData 10B8B BadCRC }

But the problem is mapping the drive ata2 to an actual disk drive device. This can be achieved by running this command:

 ls -l /dev/disk/by-path/

The output will show you the mapping from ata2 to the actual device on the system:

lrwxrwxrwx 1 root root 9 Aug 7 09:35 pci-0000:00:17.0-ata-1 -> ../../sda
lrwxrwxrwx 1 root root 10 Aug 7 09:35 pci-0000:00:17.0-ata-1-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Aug 7 09:35 pci-0000:00:17.0-ata-1-part2 -> ../../sda2

ALT Technical is an IT services provider, specializing in Linux, WIndows and Apple systems. We provide local and remote support in South Florida, Delaware Valley and Philadelphia, Central New York and across Ontario, Canada. Contact us for any IT project.

Last updated Sep 30, 2019