How to eject a USB device (no icon) from a mac to be used in VM

commanddeviceterminalusb

I have a PIC microcontroller that needs to be used as a USB device. I have already succeeded communicating the PIC with my MAC so that is no the issue.
I can even see the device "mounted" with the command "system_profiler SPUSBDataType" that lists all USB devices connected with the computer.
I need this device to be used in a Ubuntu Virtual Machine so I need to be able to "disconnect" this device from the host (mac os) and open in the VM.
How can I "disconnect" a non-iconed usb device from mac so I can "connect" to my VM? Any commands?

THanks a lot…

Best Answer

You should be able to unmount a device on OSX with the umount command:

https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man8/umount.8.html