FedoraThis forum is for the discussion of the Fedora Project.
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.
Problem:
I mount a CD, an I start copying it. If the CD is broken (scratched or whatever ), instead of trying to copy some seconds and then quiting with an error message, my system keeps on trying to read the CD. Therefore I can not unmount and eject the CD unless I restart the computer; I can not kill the process that tries to read the CD either..
This happened on all Red Hat flavors that I have used (now I use FC3). On Mandrake, things worked better from this point of view.
I there any possibility to configure how much time or how many times the system should retry reading the when it meets a I/O error ?
Hi again,
Thanks for your answers.
What I usually try in the described situation is:
lsof /dev/cdrom
I get the PIDs of all processes that use the device and then kill -9 PID
This is similar to your suggestions, but it does not work.
Even after the processes are killed, the umount is frozen, and the CD drive is spinning.
Nevertheless I will try your recommendation as well and give some feedback with the results.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.