Skip to contentSkip to conversation

Reading Bad DVD Under 2.6.10 freezes the box.

DISCUSSION Justin Piszcz 5 participants 8 messages Feb 7, 2005 – Feb 11, 2005

lore
Share & tools
lore
#0 lore raw

I have a DVD where I have three files on it, (1.7gb,1.7gb,900mb).

On W2K, when I try to copy the second file, I get a BadCRC error message.

Under Linux, I copy up to about 860MB (watched via pipebench) and then it freezes the machine, I cannot ping or get to it or do anything on the console; instead, I am forced to hard reboot.

Main Question >> Why does Linux 'freeze up' when W2K gives a BadCRC error msg (never freezes)?

The DVD FS is Joilet+ISO (hence, why none of the files are bigger than 2GB), is this normal? Or is there no checking code when there are errors on DVD's to kill the read/etc so it does not freeze the box?

Thanks.

#1 lore raw
Quoted 6 lines · Justin Piszcz

I have a DVD where I have three files on it, (1.7gb,1.7gb,900mb).

On W2K, when I try to copy the second file, I get a BadCRC error message.

Under Linux, I copy up to about 860MB (watched via pipebench) and then it freezes the machine, I cannot ping or get to it or do anything on the console; instead, I am forced to hard reboot.

Okay. You need to provide linux-kernel with the kind of CD, and the drivers installed to support it.

Quoted 1 line

Main Question >> Why does Linux 'freeze up' when W2K gives a BadCRC error msg (never freezes)?

Of course it should not. However, there were many incomplete changes made in 2.6.nn and some may involve problems with locking, etc.

For instance an ioctl() call in 2.6.10 occurs with a kernel lock being held. A lot of CD I/O is handled using ioctl() functions. There may be an incompatibility (called a race) with certain things that wait in the driver when the BKL (kernel lock) is held.

Quoted 5 lines

The DVD FS is Joilet+ISO (hence, why none of the files are bigger than 2GB), is this normal? Or is there no checking code when there are errors on DVD's to kill the read/etc so it does not freeze the box?

Thanks.
-

If possible, reboot your system with 2.4.20-or-greater and see if the CD subsystem behaves properly with a bad CD.

Cheers,
Dick Johnson
Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips).
Notice : All mail here is now cached for review by Dictator Bush.
98.36% of all statistics are fiction.

#2 lore raw
Quoted 5 lines · linux-os
Quoted 2 lines

Main Question >> Why does Linux 'freeze up' when W2K gives a BadCRC error msg (never freezes)?

Of course it should not. However, there were many incomplete changes made in 2.6.nn and some may involve problems with locking, etc.

I don't remember a version of the kernel gracefully handling scratched CD/DVD.

Xav

#3 lore raw

Yeah, I can try 2.4.29 later tonight; also, the DVD is not scratched, just formatted with Joilet/ISO instead of UDF (which is what should be used on DVDs).

However, dd if=/dev/hdh of=file.img
Even with bs=1 for 1 byte at a time, there seems to be no way to get the data off, however...

With the dd, last time I tried it, it just fails. When I use cp to try and copy the file, it freezes the machine.

This is all under 2.6.10 with a Toshiba 16X DVD-ROM (I can get model number later.)

Quoted 14 lines · Xavier Bestel
Quoted 5 lines · linux-os
Quoted 2 lines

Main Question >> Why does Linux 'freeze up' when W2K gives a BadCRC error msg (never freezes)?

Of course it should not. However, there were many incomplete changes made in 2.6.nn and some may involve problems with locking, etc.

I don't remember a version of the kernel gracefully handling scratched CD/DVD.

Xav

#4 lore raw
Quoted 10 lines · Justin Piszcz

Yeah, I can try 2.4.29 later tonight; also, the DVD is not scratched, just formatted with Joilet/ISO instead of UDF (which is what should be used on DVDs).

However, dd if=/dev/hdh of=file.img
Even with bs=1 for 1 byte at a time, there seems to be no way to get the data off, however...

With the dd, last time I tried it, it just fails. When I use cp to try and copy the file, it freezes the machine.

Does it work with ide-scsi ?

Xav

#5 lore raw
In reply to Xavier Bestel
Quoted 5 lines · Xavier Bestel

Le lundi 07 f��vrier 2005 �� 08:05 -0500, linux-os a ��crit :

Quoted 3 lines
Quoted 2 lines

Main Question >> Why does Linux 'freeze up' when W2K gives a BadCRC error msg (never freezes)?

Quoted 8 lines
Quoted 2 lines

Of course it should not. However, there were many incomplete changes made in 2.6.nn and some may involve problems with locking, etc.

I don't remember a version of the kernel gracefully handling scratched CD/DVD.

Xav

Well cdparanoia will read, analyze/rip, and reject trashed CDs without ever hanging the Linux-2.4.22 kernel, but will immediately hang linux-2.6.10.

Basically, when you start getting the kernel error messages on linux-2.4.22, you can ^C out and everything will quiet down. With Linux-2.6.10, nothing entered from the keyboard will do anything. Since the Caps-Lock key still functions, interrupts are still active. However, it is likely the kernel-lock that prevents signals (like ^C or ^/) from being executed.

Cheers,
Dick Johnson
Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips).
Notice : All mail here is now cached for review by Dictator Bush.
98.36% of all statistics are fiction.

#6 lore raw
Quoted 2 lines · linux-os

Basically, when you start getting the kernel error messages on linux-2.4.22, you can ^C out and everything will quiet down.

Not in my experience.

Quoted 4 lines

With Linux-2.6.10, nothing entered from the keyboard will do anything. Since the Caps-Lock key still functions, interrupts are still active. However, it is likely the kernel-lock that prevents signals (like ^C or ^/) from being executed.

Speculations aside, I have found only one sure way of breaking the eternal kernel-hang if you make the mistake of inserting a bad CD into your drive; Needlehole eject.

Sure, the kernel will spit loads of error messages at you, but atleast it wont be hung anymore, you can save work and reboot.

For eternal hangs when burning CDs though, I've found the only reliable way of unhanging the system is to unplug power to the CD burner and replug it. This seems to cause some amount of disk corruption to the master device on the same IDE channel though, so I guess if you have two harddrives, like me, it is a hard choice between risking corruption on both, and risking corruption on one.

HTH

#7 lore raw
In reply to Justin Piszcz

Hi Justin ;),

Quoted 2 lines · Justin Piszcz

Main Question >> Why does Linux 'freeze up' when W2K gives a BadCRC error msg (never freezes)?

I don't know, but i can reproduce it too. I complained several months ago about the problem (in 2.6.7/2.6.8 time) but nobody seemed to care :-/.

I think i still got the bad DVD, to try to reproduce the probelm in 2.6.10.

Quoted 2 lines

The DVD FS is Joilet+ISO (hence, why none of the files are bigger than 2GB), is this normal?

Mine was Rockridge. It seems the contents are not important. The problem is reproducible with any broken/scratched DVD.

regards,

Signature · 1 line
David Gómez                                      Jabber ID: [email protected]