When switched to command line, repeats "sr0: CD-ROM device not ready" over and over
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When switched to command line, repeats "sr0: CD-ROM device not ready" over and over
Hello all, and thank you in advance for any help.
I got into Debian via Knoppix, but have since upgraded and what-not, so my system is a fairly standard Debian setup, running testing with large chunks of unstable.
I think a recent apt-get upgrade (performed using standard debian.org apt sources) messed up my system though. When in KDE, everything works fine. Konsole also works fine. But when I switch to a command line window, it displays:
sr0: CD-ROM device not ready. Make sure there is a disk in the drive.
Over and over, scrolling up the page slowly. They don't display until I switch over- I can still see, for example, the system start information on the first terminal.
When I put in ANY CD into my CD drive, the errors stop. However, they restart if I subsequently remove the CD.
I have checked- There isn't an error in my fstab file, which is the only thing I could think of off-hand. What else could be causing this strange behavior?
Check and see if you have an automounter running. ( I hate the thing, for exactly the problem you describe, so I've always made a point NOT to install it.) I also have just begun experimenting with Debian (via Libranet), so I'm not sure what the daemon is called in Debian. I'm pretty sure it has "auto" in it, though, so try "ps -ef | grep auto". If you find one, kill it while you're having the problem. If the messages stops, that's your culprit.
What's happening is that its trying every few seconds to mount a CD, so that you don't manually have to enter a mount command. Mandrake has (or had, I know it's been in and out, and I don't know its current status) a thing called "supermount" which made it work a lot like Windows. If the CD is in, its mounted, and if you hit the button, it automatically unmounts it and ejects the CD.
Automount does NOT do that, and it constantly bitches if it can't find a CD, so I shot mine between the eyes.
However, I can't find a process running by grepping for anything like "auto" or "mount".
Any other suggestions on killing this thing? I tried googling for names of automount daemons in debian, but seems like all have mount or auto in their name... hmmm. When I grepped top for "daemon", all it found was atd and portmap.
Originally posted by paradoxdruid I think you've nailed the problem...
However, I can't find a process running by grepping for anything like "auto" or "mount".
Any other suggestions on killing this thing? I tried googling for names of automount daemons in debian, but seems like all have mount or auto in their name... hmmm. When I grepped top for "daemon", all it found was atd and portmap.
Thank you in advance for any additional help.
here's the output of a ps -e
It is called autofs4 and it is being loaded from /etc/modules as autofs so you would want to comment that out, it however works perfectly on my machine.
Also I notice in the list of processes you have running that kscd is there I have had nothing but problems with it so much so that I un-installed you may want to see if that is causing this problem, checking my list of processes running you see that automount is running so I doubt if that is your problem it is not even listed in your processes listed.
Originally posted by paradoxdruid Thank you very much, Happy Tux!
I commented out the autofs line, rebooted, and it's working like a charm.
Seems strange that it works when there was nothing in the processes list I guess it is time to chalk another up for the computer gremlins. Good to hear you got it going BTW and nice to see that you posted the solution in the Knoppix forum for your question there as well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.