Auto swallow and eject cd (from the commandline)
1
vote
1
answer
271
views
I am trying to close and eject cd from the commandline. The purpose is to rip a lot of audio cds with abcde .
I use
eject
and eject -t
commands to open and close the cd drive.
I mount my cdrom with this line in /etc/fstab:
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
The problem is that ejecting the cd means also to unmount it. After the unmount, there is no way to close it.
When I start the computer, eject -t
works and closes the tray. But if I open it again (with eject
) eject -t
does not find /dev/cdrom
because it is not mounted (the tray is open and there is no cd mounted).
Someone sees a simple solution?
P-S : Debian (unstable) system.
Asked by ppr
(1977 rep)
Jul 25, 2017, 03:56 PM
Last activity: Jul 25, 2017, 04:07 PM
Last activity: Jul 25, 2017, 04:07 PM