The disk "Foo" is in use and could not be ejected.
Solution (because just ‘lsof’ doesn’t work):
sudo lsof +D /Volumes/Foo
Tadaaa! Creds to Russell Edwards in a comment to an e-scribe blog post.
sudo lsof +D /Volumes/Foo
Tadaaa! Creds to Russell Edwards in a comment to an e-scribe blog post.