Rock64 crash randomly during usb 3 copy with RAID1 drive
#22
(09-19-2017, 05:46 AM)rontant Wrote:
(09-19-2017, 02:26 AM)digitaldaz Wrote: Actually, how do you blacklist the UAS??

First, check if your USB enclosure is indeed a UAS enabled USB 3 enclosure. Use the command:

Code:
lsusb -t

Do you see your device listed as one using uas driver?

If yes, get the vendor ID and the product ID . Just use the command  line 'lsusb' without any parameter and you will see a list of USB devices with their respective ID numbers. Your USB enclosure should be one of them. If you use WD Passport 3TB, for example, you will see something like this:

Bus 005 Device 003: ID 1058:0827 Western Digital Technologies, Inc.

1058 is the vendor ID and 0827 the product ID.

Add these 2 numbers into the conf file in /etc/modprobe.d to blacklist the UAS

Code:
sudo nano /etc/modprobe.d/rk3328-usb-storage-quirks.conf

The ID numbers should be following the format 0xVendorID:0xProductID:u. Each blacklisted device should be separated by a comma. See the example below.  

options usb-storage quirks=0x2537:0x1066:u,0x2537:0x1068:u,0x0bc2:0xa013:u,0x1058:0x0827:u,0x0bc2:0x2101:u,0x2109:0x0715:u


Reboot twice. 
Run 'dmesg' to verify.  If you edit correctly, you should see a line in dmesg saying your device has been blacklisted. If you run "lsusb -t" again,  it should say "driver=usb-storage"  instead of "driver=uas"

A BIG CAVEAT: Do this at your own risk.

Thanks @rontant, it works great

after your instructions, I also run "sudo update-initramfs -u"
Code:
root@rock64:~#sudo update-initramfs -u

reboot

root@rock64:~# dmesg | grep blacklisted
[    5.042432] usb 5-1: UAS is blacklisted for this device, using usb-storage instead
root@rock64:~#
  Reply


Messages In This Thread
RE: Rock64 crash randomly during usb 3 copy with RAID1 drive - by i69fstop - 05-08-2018, 01:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  openwrt for the rock64 wilsonYan 6 4,684 04-05-2021, 10:17 PM
Last Post: wilsonYan
  Setting a MAC on Rock64 U-Boot kiriakos 2 285 03-23-2021, 04:51 AM
Last Post: kiriakos
  Getting from zero to spidev on ROCK64? MikeInMass 0 146 03-22-2021, 10:31 AM
Last Post: MikeInMass
  NextCloudPi image for Rock64, NC version 13.0.2. nachoparker 11 10,382 03-15-2021, 02:59 PM
Last Post: kiriakos
  DietPi OS for ROCK64 MichaIng 11 2,651 03-10-2021, 11:00 AM
Last Post: MichaIng
  External hard drive problem k8Va 17 8,947 03-09-2021, 02:31 PM
Last Post: calinb
  slarm64 (unofficial slackware) Rock64 RK3328 (aarch64) mara 110 53,839 02-28-2021, 01:52 PM
Last Post: Enig123
  Linux Images (ROCK64) pineadmin 164 140,619 02-12-2021, 10:14 AM
Last Post: useful64
  Armbian for Rock64 pineadmin 26 18,049 12-25-2020, 11:07 PM
Last Post: lanefu
  RETRO-GAMING: UPDATED RELEASE OF RECALBOX FOR THE ROCK64 Mrfixit2001 31 21,849 12-21-2020, 08:17 AM
Last Post: hermes73

Forum Jump:


Users browsing this thread: 1 Guest(s)