LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 08-21-2005, 08:53 AM   #1
vimico
Member
 
Registered: Jan 2004
Distribution: Debian, Ubuntu
Posts: 118

Rep: Reputation: 15
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.
 
Old 08-22-2005, 02:56 AM   #2
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Rep: Reputation: 31
umount -l /dev/cdrom
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
input/output error cdrom read error oobe Linux - Laptop and Netbook 1 04-01-2006 02:08 AM
Why are all my upper case files being shown as lower case?? [Kernel 2.6.9-1.667 FC3] t3gah Fedora 4 03-11-2005 04:09 PM
Stopping recursive make's on error Meatwad Programming 0 04-28-2004 05:31 PM
CDROM Read or access error... streamalot Linux - Newbie 3 02-21-2002 10:11 PM
kscd CDROM read or access error falcon56215 Linux - General 0 01-25-2002 06:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration