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?