On 1/21/22 11:44, Michael Singer wrote:
> Dear Qubes community,
>
> I am trying to permanently mount a hard drive in such a way that it will
> not be removed when I put the computer into suspend mode. Unfortunately,
> it does not work when I do the following:
>
> 1) dom0: qvm-usb attach --persistent example-VM sys-usb:3-3
>
> 2) Open Nautilus in the example-VM and mount the harddisk.
>
> 3) Put the PC into suspend mode.
>
> When the PC wakes up again, the hard disk is no longer accessible as
> sys-usb:3-3, but suddenly as sys-usb:5-3. Accordingly, the Nautilus
I think the problem is that USB negotiates a new address for every
connection ,even when from the same device.
In addition I suspect that your disk is bus-powered, so suspend will
power down your disk also (thus the USB connection is terminated).
Maybe even the OS unmounts the disk when suspending; I'm not sure.
Ulrich