View Full Version : Problem with DVD drive
jpaulb
07-02-2006, 08:39 PM
As soon as Linux boots the DVD drive tray opens.
If I insert a CD or DVD and close the tray manually it closes and opens right away. the Disk is not mounted
I saw a setting eject on unmount some where in either GNOME or KDE I think that is the problem, can't find that setting again.
Anyone have any insite.
bluesdog
07-03-2006, 04:19 AM
Does this happen in both KDE and Gnome?
jpaulb
07-03-2006, 07:23 AM
Does this happen in both KDE and Gnome?
Yes every one of them. There was a setting some where :?: eject on unmounted or not mounted drive.
People are starting to use the open bay as a coffee cup holder
bluesdog
07-04-2006, 12:02 AM
Does it occur if you boot in single user mode?
I wonder if there is a relevant cdrom module command.
Here's what my system reports for possible cdrom module commands:/sbin/modprobe -c | grep cdrom
alias ide:*m-cdrom* ide_cd
alias symbol:cdrom_get_last_written cdrom
alias symbol:cdrom_media_changed cdrom
alias symbol:unregister_cdrom cdrom
alias symbol:cdrom_get_media_event cdrom
alias symbol:cdrom_mode_select cdrom
alias symbol:cdrom_number_of_slots cdrom
alias symbol:register_cdrom cdrom
alias symbol:cdrom_release cdrom
alias symbol:cdrom_open cdrom
alias symbol:init_cdrom_command cdrom
alias symbol:cdrom_ioctl cdrom
alias symbol:cdrom_mode_sense cdrom
tom_servo
07-04-2006, 05:57 AM
There is a function that will eject a CD drive automatically when the device file for that drive is used, then closed (which would happen when it is mounted, and umounted, or when checking to see if a CD is in the drive). This was potentially convenient in the days before udev, but when udev checks for a disk in the drive, it triggers an eject. You can turn that off this automatic eject with "eject -a 0 /dev/hdc" but use in place of hdc your CD drive's device name.
Alain
jpaulb
07-04-2006, 07:13 AM
There is a function that will eject a CD drive automatically when the device file for that drive is used, then closed (which would happen when it is mounted, and umounted, or when checking to see if a CD is in the drive). This was potentially convenient in the days before udev, but when udev checks for a disk in the drive, it triggers an eject. You can turn that off this automatic eject with "eject -a 0 /dev/hdc" but use in place of hdc your CD drive's device name.
Alain
eject -a 0 /dev/hdc That worked, however at reboot it starts all over again. Is there a way disable this feature at boot time?
tom_servo
07-05-2006, 05:13 AM
I don't know why that would be on at boot, unless one of your init scripts is turning it on, so lets look there. Run these commands cd /etc/init.d
grep -w eject * which should show any init files containing the word eject. If any are shown, check that file for why it would be running eject, and if that can easily be disabled without breaking things.
If that doesn't show anything, we will want to see where in the boot process it is failing. To do that, we will interrupt the boot process, and then manually step through it. For these commands you will need to be root. cd /etc/rc2.d
ln -s ../init.d/single S01single
Then reboot. The boot will stop, and ask for the root password. If the CD drive ejects before this point, the script turning on the auto eject is probably in the /etc/rcS.d directory. If not, cd to /etc/rc2.d, and run the programs you see there one at a time, in numeric order, with the 'start' argument. Like this ./S10sysklogd start Keep going until one of these causes the CD drive to eject. When you have figured out which one is the cause of the problem, remove /etc/rc2.d/S01single so that your system will boot like normal.
The third option is to add eject -a 0 /dev/hdc to the init scripts. Again this will require that you be root. cd /etc/init.d
echo "eject -a 0 /dev/hdc" > dont_eject
chmod a+x dont_eject
cd ../rc2.d
ln -s ../init.d/dont_eject S80dont_eject
Alain
jpaulb
07-13-2006, 08:54 AM
Little slow on my part.
I haven't found anything in init.d or rcx.d to point to the eject problem .
Your suggestion on how to close the bay work,
Since Linux lacks the Window feature of rebooting ever few hours, I'll probably go months before a reboot is needed.
Thanks for the help.
vBulletin® v3.7.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.