volname

ejects CDs and operates CD-Changers under Linux

Install

All systems
curl cmd.cat/volname.sh
Debian Debian
apt-get install eject
Ubuntu
apt-get install eject
image/svg+xml Kali Linux
apt-get install eject
CentOS
yum install eject
Windows (WSL2)
sudo apt-get update sudo apt-get install eject
OS X
brew install eject
Raspbian
apt-get install eject

eject

ejects CDs and operates CD-Changers under Linux

This little program will eject CD-ROMs (assuming your drive supports the CDROMEJECT ioctl). It also allows setting the autoeject feature. On supported ATAPI/IDE multi-disc CD-ROM changers, it allows changing the active disc. You can also use eject to properly disconnect external mass-storage devices like digital cameras or portable music players.