CD oddities with VIA PATA
I'm testing 2.6.19 on this box, and I thought I might as well try
out the Parallel ATA driver for the CD/DVD writer (VIA) since the disk is already handled by libata.
So far, I've found two oddities -
(i.) cdparanoia (9.8) works for root, but for a user it complains that the ioctl isn't cooked and refuses to run. For test purposes, it runs ok for a user as suid root, but I imagine that increases the likelihood of unspeakable things happening. (Fortunately, I don't have a dachshund)
(ii.) As a user, I burned a small (28MB) CD using dvdrecord from dvdrtools-0.3.1, and on a different box I can mount it (using ide-cd) and it seems fine. On this box I can't mount it -
ken@ac30 ~ $mount /media/cdrom/
mount: wrong fs type, bad option, bad superblock on /dev/cdrom,
missing codepage or other error
In some cases useful info is found in syslog - try dmesg | tail or so
The syslog shows
Dec 1 21:17:41 ac30 kernel: attempt to access beyond end of device Dec 1 21:17:41 ac30 kernel: sr0: rw=0, want=68, limit=4 Dec 1 21:17:41 ac30 kernel: isofs_fill_super: bread failed, dev=sr0, iso_blknum=16, block=16
The iso is the gparted-livecd-0.3.1-1.iso.
The problem might be specific to small CDs, I can mount others (41M
of data and more) without difficulty and all of the likely NLS options are selected as =y in my config.
Ken
Signature · 1 line
das eine Mal als Tragödie, das andere Mal als Farce
Quoted 7 lines · Ken Moffat
(i.) cdparanoia (9.8) works for root, but for a user it complains that the ioctl isn't cooked and refuses to run. For test purposes, it runs ok for a user as suid root, but I imagine that increases the likelihood of unspeakable things happening. (Fortunately, I don't have a dachshund)
Forgot to mention the lines in the log from cdparanoia, but I think
these frequent messages are expected:
Dec 1 20:35:53 ac30 kernel: sg_write: data in/out 30576/30576 bytes for SCSI command 0xbe--guessing data in; Dec 1 20:35:53 ac30 kernel: program cdparanoia not setting count and/or reply_len properly
Also forgot the details of the drive, just in case
Dec 1 19:17:14 ac30 kernel: scsi3 : pata_via Dec 1 19:17:14 ac30 kernel: ata4.00: ATAPI, max UDMA/66 Dec 1 19:17:14 ac30 kernel: Losing some ticks... checking if CPU frequency changed. Dec 1 19:17:14 ac30 kernel: ata4.00: configured for UDMA/66 Dec 1 19:17:14 ac30 kernel: scsi 3:0:0:0: CD-ROM LITE-ON DVDRW SHW-1635S YS0G PQ: 0 ANSI: 5 Dec 1 19:17:14 ac30 kernel: sr0: scsi3-mmc drive: 48x/48x writer cd/rw xa/form2 cdda tray Dec 1 19:17:14 ac30 kernel: Uniform CD-ROM driver Revision: 3.20 Dec 1 19:17:14 ac30 kernel: sr 3:0:0:0: Attached scsi CD-ROM sr0 Dec 1 19:17:14 ac30 kernel: sr 3:0:0:0: Attached scsi generic sg1 type 5
Ken
Signature · 1 line
das eine Mal als Tragödie, das andere Mal als Farce
Quoted 6 lines · Ken Moffat
Quoted 5 lines · Ken Moffat
(i.) cdparanoia (9.8) works for root, but for a user it complains that the ioctl isn't cooked and refuses to run. For test purposes, it runs ok for a user as suid root, but I imagine that increases the likelihood of unspeakable things happening. (Fortunately, I don't have a dachshund)
For the record,
cdparanoia III release 10pre0 (August 29, 2006)
works for me. My particular IDE adapter is:
00:0f.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) (prog-if 8a [Master SecP PriP])
I have not tried older versions (yet). Could you try this and see if things are still broken?
Signature · 1 line
Joshua Kwan
Quoted 11 lines · Joshua Kwan
Quoted 6 lines · Ken Moffat
Quoted 5 lines · Ken Moffat
(i.) cdparanoia (9.8) works for root, but for a user it complains that the ioctl isn't cooked and refuses to run. For test purposes, it runs ok for a user as suid root, but I imagine that increases the likelihood of unspeakable things happening. (Fortunately, I don't have a dachshund)
For the record,
cdparanoia III release 10pre0 (August 29, 2006)
Quoted 12 lines
works for me. My particular IDE adapter is:
00:0f.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) (prog-if 8a [Master SecP PriP])
I have not tried older versions (yet). Could you try this and see if things are still broken?
Signature · 1 line
Joshua Kwan
I had tried it, but it turns out my trial used the old installed
libcdda_* libraries. Now that I've got it using the new versions of these, it looks as if 10pre0, with the debian patches, works ok for a normal user (on x86_64 it needs the patch to be able to configure).
Thanks for the pointer. FWIW I can no longer replicate the failure
to mount a CD it had burned, will be doing more tests later.
Ken
Signature · 1 line
das eine Mal als Tragödie, das andere Mal als Farce