When I use my usb drive within some vm and use “safe removal” or something alike, it does remove the usb drive from the vm, but the usb drive is still kinda active (I see the led indicator on it for example).
With normal linux I never had this and it always turned off once the “safe removal” was done.
What do I need to do before physically unplugging it? Currently I’m just using the “safe removal” and then with led indicator on simply unplug it and hope for the best.
Just click on the USB icon on the panel and “Detach” the USB device from the vm to which it is connected.
Although if you already performed the “safe removal” steps in the vm, it won’t kill your drive if you just unplug it.
No, I don’t have this with all usb. I have a usb stick and yeah, there is a detach thing, but not with other two actual usb drives(like HDD disks).
And once again, the led indicator is still on, on regular systems that’s not the case
Actually, right now I don’t have the detach even for the one I had before
That’s usually not a problem. When you “safely remove” it in a Qube, the kernel unmounts the filesystem and ensures that everything is written to your USB disk. However, if you are using a rotating device, it should be powered off (or stop rotating) before moving it.
In order to power-off the device, you can try udisksctl power-off -b /dev/XXX
in your qube. hdparm -Y /dev/XXX
may help, too.
the udisksctl power-off -b /dev/XXX
indeed did something, but the led is still on.
I do see it in the qui-devices, but sys-usb doesn’t see it with lsblk.