Am Montag, 23. April 2001 22:27 schrieb Jens Axboe:
Hi folks,
Could everybody with a cd-rw drive try the following program, and see if works (ie produces lba output) or if it complains about I/O error (and dumps a kernel message saying so, please send that too btw).
axboe@burns:~/proggy $ sudo ./trigger_rahead /dev/hdc /dev/hdc: trigger LBA 1024, ra LBA 1050
Thanks
I have an ATAPI CD-RW ( from a supermarket ) which is originally a HP drive and " cat /proc/ide/hdd/model" reports "R/RW 8x4x32". I got no error messages, the output was: root@karl-delp-219:/home/chris > ./trigger /dev/sr0 /dev/sr0: trigger LBA 1024, ra LBA 1050 with ide-scsi loaded ( my default setup for use with cdrecord ) When I start it on the native ATAPI interface, I get instead root@karl-delp-219:/home/chris > ./trigger /dev/hdd ioctl: Input/output error and the follwoing on syslog: Apr 24 14:00:58 karl-delp-219 kernel: VFS: Disk change detected on device ide1(22,64) Apr 24 14:00:58 karl-delp-219 kernel: hdd: packet command error: status=0x51 { DriveReady SeekComplete Error } Apr 24 14:00:58 karl-delp-219 kernel: hdd: packet command error: error=0x50 Apr 24 14:00:58 karl-delp-219 kernel: ATAPI device hdd: Apr 24 14:00:58 karl-delp-219 kernel: Error: Illegal request -- (Sense key=0x05) Apr 24 14:00:58 karl-delp-219 kernel: Invalid command operation code -- (asc=0x20, ascq=0x00) Apr 24 14:00:58 karl-delp-219 kernel: The failed "Set Read-ahead" packet command was: Apr 24 14:00:58 karl-delp-219 kernel: "a7 00 00 00 04 00 00 00 04 1a 00 00 " So perhaps it works with ide-scsi ? -- Vale ! Christianus Auriocus