23
8
I frequently eject an usb stick, and then realize I still need it.
If I unmount the drive in Disk Utility, I can just remount it, but if I eject, it's gone.
- Not showed in Finder
- Not showed in diskutil
- Not showed in
ls /dev
- Is still showed in System Information under USB.
How can I mount the disk without unplugging and inserting it?
1Had a similar question pop up here for Windows. A way to make that work was to disable the USB root hub the device was connected to and re-enable it, which then initialized the usb stick. A similar methodology may work for this issue, I just am not familiar with the OS in question to guide you through a similar process. – DHayes – 2010-02-19T14:00:55.543
@DHayes @Pepijn - indeed, there are a couple of q's on StackOverflow on the same issue, but they seem to be about Windows. http://stackoverflow.com/questions/916296/how-can-i-cycle-a-usb-device-from-c/919836#919836 .. http://stackoverflow.com/questions/138394/how-to-programatically-unplug-replug-an-arbitrary-usb-device
– quack quixote – 2010-02-19T15:15:16.377the reason the "disable/enable USB root hub" works is because initiating a USB slave device happens when the slave detects it's plugged in, not from the host side. but when you do it to the hub, it forces all the connected devices to disconnect/reconnect. now what you need is a way to identify the hub, disable it, then re-enable it. note this will reset all other devices on that hub. – quack quixote – 2010-02-19T15:20:36.633