How can I force UAS mode for 2.5 SSD ugreen controller that I know works with UAS enabled?
the SSD itselt is a MX500 1TB Crucial, but its set to usb-storage mode rather than UAS
I think this is an issue that concern Raspi devices and you should raise the question on their support. Umbrel is not dealing with hardware issues.
Can I not add something to ignore the blacklist within the usb storage umbrel scripts? Cmdline.txt quirks is the usual method to blacklist a controller id, but umbrels scripts take over.
As per this entry
External storage service logs
– Logs begin at Sun 2022-03-20 14:43:41 UTC, end at Sun 2022-03-20 15:46:41 UTC. –
Mar 20 14:43:46 umbrel systemd[1]: Starting External Storage Mounter…
Mar 20 14:43:46 umbrel external storage mounter[500]: Running external storage mount script…
Mar 20 14:43:46 umbrel external storage mounter[500]: Found device “CT1000MX 500SSD1”
Mar 20 14:43:46 umbrel external storage mounter[500]: Blacklisting USB device IDs against UAS driver…
Mar 20 14:43:46 umbrel external storage mounter[500]: Rebinding USB drivers…
Mar 20 14:43:46 umbrel external storage mounter[500]: Checking USB devices are back…
Mar 20 14:43:46 umbrel external storage mounter[500]: Waiting for USB devices…
Mar 20 14:43:47 umbrel external storage mounter[500]: Waiting for USB devices…
Mar 20 14:43:48 umbrel external storage mounter[500]: Waiting for USB devices…
Mar 20 14:43:49 umbrel external storage mounter[500]: Checking if the device is ext4…
Mar 20 14:43:49 umbrel external storage mounter[500]: Yes, it is ext4
Mar 20 14:43:50 umbrel external storage mounter[500]: Checking if device contains an Umbrel install…
Mar 20 14:43:50 umbrel external storage mounter[500]: Yes, it contains an Umbrel install
Mar 20 14:43:50 umbrel external storage mounter[500]: Bind mounting external storage over local Umbrel installation…
Mar 20 14:43:50 umbrel external storage mounter[500]: Bind mounting external storage over local Docker data dir…
Mar 20 14:43:50 umbrel external storage mounter[500]: Bind mounting external storage to /swap
Mar 20 14:43:50 umbrel external storage mounter[500]: Bind mounting SD card root at /sd-card…
Mar 20 14:43:50 umbrel external storage mounter[500]: Checking Umbrel root is now on external storage…
Mar 20 14:43:51 umbrel external storage mounter[500]: Checking /var/lib/docker is now on external storage…
Mar 20 14:43:51 umbrel external storage mounter[500]: Checking /swap is now on external storage…
Mar 20 14:43:51 umbrel external storage mounter[500]: Setting up swapfile
Mar 20 14:43:58 umbrel external storage mounter[500]: Setting up swapspace version 1, size = 4 GiB (4294963200 bytes)
Mar 20 14:43:58 umbrel external storage mounter[500]: no label, UUID=“””
Mar 20 14:43:58 umbrel external storage mounter[500]: Checking SD Card root is bind mounted at /sd-root…
Mar 20 14:43:58 umbrel external storage mounter[500]: Starting external drive mount monitor…
Mar 20 14:43:58 umbrel external storage mounter[500]: Mount script completed successfully!
Mar 20 14:43:58 umbrel systemd[1]: Started External Storage Mounter.
UAS is enabled on firmware of usb-to-sata controler. Maybe a firmware update is needed.
But not always good to force max speed, as this will require more amperage to SSD, that can bring big issues.
Would UAS disable for all controllers?
The controller is fine in raspberry OS, and raspiblitz with usb.force enabled
If you detect that your disk drive is not recognized, is blacklisted, is not accessible, enter SSH and run de debug logs:
~/umbrel/scripts/debug
At the end of the log you will obtain a link where the log was uploaded. Open it and see the lines about your USB drive (" External storage service logs" section).
If you see:
Blacklisting USB device IDs against UAS driver...
USB devices weren't registered after 10 tries...
then, try this command using SSH access:
sed -i 's/ blacklist_uas/ #blacklist_uas/g' /home/umbrel/umbrel/scripts/umbrel-os/external-storage/mount && sudo reboot
After that, check again your USB cabling connection and restart normally your node. Wait until the node is catching up with the blocks, it will take a while, be patient.
Its the controller rather than ssd,
It switches drivers as per the debug portion above but I want to force it to use UAS since I know for certain it works
Ive run that cmd also but that hasn’t helped. lsusb -t us still usb-storage mode
Upon looking at the mount script I can confirm its blacklisting all controllers so UAS is disabled.
Maybe I comment that that out see what happens!
Nice experiment, would like to see your report. If it get enabled, may need a long term observing, months, to see if things are reliable. And more impacting to those using 2TB SSD, I often see people here with them, with issues.
Strange, your logs don´t show any UAS blacklisted.
You can see if you have any uas device with command “lsusb -t”
If you have a uas usb controler, it will be “Class=Mass Storage, Driver=uas”
if Driver=usb-storage, usb device is not uas, obviouslly.
Mar 20 14:43:46 umbrel external storage mounter[500]: Blacklisting USB device IDs against UAS driver…
It is
It returns a message like “Device ID nnnn blacklisted”, but it not shown in your logs.