How-to-simply...

Fix USB stor sense invalidCDB mounting Flash Drive on CentOS/RHEL/Rocky 9

  • 1 echo uas >> /etc/modules-load.d/40-usb_add_uas.conf
  • 2 Un-blacklist (comment out) the following in /etc/modprobe.d/blacklist.conf:
    # install usb-storage /bin/true
    # blacklist usb-storage
  • 3 Restart
  • 4 lsmod | grep uas
  • N uas module has a dependency on usb-storage, another issue may be usbguard preventing access to the usb, check /var/log/usbguard/usbguard-audit.log /etc/usbguard/rules.d/00_general.conf /etc/usbguard/usbguard-daemon.conf

References