You are not logged in.
Pages: 1
Hello guys,
to be able to eject a disk after pressing the eject-button of my cd/dvd drive I have to unload/load the modules manually with the following commands:
rmmod sr_mod
rmmod cdrom
modprobe cdrom lockdoor=0
modprobe sr_mod
After that I can eject it without any problems. I thought I can automatise this by adding options cdrom lockdoor=0 to /etc/modprobe.d/modprobe.conf and finally load the modules in my /etc/rc.conf like the following:
MODULES=([...] "cdrom lockdoor=0" sr_mod)
But it still doesn't work. What's wrong?
Thank you in advance.
Offline
Wow, that's really an advanced way to do something that should be so simple.
What makes it so you have to do all of that?
Offline
Is "cdrom" compiled into your kernel, or a module in /lib/modules/ ?
If it's compiled into your kernel, then you need to specify lockdoor a different way:
In /boot/grub/menu.lst, add this to the kernel line:
cdrom.lockdoor=0
The reason that this is done in a different way is that it confuses the heck out of us. There's no other reason
Offline
Don't put the option in the MODULES array - use /etc/modprobe.d/* only.
Offline
Hello guys,
thank you for your answers.
In /boot/grub/menu.lst, add this to the kernel line:
cdrom.lockdoor=0
This seems to be enough to get it working. I checked it. But why is this done via kernel parameter and not with modprobe.d? It's even not necessary to have an entry in modprobe.conf.
Offline
why is this done
Linux isn't designed to be user/newbie friendly. That's the reason, in a nutshell
Offline
Possible explanation: if you're loading the cdrom module in your initramfs image, that would happen before /etc/modprobe.d/* is available, so the option would not be applied. The fix is to include the modprobe.d files in the FILES section of your mkinitcpio.conf.
Offline
orschiro wrote:why is this done
Linux isn't designed to be user/newbie friendly. That's the reason, in a nutshell
I see you are going through a phase of discovery. I too fall prey to such revelations of clarity, which often manifest themselves in the most forthright and cynical reality imaginable.
I think I might like being a dreamer better.
Offline
The fix is to include the modprobe.d files in the FILES section of your mkinitcpio.conf.
But that's the strange thing, it is already included.
OK... you didn't say anything about your initramfs up to this, hence my suggestion.
Offline
Pages: 1