Sorry, I can't help you, but perhaps there's a better way to eject a CD. I don't know how Debian currently does mount those drives, but perhaps this isn't outdated: http://www.crazysquirrel.com/computing/debian/unmounting.jspx