As indicated in the comments, this problem is probably the same as https://superuser.com/questions/1343049/dvd-drive-opening-automatically
My alternative solution to avoid changing systemd is by simply inserting a '0' into /proc/sys/dev/cdrom/autoeject
Pick one:
Using rc.local: ( edit file /etc/rc.local )
echo 0 > /proc/sys/dev/cdrom/autoeject
Or using /etc/crontab: ( edit file /etc/crontab )
@reboot root echo 0 > /proc/sys/dev/cdrom/autoeject
Then as a one-time, non-persistant across boots, command line use sudo:
echo 0 | sudo tee /proc/sys/dev/cdrom/autoeject
Which will take effect immediately. No sysctl or service file restart. needed... On the next boot, the modifications to rc.local or /etc/crontab.
will take effect, inhibiting the AutoOpen function.
sudo eject -v -a off
to your question? – Eduardo Trápani May 12 '20 at 04:26cdrom' eject: device name is
cdrom' eject: expanded name is/dev/cdrom' eject:
/dev/cdrom' is a link to/dev/sr0' eject:
/dev/sr0' is not mounted eject:/dev/sr0' is not a mount point eject: disabling auto-eject mode for
/dev/sr0' govind@Saras:~$ – Govind Soundararajan May 12 '20 at 04:30