Mac - dvd drive not visible in Finder


In MAC, the dvd drive gets listed in finder only if a dvd is present. Else it's hidden.
In some rare cases, even after you inserted a drive, the disk might not be visible in finder and since there is no eject hardware button near the DVD, there doesn't seem to be a way for removing the disk.

Browsing around, found the following ways (from multiple sources) to eject the disk and re-insert it:

  1. Force restart finder.
  2. Open disk utilities (Applications/Utilities/DiskUtility) and the drive should be available there. Right click on it and select eject.
  3. Command line always rocks. Run the following in a terminal: drutil tray eject