when a disk cannot be ejected due to a process having an open file,
can use:
lsof | grep [disk path part]

to find the process