How to Disable UAS for USB Without Knowing Prior Device ID in GRUB

Abstract: Disable USB Attached SCSI globally in GRUB by blacklisting the uas module to resolve compatibility issues with external drives without needing specific device IDs.

Created: 2026-07-29 by

To disable USB Attached SCSI (UAS) in GRUB without knowing the specific device ID, append usbcore.autosuspend=-1 and modprobe.blacklist=uas to the GRUB_CMDLINE_LINUX_DEFAULT line in /etc/default/grub. This approach forces the kernel to avoid loading the UAS driver entirely for all USB storage devices, reverting them to the slower but more compatible Bulk-Only Transport protocol. After editing, run sudo update-grub to apply the changes.

Understanding the UAS Compatibility Issue

USB Attached SCSI (UAS) is a protocol designed to improve data transfer speeds over traditional USB mass storage devices by utilizing multiple command queues. While UAS significantly boosts performance on modern hardware, it frequently causes compatibility issues with older external hard drives, cheap USB enclosures, or specific flash controllers. When these devices fail to negotiate the UAS protocol correctly, users often experience system hangs, disconnects during heavy I/O, or complete failure to mount the drive. The standard solution involves preventing the Linux kernel from binding the uas module to these problematic devices. Historically, administrators had to identify the vendor and product IDs of each failing device using commands like lsusb and then add specific usb-storage.quirks to the GRUB configuration. However, this method is tedious because it requires prior knowledge of every connected device's identifier. If you plug in a new drive that also exhibits UAS issues, you must manually edit your configuration again. A blanket disabling strategy is often preferred for stability, especially in server environments or when troubleshooting unpredictable hardware.

Modifying the GRUB Configuration File

The most effective way to disable UAS globally without targeting specific IDs is to blacklist the kernel module at boot time. This ensures that the uas driver is never loaded, forcing the kernel to use the fallback usb-storage driver which implements the Bulk-Only Transport protocol. This method is robust because it does not rely on dynamic device enumeration before the drivers load. First, open the GRUB default configuration file using a text editor with root privileges. You can use nano or vim depending on your preference:
sudo nano /etc/default/grub
Locate the line that begins with GRUB_CMDLINE_LINUX_DEFAULT. It typically contains quotes around a string of parameters, such as "quiet splash". You need to add two specific parameters inside these quotes. The first parameter tells the kernel to prevent the uas module from loading:
modprobe.blacklist=uas
The second parameter disables USB autosuspend, which can sometimes interfere with USB storage stability even after UAS is disabled:
usbcore.autosuspend=-1
Your final line should look similar to this example:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash modprobe.blacklist=uas usbcore.autosuspend=-1"
Ensure there are spaces between the existing parameters and the new ones. Do not remove the surrounding quotation marks. Save the file and exit the text editor.

Applying the Changes

Editing the configuration file does not immediately change the boot behavior. You must regenerate the GRUB configuration file to incorporate the new kernel parameters. Run the following command in your terminal:
sudo update-grub
On some distributions, particularly those based on systemd-boot or other bootloader variants, the command might be sudo grub-mkconfig -o /boot/grub/grub.cfg, but update-grub is the standard for Debian-based systems and many others. Once this command completes successfully, restart your computer. Upon reboot, verify that the UAS driver is not loaded by checking the kernel ring buffer or loaded modules:
dmesg | grep uas
If the blacklist was successful, you should see no output indicating that the uas module was probed or bound. Additionally, you can check the loaded modules list:
lsmod | grep uas
An empty result confirms that the module is inactive. Your USB devices will now operate using the Bulk-Only Transport protocol. While this may result in slightly lower throughput compared to UAS, it provides significantly higher reliability for incompatible hardware.

Reverting the Changes

If you determine that your hardware supports UAS properly or you wish to restore maximum performance, you can reverse these steps. Edit /etc/default/grub again and remove modprobe.blacklist=uas and usbcore.autosuspend=-1 from the GRUB_CMDLINE_LINUX_DEFAULT line. Run sudo update-grub and reboot. The system will return to its default USB handling behavior. For users who occasionally encounter GRUB issues while modifying boot configurations, understanding how to repair the bootloader is essential. See How to Restore GRUB in My Case? for recovery procedures if the system fails to boot after these changes.

Alternative Targeted Solutions

While blacklisting the entire module is the simplest universal fix, it affects all USB storage devices, including high-performance SSDs that benefit from UAS. If you only want to target specific problematic drives without affecting others, you can use device-specific quirks instead. This requires knowing the Vendor ID and Product ID of the failing device. You can find these IDs by running lsusb and noting the four-digit hexadecimal codes separated by a colon. Then, add a quirk to your GRUB command line:
usb-storage.quirks=VID:PID:u
The :u flag tells the kernel to treat the specified device as a UAS-capable device, but if that fails, it falls back. Alternatively, using :b forces bulk-only transport for that specific ID. This method is more granular but requires manual maintenance whenever new devices are added. For complex scenarios involving ISO booting or partition layouts, refer to Linux Boots Grub - How to Fix a Broken grub.cfg to ensure your configuration syntax remains valid.

Frequently Asked Questions

Does disabling UAS reduce USB speed significantly?

Yes, UAS can offer up to 20-30% better throughput than Bulk-Only Transport due to command queuing. However, for mechanical hard drives or low-quality USB enclosures, the overhead of negotiating UAS often causes latency spikes that make Bulk-Only Transport feel smoother. The speed difference is usually negligible for general file copying tasks.

Can I disable UAS for only one specific USB port?

No, the modprobe.blacklist parameter applies to the kernel module globally, not to individual ports. To target a specific physical port, you would need to use USB hub quirks or switch the device to a different controller, but software-level port isolation is not supported in standard GRUB configurations.

Why did my USB drive disappear after adding the blacklist parameter?

This is unlikely if the configuration is correct. If it happens, check the dmesg logs for errors related to usb-storage. It is possible that the device requires UAS to function at all, though rare. In such cases, removing the blacklist parameter and using specific quirks is the better approach.

Is module_blacklist deprecated in newer kernels?

The modprobe.blacklist mechanism is still active and supported in recent Linux kernels. While some developers prefer using initramfs hooks or udev rules for dynamic management, the GRUB kernel parameter remains a reliable and simple method for static configuration across most distributions.

How do I check if UAS is currently enabled for my device?

You can check the driver bound to your USB device by looking at the sysfs entry. Navigate to /sys/bus/usb/devices/ and find your device directory. Check the driver symlink; if it points to usb-storage, UAS is disabled. If it points to uas, the fast protocol is active.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More