Sample Header Ad - 728x90

help using bind/unbind to power on/off USB drive

1 vote
1 answer
4813 views
I'm trying to power on/off an USB drive using bind/unbind command following this post , can someone please point me to the right direction where to find tutorial/explanation on bind/unbind usb drive (found some posts but very old and commands are deprecated and I'm not that knowledgeable about linux to understand everything in man)? what I can't figure out is how to find the bus-port number in this sample echo command
echo '1-2.2:1.0' > /sys/bus/usb/drivers/r8712u/bind # switch on in my case, I think I have to change the driver to usb-storage, so the command would be echo '?-?.?:?.?' > /sys/bus/usb/drivers/usb-storage/bind # switch on which command should I use to find the bus-port?
Asked by michaelbr (111 rep)
Mar 4, 2022, 01:31 PM
Last activity: Oct 10, 2023, 07:08 AM