Subject: DVD-R Burning and Reading
To: None <netbsd-users@netbsd.org>
From: None <brendon@christian.net>
List: netbsd-users
Date: 01/08/2006 19:35:42
Hi All,

    I have just recently purchased a DVD burner for my PC that is running NetBSD 2.1 and i am having difficulties burning a DVD and then reading from it.

I have managed to burn DVD's with the burner and it seems they are OK as i can read them from Windows, however i am unable to read them in NetBSD.

When i mount the burnt DVD:
mount -t cd9660 /dev/cd1a /mnt/cdrom1

I get the following errors:

Jan 10 01:19:20 merlin /netbsd: cd1(viaide0:1:0): Check Condition on CDB: 0x28 00 00 00 00 2c 00 00 01 00
mount_cd9660: /dev/cd1a on /mnt/cdrom1: Input/output error
bash-3.00# Jan 10 01:19:20 merlin /netbsd: SENSE KEY: Hardware Error
Jan 10 01:19:20 merlin /netbsd: ASC/ASCQ: Logical Unit Communication CRC Error
Jan 10 01:19:20 merlin /netbsd:

Needless to say the mount fails, however if i try to mount it again, it tells me that the device is busy. I need to restart the machine in order to get it to attempt to re-mount the drive (Which fails anyway).

Has anyone experienced this problem before or know what could be the possible cause and solution?

Here are some (Possibly) relevant bits on information from dmesg.
celeron 633
VIA VT82C691 (Apollo Pro) Host-PCI
cd1 at atapibus1:drive 0: <PIONEER DVD-RW DVR-110, EJDL013503WL, 1.37>
cd1: Drive supports PIO mode 4, DMA mode 2, Ulttra-DMA mode 4 (Ultra/66)
cd1(viaide0:1:0): Using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)


I just tried mounting a different DVD-R that i had burnt in the past and it successfully mounted however i was unable to read all of the DVD, only parts of it. The structure of this DVD is:

/mnt/cdrom1/i386/All/(Heaps of binary packages).tbz

When i mounted the DVD i could successfully execute the following directory list commands:
ls /mnt/cdrom1
ls /mnt/cdrom1/i386

But could not execute:
ls /mnt/cdrom1/i386/All

If i tried i would get the following error:
bash-3.00# ls /mnt/cdrom1/i386/All
Jan 10 01:36:39 merlin /netbsd: cd1(viaide0:1:0):  Check Condition on CDB: 0x28 00 00 00 00 1f 00 00 01 00
Jan 10 01:36:39 merlin /netbsd:     SENSE KEY:  Hardware Error
Jan 10 01:36:39 merlin /netbsd:      ASC/ASCQ:  Logical Unit Communication CRC Error
Jan 10 01:36:39 merlin /netbsd:
bash-3.00# Jan 10 01:36:40 merlin /netbsd: cd1(viaide0:1:0):  Check Condition on CDB: 0x28 00 00 00 00 1f 00 00 01 00
Jan 10 01:36:40 merlin /netbsd:     SENSE KEY:  Hardware Error
Jan 10 01:36:40 merlin /netbsd:      ASC/ASCQ:  Logical Unit Communication CRC Error
Jan 10 01:36:40 merlin /netbsd:

Could these errors be caused by a corrupt or invalid DVD ISO image i am making with mkisofs? Or incorrect burning with cdrecord? Or is it more likely a problem with NetBSD itself?

If this is a problem with using mkisofs/cdrecord (Is am using the OSS DVD versions from pkgsrc) then i will go and askquestions somewhere else that may be more appropiate. The reason i think it is a NetBSD problem though is because i can successfully read the contents of the DVD's in Windows.

If anyone has any help for this situation it would be greatly appreciated.

Thanks,
Brendon.