Blacklist UAS drivers in kernel

I'm running Ubuntu 20.04 with the 5.4.0-42-generic kernel.

I have an external WD Elements USB 3.0 2TB drive attached.

Recently, while copying ~35GB of audio files from this drive to my Pixel 2 XL phone (connected with a USB 3.0 cable to a USB 3.0 USB port on the computer), I noticed that the transfer speed starts at ~ 20MB/sec, and after a while, the speed is down near 2MB/sec, which makes the transfer time hours long.

It seems that the usb-storage driver needs to be loaded instead of UAS (which apparently is the cause of the bottleneck).

I read an article on how to blacklist the UAS driver in the kernel, which did not work. It seems that the article was referring to drivers that are loaded as modules, but I think maybe the UAS driver is built into this kernel and therefore NOT loaded as a module, so the suggested procedure did not work. I am not interested in compiling/using a different kernel.

Can someone comment on how to blacklist a UAS driver that is built into a kernel and then enable the usb-storage driver instead?

TIA for any help provided.

0
задан 13 August 2020 в 22:09

1 ответ

Сначала точно определите модуль, который вы хотите внести в черный список, по типу терминала

lsmod | head -20

Затем вы можете отметить дополнительную информацию, набрав

modinfo modulename

имя модуля, являющееся именем вы нашли ранее с помощью lsmod
. Затем добавьте это имя модуля в файл конфигурации, набрав

sudo nano /etc/modprobe.d/blacklist.conf

(или вы можете использовать gedit или vi вместо nano)
Добавьте в конец этого файла строку, которая читает

черный список имя модуля


имя модуля - это имя, которое вы нашли ранее с помощью lsmod
Зафиксируйте изменения и сохраните с тем же именем файла, затем перезагрузитесь.

0
ответ дан 21 August 2020 в 08:00

Другие вопросы по тегам:

Похожие вопросы: