udftools icon indicating copy to clipboard operation
udftools copied to clipboard

wait_cmd_sense: Input/output error

Open Gooberpatrol66 opened this issue 2 years ago • 9 comments

cdrwtool -d /dev/sr0 -q
using device /dev/sr0
7716KB internal buffer
setting write speed to 12x
Settings for /dev/sr0:
        Fixed packets, size 32
        Mode-2 disc

I'm going to do a quick setup of /dev/sr0. 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
wait_cmd_sense: Input/output error
Command failed: a1 11 00 00 00 00 00 00 00 00 00 00 - sense 05.30.06
blank disc: Input/output error
smartctl -i /dev/sr0 -d sat
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.1.41-gentoo-x86_64] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     ATAPI   iHBS212   2
Serial Number:    2512013 226230501386
Firmware Version: HL04
Device is:        Not in smartctl database 7.3/5364
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 2.6, 1.5 Gb/s
Local Time is:    Sat Aug 19 16:14:36 2023 CDT
SMART support is: Unavailable - Packet Interface Devices [this device: CD/DVD] don't support ATA SMART

Tried with a BD-R and CD-R

Gooberpatrol66 avatar Aug 19 '23 21:08 Gooberpatrol66

Tried with a BD-R and CD-R

cdrwtool is for CD-RW discs only.

pali avatar Aug 19 '23 21:08 pali

Command failed: a1 11 00 00 00 00 00 00 00 00 00 00 - sense 05.30.06

  • command a1 11 means to do fast blank operation
  • sense 05.30.06 is return value of operation and means CANNOT FORMAT MEDIUM - INCOMPATIBLE MEDIUM

So error is correct there as optical drive can format/blank only rewritable CD medias.

pali avatar Aug 19 '23 21:08 pali

Oh, the man page says it works on CD-Rs

Gooberpatrol66 avatar Aug 19 '23 23:08 Gooberpatrol66

Uff, maybe some of the options could be used also for CD-R (like printing track information).

But blanking media is RW operation.

pali avatar Aug 19 '23 23:08 pali

Does BD-RE work?

Gooberpatrol66 avatar Aug 19 '23 23:08 Gooberpatrol66

BD-RE uses UDF in overwritable mode, like DVD-RAM. So formatting to UDF does not require special access to optical drive (like for CD-RW via cdrwtool) and therefore you can use any mkfs.* tool which operates directly on block device.

Unfortunately, UDF specification requires that Blu-ray must use at least UDF rev 2.50 and this UDF rev for requires for all non-recordable media to use UDF Metadata partition, which mkudffs does not support yet (issue #20).

So you can use mkudffs on BD-RE only by forcing older UDF rev 2.01, which is against UDF specification and so do not have to work with other implementations / operating systems. It works on Linux as Linux can use any UDF revision on any media type.

pali avatar Aug 19 '23 23:08 pali

Is it possible to format a BD-R as UDF without using cdrwtool?

Gooberpatrol66 avatar Aug 20 '23 00:08 Gooberpatrol66

Recordable media types are not supported directly for writing by tools which are parted of the udftools. Just mkudffs can prepare (empty) UDF disk image for recordable media type, but for writing it to media you need to use other application.

pali avatar Aug 20 '23 00:08 pali

OK, thanks

Gooberpatrol66 avatar Aug 20 '23 21:08 Gooberpatrol66