看一堆文章 想查出有沒有內建的指令可以取代nautilus內的 [Safely Remove Drive] 按鈕
就是找不到!!!
基本的是umount, eject, unbind或是remove
但都沒有像 [Safely Remove Drive] 那樣連帶把電關掉
echo '4-1' |sudo tee /sys/bus/usb/drivers/usb/bind
echo '4-1' |sudo tee /sys/bus/usb/drivers/usb/unbind
最後還是根據論壇去安裝了 udisks
udisks --detach /dev/sdb
看起來一樣了..... 還是不爽
http://pintant.cat/2012/05/12/power-off-usb-device/
I asked on the linux-usb mailing list (question, see one of the relevant answers (from Alan Stern). In short: not possible. When using a USB hub it’s then maybe possible -some models only-. The answer includes a link to a small program to try to disable the port. I could disable the port, but the device had still power.
http://askubuntu.com/questions/532586/what-is-the-command-line-equivalent-of-safely-remove-drive
沒有留言:
張貼留言