LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   why is my cdrom drive tray closing so fast? (https://www.linuxquestions.org/questions/linux-newbie-8/why-is-my-cdrom-drive-tray-closing-so-fast-732639/)

joseph2020 06-13-2009 01:39 AM

why is my cdrom drive tray closing so fast?
 
I thought I'd be smart and backup my Ubuntu setup CD. Taught me how NOT smart I am.

I have a single CDROM drive. When the CD copy is done, the tray automatically comes out, and immediately closes again. There's no time to change to the blank CD. I have tried using both gnomebaker and brassero...same results. Is there a setting I can change somewhere in Linux to change the speed of tray timing?

How do I make it pause 10 seconds before the tray closing?

Thanks in advance

arizonagroovejet 06-13-2009 10:22 AM

So can you not just open the CD tray again to put the blank in?

joseph2020 06-13-2009 04:36 PM

arizonagroovejet, thanks for your reply. If I open the drive and replace the cd it interrupts the copy program and it stops. So, no, I can't just reopen the drive.

nigelc 06-13-2009 10:25 PM

it could be a bad contact where the drawer opens. or just a bad tempered cd dvd/drive
Boot the system & go in to the bios & see if it still does it.

joseph2020 06-14-2009 01:39 AM

nigelc, thank you for your ideas

Quote:

it could be a bad contact where the drawer opens
It works perfectly manually...push the button and it works, so I don't suspect a bad contact.
Quote:

Boot the system & go in to the bios & see if it still does it.
Am I missing something or did you forget something? reboot and go into the bios...OK, then what do I change in the bios?

azc 06-14-2009 09:49 AM

As a work around, you may want to first make an image of the CD. Something like this:

Code:

dd if=/dev/scd0 of=filename.iso
(Remember to replace '/dev/sdc0' with your specific device.)

And then burn the ISO using whatever application you normally use.

This does not address the open/close issue, but you may at least get your backup copy.

jamescondron 06-14-2009 10:06 AM

What does the command
Code:

eject
do for you? The programme you're using will either be using the same call that eject does, and if it does, then 'eject' will do the same, or uses their own, and if eject works fine, then it indicates a bug.

If a bug, file a report and script a solution using dd, perhaps something like:
Code:

#!/usr/bin/env bash

echo "Please unmount CD first"

dd if=/dev/scd0 of=/tmp/.scd_copy
eject
echo "Change Disk, hit anykey to continue"
read k
dd if=/tmp/.scd_copy of=/dev/scd0
rm /tmp/.scd_copy
exit

and run as root, replacing /dev/scd0 for your CDROM drive, should it be different (Essentially an extension of what azc said).

If not a bug, don't file a report, theres a problem on your system which is going to be a ballache to fix. In which case, use the above code, without the 'eject' and manually eject.

joseph2020 06-19-2009 02:16 AM

jamescondron, thank you for you informative reply:
Quote:

#!/usr/bin/env bash
azc, thank you for your easy to implement and functional answer.

Code:

dd if=/dev/scd0 of=filename.iso


All times are GMT -5. The time now is 02:21 PM.