Stopping cdrom I/O in case of an read error?
From time to time a CD is not readable (anymore) or a drive becomes defective and generates read errors.
In this case, I was trying to calculate an md5sum over a file on CD (via a console), but I guess a similar problem occurs while copying a corrupt file from CD.
When the faulty part is reached, read error messages are generated by the kernel (V 2.8.6 in this case).
I then tried to stop the process via Ctrl-C and kill -9. Both did no work. The buffer I/O errors on /dev/hdd kept on coming.
After my attempt to kill the process, its status in ps ax changed to D+ (non-interuptible sleep - mostly I/O), which suggests that the application (md5sum) was halted, but the kernel thread doing the cd-rom I/O was still active, trying to read the CD again and again and again and again...
I solved the problem by rebooting the machine - but I am wondering if there is a more dignified way to handle this problem.
|