Who uses the Volume USB / FireWire?
It is a trick which allows to find (at least in part) a response to that question that everyone asks when trying to eject an external drive and MacOSX we replied: "Could of eject the disk because it is used.
Thanks to a command for OS X, you'll finally be able to know what (s) program (s) use the file system
Re: Who uses the Volume USB / FireWire?
The command fs_usage: The present fs_usage display (real time) system calls related to file system. By default, the display activitée the return of all processes other than the process itself fs_usage, Terminal, telnetd, sshd, rlogind, tcsh, csh and sh.
If you open a terminal and you type: sudo fs_usage A list will appear and begin to grow ... And it lasts, and it lasts and lasts ca ... A true Duracell. To stop the command, press Ctrl + C. The list is so long (and is growing) that it is difficult to identify exactly which process access the volume that you wish to eject.
To focus on the volume that we are interested, simply type the following command: sudo fs_usage | grep Nom_Du_Volume It appears then that the process using the designated volume. Example: If your volume (whatever it is: USB , CD, DVD, etc..) is called test, type the command: sudo fs_usage | grep test and you will have all the processes accessing the volume test