I’ve been attaching USB storage devices without issue but in the last two days I’m unable to attach certain USB sticks as well as my internal SD card reader (which uses USB internally). Other USB sticks still work fine. This behavior is consistent across two different Qubes systems. Has anyone else run into this?
Do you have some error when you try to attach the USB device to the qube?
Or what issue do you have with it?
When I attach the device from the “USB Devices” list, it seems to attach there but the corresponding devices in the “Data (Block) Devices” list are removed and the device never appears as /dev/sd* or in Thunar. I checked dmesg but there doesn’t seem to be anything interesting there.
Check the output of sudo fdisk -l
to see if the /dev/sd* device is present there.
Or check if there are /dev/sd* devices available using ls /dev/sd*
command.
Run this command in both sys-usb and in the destination qube’s terminals:
sudo journalctl -f -n0
Then try to attach the USB device from sys-usb to the destination qube and check the log output in the terminals to see what happens.
I tried the problematic USB stick in a non-Qubes Linux system and it works fine there.
/dev/sda does eventually appear in the filesystem but /dev/sda1 does not.
I used journalctl and looked carefully at the difference in output between the working USB stick and the non-working one. Qubes seems to have trouble communicating with the non-working one:
sd 0:0:0:0: [sda] Asking for cache data failed
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=DID_TIME_OUT driverbyte=DRIVER_OK
sd 0:0:0:0: [sda] Sense not available.
There are also many of these which don’t appear with the working USB stick:
vhci_hcd: unlink->seqnum 550
vhci_hcd: urb->status -104
usb 1-1: SetAddress Request (3) to port 0
usb 1-1: reset SuperSpeed USB device number 3 using vhci_hcd
I switched from kernel 6.6.54 to 6.6.21 but the behavior is the same.
I had a similar issue recently with drives attaching and then detaching. I fixed it by changing kernel in advanced settings for sys-usb from 6.6.54 to 6.6.42 and then restarting the qube
Are you by any chance trying to attach read only?
@corny that’s it! I had tried an older kernel in the qube I was attaching the USB device to but I should have been doing so in sys-usb.
I’m seeing the same problem with my old Kindle Paperwhite 2 (1949:0004). I can confirm 6.6.48 works while on 6.6.54 qvm-usb at
produces bunch of read/seek/reset error messages on destination qube and nothing on sys-usb where I fiddled with kernel versions.
I’m also using direct attach on Realtek Ethernet built in my USB hub (0bda:8152) and that works fine under any kernel.