I'd like to disable my CD/DVD drive so that it doesn't spin up every time I select Save in my Kate editor, or select a file-accessing action in other applications. The spinning up just delays what I'm doing, and I'm not even using the DVD drive.
I want to leave the CD in the drive, and not have it spin up.
I found a website that said a udev rule will definitely disable the drive.
So far, I've tried the following 2 rules (separately), but neither of them disable the DVD drive (it still spins up - even when not mounted):
ENV{ID_SERIAL}=="PIONEER_DVD-RW_DVRTD11RS_SAC1009942", ENV{UDISKS_IGNORE}="1"
KERNEL=="sr0",ENV{UDISKS_IGNORE}="1", RUN+="/bin/touch /home/peter/udev-rule-ran"
The RUN+
in the second instance, creates my test file "udev-rule-ran", so this tells me that my rule file is being executed, and that the rule line is being run.
## My Question:
Could you tell me what I should be doing to definitely disable the darned DVD drive? I also want to be able to enable the drive again on the occasions that I need it.
## Supplementary Details:
I'm trying very hard to write a udev rule to disable my CD/DVD drive. I've tried various non-udev methods to disable it but none of them work.
There is no loaded module¹⁾ for the drive that I can unload, so I can't use that method to disable the drive.
*¹⁾ So I think the driver must be compiled into the kernel.*
Asked by dave
(31 rep)
Feb 5, 2017, 09:17 PM
Last activity: Jul 17, 2025, 12:04 AM
Last activity: Jul 17, 2025, 12:04 AM