I have a backup script that backs up some data to a USB device. The problem I have is that OSX sometimes changes the expected mount path. For example if some file is locked under the expected mount path, OSX mounts it on another path.
Users who have made the move to os x from os 9 can find device drivers for their usb and firewire webcams as well as a number of 802.11b wireless cards at ioxperts. The company has released a. Activate/Deactivate USB connected device If I am able to deactivate or unattach or disable the driver that is responsible for controlling the usb web cam that I have in my Mac mini, the virtualization program (VBox) would be able to capture it (already configured with the appropriate filter) for my guest OS.
A USB device named 'BACKUP' can be mounted at /Volumes/BACKUP-1 instead of /Volumes/BACKUP. Is there a way to finding out the current mount path of a USB device in the OSX Terminal? Something like 'mountpath BACKUP' (command is fake) which would then return '/Volumes/BACKUP-1' or nothing if the device was not mounted? The following commands show you information about mounted volumes:.
![Mac Mac](https://i.stack.imgur.com/LMa7A.png)
The well-known Unix mount, showing e.g. /dev/disk5s3 mounted at /Volumes/Foo. diskutil list shows an overview of all disks and volumes. diskutil info /dev/disk5s3 shows information about that volume, including a Volume UUID that can be used to uniquely identify that volume. What about this command: df -lH grep 'Filesystem'; df -lH grep '/Volumes/.'
In the column 'Mounted on' you get all the Mount Points of all devices mounted on '/Volumes', which in my case are almost always USB devices;-) The grep commands basically skip the hard drive which is mounted on '/'. In the terminal of my OSX Snow Leopard, I use it for quick overview of the Mount Points of my currently connected USB Devices. If you are only interested in Mount Points and not all the other parameters as UUID etc., this would be in my opinion the more straight forward way rather than 'diskutil' with all its information. Dennis, welcome to Super User. A couple of the other answers aren't good examples, but the goal of answers is to educate rather than just provide cut and paste code.
I'm not a coder, so I can't address how good your solution might be, but I suspect bertieb's comment, and perhaps the downvote, go to the fact that this is just unexplained code, rather than to the quality of solution. Can you add a few sentences to explain what this does, and what makes it a better solution than whatever you were comparing it to? – Apr 27 '17 at 19:08.