These instructions are for the debian64 gnome or mate environments. Older environments are not supported.
Once a disk on key or a cdrom has been inserted, a device icon should appear on the left pane of any of the file managers' windows; clicking on it will mount the device. After mounting, an eject icon will appear next to the device, don't forget to eject/unmount the device before removing it.
If there's no device icon, try using the command line instructions.
For these commands to work you must be logged in graphically, even if you are not using a graphical file manager.
After inserting the disk on key or cdrom, wait a few seconds. The device might mount automatically under the /media directory (depending on your environment). If the device isn't mounted, run
mount-cd
or
mount-usb
The mount path under the /media directory will be printed.
To safely remove the device you need to unmount it first by running
umount-cd
or
umount-usb
If that fails (i.e. the directory under /media still exists) make sure there's no opened files on the device by executing:
lsof /media
This will return a list of opened files and the programs which opened them (by you). If there are no opened files on that directory, and it still won't unmount, before brutally removing the device, run sync.
To eject a cd, run:
eject