Here is what I did and the results:
Set of steps 1:
- Do
sudo journalctl -f | tee hub_drive.txt
- Connect the hub+drive to the usb-c port
Result:
Here is the relevant part of hub_drive.txt
:
...
May 10 19:06:37 sys-usb kernel: usb 2-7: new high-speed USB device number 8 using xhci_hcd
May 10 19:06:37 sys-usb kernel: usb 2-7: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=92.26
May 10 19:06:37 sys-usb kernel: usb 2-7: New USB device strings: Mfr=1, Product=2, SerialNumber=0
May 10 19:06:37 sys-usb kernel: usb 2-7: Product: USB2.0 Hub
May 10 19:06:37 sys-usb kernel: usb 2-7: Manufacturer: GenesysLogic
May 10 19:06:37 sys-usb kernel: hub 2-7:1.0: USB hub found
May 10 19:06:37 sys-usb kernel: hub 2-7:1.0: 4 ports detected
Set of steps 2:
- Do
sudo journalctl -f | tee drive.txt
- Connect the drive directly to the usb-c port
Result:
Here is the relevant part of drive.txt
:
...
May 10 19:05:21 sys-usb kernel: usb 3-1: new SuperSpeed USB device number 3 using xhci_hcd
May 10 19:05:21 sys-usb kernel: usb 3-1: New USB device found, idVendor=0bc2, idProduct=3322, bcdDevice= 1.00
May 10 19:05:21 sys-usb kernel: usb 3-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
May 10 19:05:21 sys-usb kernel: usb 3-1: Product: Expansion Desk
May 10 19:05:21 sys-usb kernel: usb 3-1: Manufacturer: Seagate
May 10 19:05:21 sys-usb kernel: usb 3-1: SerialNumber: NA8E5LHZ
May 10 19:05:21 sys-usb kernel: scsi host2: uas
May 10 19:05:21 sys-usb kernel: scsi 2:0:0:0: Direct-Access Seagate Expansion Desk 9401 PQ: 0 ANSI: 6
May 10 19:05:21 sys-usb kernel: sd 2:0:0:0: Attached scsi generic sg0 type 0
May 10 19:05:21 sys-usb kernel: sd 2:0:0:0: [sda] Spinning up disk...
May 10 19:05:21 sys-usb mtp-probe[1528]: checking bus 3, device 3: "/sys/devices/pci0000:00/0000:00:06.0/usb3/3-1"
May 10 19:05:21 sys-usb mtp-probe[1528]: bus: 3, device: 3 was not an MTP device
May 10 19:05:21 sys-usb mtp-probe[1550]: checking bus 3, device 3: "/sys/devices/pci0000:00/0000:00:06.0/usb3/3-1"
May 10 19:05:21 sys-usb mtp-probe[1550]: bus: 3, device: 3 was not an MTP device
May 10 19:05:33 sys-usb kernel: ............ready
May 10 19:05:33 sys-usb kernel: sd 2:0:0:0: [sda] 7814037167 512-byte logical blocks: (4.00 TB/3.64 TiB)
May 10 19:05:33 sys-usb kernel: sd 2:0:0:0: [sda] Write Protect is off
May 10 19:05:33 sys-usb kernel: sd 2:0:0:0: [sda] Mode Sense: 4f 00 00 00
May 10 19:05:33 sys-usb kernel: sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
May 10 19:05:33 sys-usb kernel: sd 2:0:0:0: [sda] Optimal transfer size 33553920 bytes
May 10 19:05:33 sys-usb kernel: sda: sda1
May 10 19:05:33 sys-usb kernel: sd 2:0:0:0: [sda] Attached SCSI disk
From the logs, my hub manufacturer is GenesysLogic. I searched genesys logic linux hub external hard drive
and I have found a post[1] regarding a problem very similar to mine. In that post, the problem occurred on Arch Linux. They fixed it by adding usbcore.autosuspend=-1
to GRUB_CMDLINE_LINUX
and update grub.cfg
. I tried to do the same thing in Qubes, but I still cannot make it work.
Here is what I did and the result:
- Read usb-qubes doc and readapt the steps to my case
- Add
usbcore.autosuspend=-1
to GRUB_CMDLINE_LINUX
in dom0:/etc/default/grub
- Run in dom0:
grub2-mkconfig -o /boot/efi/EFI/qubes/grub.cfg
since there is no grub.cfg
in /boot/grub2
- Reboot
- Do
cat /sys/module/usbcore/parameters/autosuspend
in dom0
Result:
I get -1 as planned
- Do
sudo qubesctl state.sls qvm.sys-usb
- Restart
sys-usb
- Do
cat /sys/module/usbcore/parameters/autosuspend
in sys-usb
Result:
I get 2 instead of -1
- Do
sudo journalctl -f
- Insert the hub+drive
Result:
It shows the same output above (hub_drive.txt
)
- Manually add
usbcore.autosuspend=-1
in grub.cfg
in the template vm used by sys-usb
- Shutdown the template vm
- Restart
sys-usb
- Do
cat /sys/module/usbcore/parameters/autosuspend
in sys-usb
Result:
I get 2 instead of -1
- Do
sudo journalctl -f
- Insert the hub+drive
Result:
It shows the same output above (hub_drive.txt
)
- Unplug the hub
- Do
sudo sh -c 'echo "-1" > /sys/module/usbcore/parameters/autosuspend'
in sys-usb
- Do
cat /sys/module/usbcore/parameters/autosuspend
in sys-usb
Result:
I get -1 as expected
- Do
sudo journalctl -f
- Insert the hub+drive
Result:
It shows the same output above (hub_drive.txt
). It didn’t work in the Arch Linux post[1] either.
- Clone
sys-usb
to sys-usb-clone-1
- Shutdown
sys-usb
- Delete
sys-usb
- Do
sudo qubesctl state.sls qvm.sys-usb
- Start a fresh new
sys-usb
- Do
cat /sys/module/usbcore/parameters/autosuspend
in sys-usb
Result:
I get 2 instead of -1
- Do
sudo journalctl -f
- Insert the hub+drive
Result:
It shows the same output above (hub_drive.txt
)
Questions:
- Am I on the right track with the solution on the Arch Linux Forum[1]?
1.1. If yes, how do I set correctly usbcore.autosuspend=-1
in Qubes OS?
1.2. If no, what should I do to make the Qubes OS detect the drive through th hub?
[1]: Arch Linux forum post: ([solved]My USB 3 hub doesn't see my USB 3 external hard drives anymore / Kernel & Hardware / Arch Linux Forums)