Comment 24 for bug 387161

Revision history for this message
Martin Pitt (pitti) wrote : Re: External SATA->USB Drive gives lots of USB resets on ATA smart probing

OK, let's do the good old print/sleep method then. I prepared a debugging version of libatasmart in my PPA which should help us track down the operation which causes trouble. Please go to

  http://ppa.launchpad.net/pitti/ppa/ubuntu/pool/main/liba/libatasmart/

and click on libatasmart0_0.13-1debug1_i386.deb or libatasmart0_0.13-1debug1_amd64.deb, depending on which architecture you installed (if unsure, run "dpkg --print-architecture"). This will spawn gdebi, please allow it to install the new version.

Then please do

  sudo strace -ttvvfs1024 -o /tmp/trace /lib/udev/devkit-disks-probe-ata-smart /dev/sdb

(assuming that the USB SATA disk is still /dev/sdb, and that it's plugged in, etc.). Then attach /var/log/kern.log and /tmp/trace here.

Afterwards, restore the original libatasmart package again to not drag your system to a crawl in other situations:

  sudo apt-get install libatasmart/karmic

(agree to the downgrade).

Thanks for your help!