packet writting: cdrwtool -d /dev/hdc -q failed
hi all, I followed the document on http://linuxfromscratch.org/pipermail/hints/2002-August/001207.html and tried to carry on packet writting, but failed even when making disk quick setup. my cd writer: CD-W224EA, ATAPI CD/DVD-ROM drive linux kernel 2.4.23 download the patch packet-2.4.23.patch.bz2 from http://w1.894.telia.com/~u89404340/patches/packet/2.4/ compile the kernel with options: Packet writing on CD/DVD media UDF files systems support (read only) UDF write support (DANGEROUS) after reboot mknod /dev/pktcdvd0 b 97 0 download package udftools-1.0.0b2.tar.gz from http://sourceforge.net/projects/linux-udf then install cdrwtool insert a blank highspped rewrittable disc, [root@localhost /]# /usr/bin/cdrwtool -d /dev/hdc -q -t 4 using device /dev/hdc setting speed to 4 1458KB internal buffer setting write speed to 4x Settings for /dev/hdc: Fixed packets, size 32 Mode-2 disc I'm going to do a quick setup of /dev/hdc. The disc is going to be blanked and formatted with one big track. All data on the device will be lost!! Press CTRL-C to cancel now. ENTER to continue. Initiating quick disc blank Disc capacity is 295264 blocks (590528KB/576MB) Formatting track wait_cmd: Input/output error Command failed: 04 17 00 00 00 00 00 00 00 00 00 00 - sense 05.26.00 format disc: Input/output error in the /var/log/messages Mar 16 23:53:06 localhost kernel: cdrom: This disc doesn't have any tracks I recognize! Mar 16 23:53:06 localhost kernel: hdc: packet command error: status=0x51 { DriveReady SeekComplete Error } Mar 16 23:53:06 localhost kernel: hdc: packet command error: error=0x54 Mar 16 23:53:06 localhost kernel: ATAPI device hdc: Mar 16 23:53:06 localhost kernel: Error: Illegal request -- (Sense key=0x05) Mar 16 23:53:06 localhost kernel: Invalid field in parameter list -- (asc=0x26, ascq=0x00) Mar 16 23:53:06 localhost kernel: The failed "Format Unit" packet command was: Mar 16 23:53:06 localhost kernel: "04 17 00 00 00 00 00 00 00 00 00 00 " Can anybody help me out? Thank you in advance. Best Regards, kurt Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam
On Wed, 17 Mar 2004, ke chen wrote:
insert a blank highspped rewrittable disc, [root@localhost /]# /usr/bin/cdrwtool -d /dev/hdc -q -t 4
[...]
Disc capacity is 295264 blocks (590528KB/576MB) ^^^^^^ Formatting track wait_cmd: Input/output error Command failed: 04 17 00 00 00 00 00 00 00 00 00 00 - sense 05.26.00 format disc: Input/output error
[...] This also happens to me. I have an LG GCC-4480B (CDRW + DVD reader combo). I don't know why things are in this state, but I first use cdrwtool -d /dev/hdc -q , wait the failure and read the disk capacity (in your case, 295264) and use cdrwtool -m <capacity> -d /dev/hdc This will perform a low level format. After it finishes, I use pktsetup /dev/pktcdvd0 /dev/hdc mkudffs /dev/pktcdvd0 (you should have some script to do the pktsetup at boot time). After that, you will be able to mount /dev/pktcdvd0 read-write. Regards, Joao Luis.
hi joao, Thank you for your reply, but I got the same error result when running "cdrwtool -m 295264 -d /dev/hdc" according to your suggestion. Could you give me more hints on that? I also tried to fake my atapi device as scsi device. but when running "cdrwtoo -d /dev/scd0 -q", this time it prints out sr0: CDROM (ioctl) reports, ILLEGAL REQUEST. Any help will be appreciated. Thank you in advance. Best Regards, kurt Joao Luis Meloni Assirati <assirati@fma.if.usp.br> wrote: On Wed, 17 Mar 2004, ke chen wrote:
insert a blank highspped rewrittable disc, [root@localhost /]# /usr/bin/cdrwtool -d /dev/hdc -q -t 4
[...]
Disc capacity is 295264 blocks (590528KB/576MB) ^^^^^^ Formatting track wait_cmd: Input/output error Command failed: 04 17 00 00 00 00 00 00 00 00 00 00 - sense 05.26.00 format disc: Input/output error
[...] This also happens to me. I have an LG GCC-4480B (CDRW + DVD reader combo). I don't know why things are in this state, but I first use cdrwtool -d /dev/hdc -q , wait the failure and read the disk capacity (in your case, 295264) and use cdrwtool -m -d /dev/hdc This will perform a low level format. After it finishes, I use pktsetup /dev/pktcdvd0 /dev/hdc mkudffs /dev/pktcdvd0 (you should have some script to do the pktsetup at boot time). After that, you will be able to mount /dev/pktcdvd0 read-write. Regards, Joao Luis. -- To unsubscribe, e-mail: packet-writing-unsubscribe@suse.com For additional commands, e-mail: packet-writing-help@suse.com Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam
Kurt, On Wed, 17 Mar 2004, ke chen wrote:
Thank you for your reply, but I got the same error result when running "cdrwtool -m 295264 -d /dev/hdc" according to your suggestion. Could you give me more hints on that?
Try to reduce the disk capacity, say cdrwtool -m 295232 -d /dev/hdc or less. Maybe it works for some smaller number. I don't know well the underlying principles, but remember seeing this advice somewhere...
I also tried to fake my atapi device as scsi device. but when running "cdrwtoo -d /dev/scd0 -q", this time it prints out sr0: CDROM (ioctl) reports, ILLEGAL REQUEST.
That should not be needed, even for burning cds in the ordinary way. You may know that cdrecord now has support for atapi. Best regards, Joao.
hi Joao, Thank you for your reply. But it doesn't work when i use cdrwtool -m 295232 -d /dev/hdc, or with other smaller number. i tried to copy some documents into the cd-rw disc with another cd-writer in a windows machine. and then came back to use cdrwtool to blank it in linux. This time, it seems a little better, it print out "initiating quick disc blank", but after a while, still pop up the almost same error message except that one "cdrom: this disc doesn't have any tracks I recognized" I am really lost on it and hope some person can help me. Thank you very much. Best Regards, kurt Joao Luis Meloni Assirati <assirati@fma.if.usp.br> wrote: Kurt, On Wed, 17 Mar 2004, ke chen wrote:
Thank you for your reply, but I got the same error result when running "cdrwtool -m 295264 -d /dev/hdc" according to your suggestion. Could you give me more hints on that?
Try to reduce the disk capacity, say cdrwtool -m 295232 -d /dev/hdc or less. Maybe it works for some smaller number. I don't know well the underlying principles, but remember seeing this advice somewhere...
I also tried to fake my atapi device as scsi device. but when running "cdrwtoo -d /dev/scd0 -q", this time it prints out sr0: CDROM (ioctl) reports, ILLEGAL REQUEST.
That should not be needed, even for burning cds in the ordinary way. You may know that cdrecord now has support for atapi. Best regards, Joao. -- To unsubscribe, e-mail: packet-writing-unsubscribe@suse.com For additional commands, e-mail: packet-writing-help@suse.com Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam
On Wednesday 17 Mar 2004 08:25, ke chen wrote:
hi all,
It's quite a while since I set up packet writing on my system so this may not be correct but, since we have a 2.4.x kernel, doesn't scsi emulation (ide-scsi) come into play somewhere? Regards Chris
I followed the document on http://linuxfromscratch.org/pipermail/hints/2002-August/001207.html and tried to carry on packet writting, but failed even when making disk quick setup.
my cd writer: CD-W224EA, ATAPI CD/DVD-ROM drive linux kernel 2.4.23
download the patch packet-2.4.23.patch.bz2 from http://w1.894.telia.com/~u89404340/patches/packet/2.4/
compile the kernel with options: Packet writing on CD/DVD media UDF files systems support (read only) UDF write support (DANGEROUS)
after reboot mknod /dev/pktcdvd0 b 97 0
download package udftools-1.0.0b2.tar.gz from http://sourceforge.net/projects/linux-udf then install cdrwtool
insert a blank highspped rewrittable disc, [root@localhost /]# /usr/bin/cdrwtool -d /dev/hdc -q -t 4 using device /dev/hdc setting speed to 4
1458KB internal buffer setting write speed to 4x Settings for /dev/hdc: Fixed packets, size 32 Mode-2 disc
I'm going to do a quick setup of /dev/hdc. The disc is going to be blanked and formatted with one big track. All data on the device will be lost!! Press CTRL-C to cancel now. ENTER to continue. Initiating quick disc blank Disc capacity is 295264 blocks (590528KB/576MB) Formatting track wait_cmd: Input/output error Command failed: 04 17 00 00 00 00 00 00 00 00 00 00 - sense 05.26.00 format disc: Input/output error
in the /var/log/messages Mar 16 23:53:06 localhost kernel: cdrom: This disc doesn't have any tracks I recognize! Mar 16 23:53:06 localhost kernel: hdc: packet command error: status=0x51 { DriveReady SeekComplete Error } Mar 16 23:53:06 localhost kernel: hdc: packet command error: error=0x54 Mar 16 23:53:06 localhost kernel: ATAPI device hdc: Mar 16 23:53:06 localhost kernel: Error: Illegal request -- (Sense key=0x05) Mar 16 23:53:06 localhost kernel: Invalid field in parameter list -- (asc=0x26, ascq=0x00) Mar 16 23:53:06 localhost kernel: The failed "Format Unit" packet command was: Mar 16 23:53:06 localhost kernel: "04 17 00 00 00 00 00 00 00 00 00 00 "
Can anybody help me out?
Thank you in advance.
Best Regards, kurt
Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam
Hi Chris, Thank you for your information. Actually, i have already had a try on scsi emulation and it doesn't work. But with different error message cdrwtoo -d /dev/scd0 -q", sr0: CDROM (ioctl) reports, ILLEGAL REQUEST Thank you very much. I still need help from others to make it work. Any advice will be appreciated. BR, kurt Chris Clayton <chris@theclaytons.giointernet.co.uk> wrote: On Wednesday 17 Mar 2004 08:25, ke chen wrote:
hi all,
It's quite a while since I set up packet writing on my system so this may not be correct but, since we have a 2.4.x kernel, doesn't scsi emulation (ide-scsi) come into play somewhere? Regards Chris
I followed the document on http://linuxfromscratch.org/pipermail/hints/2002-August/001207.html and tried to carry on packet writting, but failed even when making disk quick setup.
my cd writer: CD-W224EA, ATAPI CD/DVD-ROM drive linux kernel 2.4.23
download the patch packet-2.4.23.patch.bz2 from http://w1.894.telia.com/~u89404340/patches/packet/2.4/
compile the kernel with options: Packet writing on CD/DVD media UDF files systems support (read only) UDF write support (DANGEROUS)
after reboot mknod /dev/pktcdvd0 b 97 0
download package udftools-1.0.0b2.tar.gz from http://sourceforge.net/projects/linux-udf then install cdrwtool
insert a blank highspped rewrittable disc, [root@localhost /]# /usr/bin/cdrwtool -d /dev/hdc -q -t 4 using device /dev/hdc setting speed to 4
1458KB internal buffer setting write speed to 4x Settings for /dev/hdc: Fixed packets, size 32 Mode-2 disc
I'm going to do a quick setup of /dev/hdc. The disc is going to be blanked and formatted with one big track. All data on the device will be lost!! Press CTRL-C to cancel now. ENTER to continue. Initiating quick disc blank Disc capacity is 295264 blocks (590528KB/576MB) Formatting track wait_cmd: Input/output error Command failed: 04 17 00 00 00 00 00 00 00 00 00 00 - sense 05.26.00 format disc: Input/output error
in the /var/log/messages Mar 16 23:53:06 localhost kernel: cdrom: This disc doesn't have any tracks I recognize! Mar 16 23:53:06 localhost kernel: hdc: packet command error: status=0x51 { DriveReady SeekComplete Error } Mar 16 23:53:06 localhost kernel: hdc: packet command error: error=0x54 Mar 16 23:53:06 localhost kernel: ATAPI device hdc: Mar 16 23:53:06 localhost kernel: Error: Illegal request -- (Sense key=0x05) Mar 16 23:53:06 localhost kernel: Invalid field in parameter list -- (asc=0x26, ascq=0x00) Mar 16 23:53:06 localhost kernel: The failed "Format Unit" packet command was: Mar 16 23:53:06 localhost kernel: "04 17 00 00 00 00 00 00 00 00 00 00 "
Can anybody help me out?
Thank you in advance.
Best Regards, kurt
Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam
On Fri, 19 Mar 2004, Chris Clayton wrote:
It's quite a while since I set up packet writing on my system so this may not be correct but, since we have a 2.4.x kernel, doesn't scsi emulation (ide-scsi) come into play somewhere?
I don't think so. AFAIK, scsi emulation was never needed for pktsetup. Regards Joao.
participants (3)
-
Chris Clayton
-
Joao Luis Meloni Assirati
-
ke chen